-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurvey.html
255 lines (222 loc) · 7.66 KB
/
survey.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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7J3YJQYZ30"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-7J3YJQYZ30');
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
<title>Survey - Kingpvz</title>
<link rel="icon" type="image/x-icon" href="favicon.png">
<style>
html, body {
padding: 0;
margin: 0;
font-family: 'Ubuntu', sans-serif !important;
color: #131313 !important;
background-color: #fff;
height: 100vh;
overflow: hidden;
}
.kd::-webkit-scrollbar {
width: 5px;
height: 5px;
}
.kd::-webkit-scrollbar-track {
background: none;
}
.kd::-webkit-scrollbar-thumb {
background: #111;
border-radius: 100px;
border: solid 3px none;
}
.kd::-webkit-scrollbar-thumb:hover {
background: red;
}
.kd::-webkit-scrollbar-corner {
background: #fff;
}
.kd {
height: 90vh;
padding: 1.5vh 20vh;
display: none;
overflow-y: auto;
flex-direction: column;
align-items: center;
overflow-x: hidden;
}
header {
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #111;
padding: 1vh;
box-shadow: black 0 1px 5px;
}
#headerimg {
height: 5vh;
width: 5vh;
}
#headerh {
font-size: 4vh;
line-height: 1;
color: white !important;
margin: 0 0 0 1vw;
}
p, h3 {
font-size: 24px;
text-align: center;
}
button {
box-shadow: #000000 0 0 0 0;
text-decoration: solid #000000 auto;
font-size: 3vh;
font-weight: bold;
font-family: Ubuntu;
color: #000000;
border: solid 3px #ff7b00;
border-radius: 1.5vh;
background-color: #eef1cb;
padding: 0.5vh 1vh;
cursor: pointer;
margin-bottom: 2vh;
display: inline;
opacity: 1;
scale: 1;
outline: white solid 2px;
transition: 0.2s ease;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
button:hover {
box-shadow: #e4ae90 0 0 3px 3px;
text-decoration: solid #000000 auto;
font-size: 3vh;
font-weight: bold;
font-family: Ubuntu;
color: #000000;
border: solid 3px #ff7b00;
border-radius: 1.5vh;
background-color: #eef1cb;
padding: 0.5vh 1vh;
cursor: pointer;
display: inline;
opacity: 1;
scale: 1.05;
outline: #e4ae90 solid 2px;
}
button:active {
box-shadow: #e4ae90 0 0 3px 5px;
text-decoration: solid #000000 auto;
font-size: 3vh;
font-weight: bold;
font-family: Ubuntu;
color: #383838;
border: solid 3px #9b9e00;
border-radius: 1.5vh;
background-color: #f3fff0;
padding: 0.5vh 1vh;
cursor: pointer;
display: inline;
opacity: 1;
scale: 1;
outline: #e4ae90 solid 2px;
}
.visible {
display: flex;
}
@media(orientation: portrait){
.kd {
height: 91vh;
padding: 1vh 5vh;
}
header {
box-shadow: black 0 3px 10px;
}
#headerh {
font-size: 3.5vh;
margin: 0 0 0 3vw;
}
h2 {
font-size: 60px;
text-align: center;
}
p, h3 {
font-size: 48px;
}
button {
font-size: 4vh;
border: solid 5px #ff7b00;
margin-bottom: 2vh;
outline: white solid 2px;
}
button:hover {
box-shadow: #e4ae90 0 0 3px 3px;
font-size: 4vh;
border: solid 5px #ff7b00;
scale: 1.05;
outline: #e4ae90 solid 2px;
}
button:active {
box-shadow: #e4ae90 0 0 3px 5px;
font-size: 4vh;
border: solid 5px #9b9e00;
border-radius: 1.5vh;
background-color: #f3fff0;
outline: #e4ae90 solid 2px;
}
}
</style>
<script>
let k = 0;
let current = 0;
function update(x) {
k = x;
document.getElementById(`kd${current}`).classList.remove("visible");
current = k;
document.getElementById(`kd${current}`).classList.add("visible");
}
</script>
</head>
<body>
<header>
<img id="headerimg" src="favicon.png" />
<h1 id="headerh">Streaming Survey</h1>
</header>
<div id="kd0" class="kd visible">
<h2>Welcome and thanks for checking out this survey!</h2>
<p>I'm running out of games to stream. You can use this survey to let me know whatever you want me to play on stream!</p>
<button onclick="update(1);">Let's Go!</button>
</div>
<div id="kd1" class="kd">
<h2>An important question:</h2>
<h3>Do you watch my streams, or would you, if I streamed a specific game (perhaps a game you like)?</h3>
<button onclick="window.innerHeight>window.innerWidth?document.location.href = 'https://forms.gle/rSnbRa5xRrhAhuECA':update(2);">Yes</button>
<button onclick="update(3);">No</button>
</div>
<div id="kd2" class="kd">
<iframe id="ifr" src="https://docs.google.com/forms/d/e/1FAIpQLScmAE5d-IaqM6A5wePUAmgDJ1s7cgEa1LbnQTkFpvlSLEdCOw/viewform?embedded=true" width="100%" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<script>
let fr = document.getElementById("ifr");
fr.onload = function () {
fr.height = window.innerHeight / 0.9;
}
</script>
</div>
<div id="kd3" class="kd">
<h2>What a survey!</h2>
<p>If you do not watch my streams, nor would you if I streamed a game you like, this survey is pointless.<br />Thank you for your interest and have a great day!</p>
<button onclick="document.location.href='.'">Exit</button>
</div>
</body>
</html>