-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsurvey.html
More file actions
328 lines (289 loc) · 10.3 KB
/
survey.html
File metadata and controls
328 lines (289 loc) · 10.3 KB
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<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>
:root {
--c1: #131313;
--c2: #fff;
}
html, body {
padding: 0;
margin: 0;
font-family: 'Ubuntu', sans-serif !important;
color: var(--c1) !important;
background-color: var(--c2);
height: 100vh;
overflow: hidden;
}
.kd::-webkit-scrollbar {
width: 5px;
height: 5px;
}
.kd::-webkit-scrollbar-track {
background: none;
}
.kd::-webkit-scrollbar-thumb {
background: var(--c1);
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: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
background-color: #111;
padding: 1.5vh;
border-radius: 0 0 3vh 3vh;
box-shadow: black 0 1px 5px;
}
#headerimg {
height: 5vh;
width: 5vh;
cursor: pointer;
}
#headerh {
font-size: 4vh;
line-height: 1;
color: white !important;
margin: 0;
flex:1;
}
#headers {
font-size: 3vh;
line-height: 1;
color: white !important;
margin: 0;
cursor: pointer;
transition: 0.2s ease-out;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
justify-self: end;
}
#headers:hover {
filter: invert(0.2);
}
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;
grid-template-columns: 1fr auto;
height: 8vh;
grid-gap: 1vh;
}
#headerh {
font-size: 3.5vh;
margin: 0;
}
#headers {
font-size: 2vh;
margin: 0;
grid-column: span 2;
justify-self: center;
}
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;
let dark = false;
function update(x) {
k = x;
document.getElementById(`kd${current}`).classList.remove("visible");
current = k;
document.getElementById(`kd${current}`).classList.add("visible");
}
function lightdark() {
if (dark) {
document.documentElement.style.setProperty('--c1', '#131313');
document.documentElement.style.setProperty('--c2', '#fff');
document.getElementById("headers").innerHTML = "Dark Mode";
dark = false;
localStorage.setItem("mode", "0");
} else {
document.documentElement.style.setProperty('--c2', '#131313');
document.documentElement.style.setProperty('--c1', '#fff');
document.getElementById("headers").innerHTML = "Light Mode";
dark = true;
localStorage.setItem("mode", "1");
}
}
window.addEventListener("DOMContentLoaded", () => {
if (localStorage.getItem("mode") === "1") lightdark();
});
</script>
</head>
<body>
<header>
<img id="headerimg" src="favicon.png" onclick="window.location.assign('.')" />
<h1 id="headerh">Ultimate Surveys™</h1>
<h2 id="headers" onclick="lightdark()">Dark Mode</h2>
</header>
<div id="kd0" class="kd visible">
<h2>Welcome and thanks for checking out my website!</h2>
<p>Please select the survey you would like to fill out:</p>
<button onclick="update(4);">Survey Regarding Upcoming Streams</button>
<button onclick="update(5);">Suggest Rhythm Doctor Levels</button>
</div>
<div id="kd4" class="kd">
<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="ifr2" src="https://docs.google.com/forms/d/e/1FAIpQLScmAE5d-IaqM6A5wePUAmgDJ1s7cgEa1LbnQTkFpvlSLEdCOw/viewform?embedded=true" style="width:100%" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<script>
let fr2 = document.getElementById("ifr2");
fr2.onload = function () {
fr2.height = window.innerHeight / 0.9;
}
</script>
</div>
<div id="kd5" class="kd">
<iframe id="ifr" src="https://docs.google.com/forms/d/e/1FAIpQLSc8inJxlmwI8q24GJzimtUobDSo2IVuVzz-NIBhKc-nnIXfxA/viewform?embedded=true" style="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>