-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vote_train_v2.html
226 lines (157 loc) · 7.23 KB
/
Vote_train_v2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!--
<iframe width="80%" height="100" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=INSERT_URL_HERE&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe>
-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<head>
<style type="text/css">
body{
background-image:url('http://www.globalpovertyproject.com/wp-content/uploads/2015/03/140422_PL_Train_0920.jpg');
background-position:fixed;
background-repeat:no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.ss-q-radio, .question, radio{
display:none;
}
#vote{
margin-left:1%;
margin-right:1%;
margin-top:5%;
text-align:center;
}
form{
margin-top:25%;
margin-left:1%;
}
.required-message{
display:none;
color:#be0606;
}
.ss-choices{
list-style-type:none;
}
.ss-question-list, .ss-form-entry{
width:100%;
}
.ss-choice-item{
padding:2%;
display:inline-block;
width:17%;
height:20%;
margin:1%;
background:#be0606;
text-align:center;
color:white;
font-size:1.3em;
border-radius:5px;
text-transform:uppercase;
vertical-align:top;
}
#ss-submit{
text-align:center;
margin:auto;
background-color:#be0606;
color:white;
padding:1%;
border-radius:10px;
font-size:1.3em;
}
.error, .required, .errorbox-bad {
border-color: rgb(196,59,29);
}
@media screen and (-webkit-device-pixel-ratio: 2) {
.ss-logo-image {
background-image: url('//ssl.gstatic.com/docs/forms/forms_logo_small_dark_2x.png');
}
@media(max-width:750px){
#vote{
margin-left:1%;
margin-right:1%;
}
.ss-choice-item{
width:96%;
height:auto;
display:block;
margin-top:2%;
margin-left:0%;
margin-right:0%;
}
.desktop{
display:none;
}
}
}
</style>
<script>
function verify(){
$('.required-message').css('display','none');
var radio_buttons = $('.ss-q-radio');
for(i=0; i<5; i++){
if(radio_buttons[i].checked == true){
return true;
}
}
$('.required-message').css('display','block');
return false;
}
</script>
<script>
function choose(option, id){
q=document.getElementsByClassName('ss-q-radio');
q[option].checked=true;
others= [];
others=document.getElementsByClassName('ss-choice-item');
for(var i=0; i<5; i++){
others[i].style.opacity="0.4";
}
selected=document.getElementById(id);
selected.style.opacity="1";
}
</script>
<link rel="alternate" type="text/xml+oembed" href="https://docs.google.com/forms/d/1darwWSiwvUMDhRSUWFuC7PCnFSJqWMhxRdZgV3hKr_A/oembed?url=https://docs.google.com/forms/d/1darwWSiwvUMDhRSUWFuC7PCnFSJqWMhxRdZgV3hKr_A/viewform&format=xml">
</head>
<body>
<div id="vote">
<p style="padding:3%;">
Explanation blurb. This is where we put in a little blurb about what's going on and why people should be voting!
</p>
<form action="https://docs.google.com/forms/d/1darwWSiwvUMDhRSUWFuC7PCnFSJqWMhxRdZgV3hKr_A/formResponse" method="POST" id="ss-form" target="_self" onsubmit="">
<ol role="list" class="ss-question-list">
<div class="ss-form-entry">
<ul class="ss-choices" role="radiogroup" aria-label="Choose your favorite song ">
<li class="ss-choice-item" id="option0" onclick="choose(0, 'option0')"><label>
<span class="ss-choice-item-control goog-inline-block"><input type="radio" name="entry.1162506607" value="Option 1" id="group_1162506607_1" role="radio" class="ss-q-radio question" aria-label="Option 1" required="" aria-required="true" style="display:none;"></span>
<span class="ss-choice-label">Hey soul sister<br /><iframe id="song1" width="60" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/trainofficial/02-hey-soul-sister&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe>
</span>
</label></li>
<li class="ss-choice-item" id="option1" onclick="choose(1, 'option1')"><label>
<span class="ss-choice-item-control goog-inline-block"><input type="radio" name="entry.1162506607" value="Option 2" id="group_1162506607_2" role="radio" class="ss-q-radio" aria-label="Option 2" required="" aria-required="true" style="display:none;"></span>
<span class="ss-choice-label">50 ways to say goodbye<br /><iframe width="60" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/trainofficial/50-ways-to-say-goodbye&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe></span>
</label></li>
<li class="ss-choice-item" id="option2" onclick="choose(2, 'option2')"><label>
<span class="ss-choice-item-control goog-inline-block"><input type="radio" name="entry.1162506607" value="Option 3" id="group_1162506607_3" role="radio" class="ss-q-radio" aria-label="Option 3" required="" aria-required="true" style="display:none;"></span>
<span class="ss-choice-label">Marry me<br /><br class="desktop" /><iframe width="60" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/trainofficial/11-marry-me&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe></span>
</label></li>
<li class="ss-choice-item" id="option3" onclick="choose(3, 'option3')"><label>
<span class="ss-choice-item-control goog-inline-block"><input type="radio" name="entry.1162506607" value="Option 4" id="group_1162506607_4" role="radio" class="ss-q-radio" aria-label="Option 4" required="" aria-required="true" style="display:none;"></span>
<span class="ss-choice-label">Meet Virginia<br /><br class="desktop"/><iframe width="60" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/gen-patton/meet-virginia-train&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe></span>
</label></li>
<li class="ss-choice-item" id="option4" onclick="choose(4, 'option4')"><label>
<span class="ss-choice-item-control goog-inline-block"><input type="radio" name="entry.1162506607" value="Option 5" id="group_1162506607_5" role="radio" class="ss-q-radio" aria-label="Option 5" required="" aria-required="true" style="display:none;"></span>
<span class="ss-choice-label">Drops of Jupiter<br /><iframe width="60" height="60" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/trainofficial/03-drops-of-jupiter&color=be0606&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe></span>
</label></li>
</ul>
<div class="required-message">Please pick a song</div>
</div>
<input type="hidden" name="draftResponse" value="[,,"-7217397980301597263"]
">
<input type="hidden" name="pageHistory" value="0">
<input type="hidden" name="fbzx" value="-7217397980301597263">
<div style="margin:auto; text-align:center;"><input onclick="verify()" type="submit" name="submit" value="Submit" id="ss-submit"></div>
</ol></form>
</div>
</body>