LULDev commited on
Commit
e73ca08
Β·
verified Β·
1 Parent(s): b1a3c25

undefined - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +385 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Idiot Test Web
3
- emoji: πŸƒ
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: idiot-test-web
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,385 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Hacker Terminal: The Idiot Test</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes blink {
11
+ 0%, 100% { opacity: 1; }
12
+ 50% { opacity: 0; }
13
+ }
14
+ .blink {
15
+ animation: blink 1s step-end infinite;
16
+ }
17
+ .typewriter {
18
+ overflow: hidden;
19
+ white-space: nowrap;
20
+ margin: 0 auto;
21
+ letter-spacing: 1px;
22
+ animation: typing 3.5s steps(40, end);
23
+ }
24
+ @keyframes typing {
25
+ from { width: 0 }
26
+ to { width: 100% }
27
+ }
28
+ .scanline {
29
+ position: absolute;
30
+ width: 100%;
31
+ height: 100px;
32
+ background: linear-gradient(
33
+ 0deg,
34
+ rgba(0, 255, 0, 0) 0%,
35
+ rgba(0, 255, 51, 0.1) 50%,
36
+ rgba(0, 255, 0, 0) 100%
37
+ );
38
+ animation: scan 8s linear infinite;
39
+ pointer-events: none;
40
+ }
41
+ @keyframes scan {
42
+ 0% {
43
+ top: -100px;
44
+ }
45
+ 100% {
46
+ top: 100%;
47
+ }
48
+ }
49
+ .glitch {
50
+ position: relative;
51
+ }
52
+ .glitch::before, .glitch::after {
53
+ content: attr(data-text);
54
+ position: absolute;
55
+ top: 0;
56
+ left: 0;
57
+ width: 100%;
58
+ height: 100%;
59
+ }
60
+ .glitch::before {
61
+ color: #0ff;
62
+ z-index: -1;
63
+ animation: glitch-effect 3s infinite;
64
+ }
65
+ .glitch::after {
66
+ color: #f0f;
67
+ z-index: -2;
68
+ animation: glitch-effect 2s infinite reverse;
69
+ }
70
+ @keyframes glitch-effect {
71
+ 0% { transform: translate(0); }
72
+ 20% { transform: translate(-2px, 2px); }
73
+ 40% { transform: translate(-2px, -2px); }
74
+ 60% { transform: translate(2px, 2px); }
75
+ 80% { transform: translate(2px, -2px); }
76
+ 100% { transform: translate(0); }
77
+ }
78
+ .console-text {
79
+ font-family: 'Courier New', monospace;
80
+ text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
81
+ }
82
+ </style>
83
+ </head>
84
+ <body class="bg-black text-green-500 min-h-screen" onload="startTerminal()">
85
+ <div class="scanline"></div>
86
+ <div class="container mx-auto px-4 py-8 max-w-4xl">
87
+ <div class="border-2 border-green-500 rounded-lg p-4 bg-black bg-opacity-80 shadow-lg shadow-green-500/20">
88
+ <!-- Terminal Header -->
89
+ <div class="flex items-center mb-4 border-b border-green-800 pb-2">
90
+ <div class="flex space-x-1 mr-4">
91
+ <div class="w-3 h-3 rounded-full bg-red-500"></div>
92
+ <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
93
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
94
+ </div>
95
+ <div class="flex-1 text-center">
96
+ <h1 class="glitch font-bold text-xl console-text" data-text="IDIOT_TEST.EXE">IDIOT_TEST.EXE</h1>
97
+ </div>
98
+ <div class="text-xs opacity-70">
99
+ <span id="time"></span>
100
+ </div>
101
+ </div>
102
+
103
+ <!-- Terminal Content -->
104
+ <div id="terminal" class="console-text overflow-y-auto max-h-96 mb-4 text-sm leading-relaxed">
105
+ <!-- Content will be dynamically generated by JavaScript -->
106
+ </div>
107
+
108
+ <!-- Input Area -->
109
+ <div class="flex items-center border-t border-green-800 pt-3">
110
+ <span class="mr-2">><span class="blink">_</span></span>
111
+ <input type="text" id="commandInput" class="flex-1 bg-black text-green-500 outline-none console-text px-2"
112
+ autocomplete="off" spellcheck="false" onkeypress="handleCommand(event)">
113
+ <button onclick="submitCommand()" class="ml-2 bg-green-900 hover:bg-green-800 text-green-300 px-3 py-1 rounded">
114
+ <i class="fas fa-arrow-right"></i>
115
+ </button>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="mt-4 text-xs text-green-700 text-center">
120
+ <p>WARNING: This system is protected. Unauthorized access is prohibited.</p>
121
+ </div>
122
+ </div>
123
+
124
+ <script>
125
+ // Questions database
126
+ const questions = [
127
+ "What color is a red apple? (red/blue/green/yellow)",
128
+ "If you have 2 apples and eat 1, how many apples do you have left?",
129
+ "Which is heavier: a pound of feathers or a pound of bricks?",
130
+ "Does a dog meow? (yes/no)",
131
+ "How many legs does a typical chair have?",
132
+ "What do you call the white part of an egg?",
133
+ "Is the sky below the ground? (yes/no)",
134
+ "What is 1+1? (be careful!)",
135
+ "Which month comes after April?",
136
+ "Do fish live in water? (yes/no)",
137
+ "How many sides does a triangle have?",
138
+ "What is the opposite of 'up'?",
139
+ "Is fire hot or cold?",
140
+ "What sound does a cow make?",
141
+ "What do you wear on your feet?",
142
+ "How many hours are in a day?",
143
+ "What do you call the person who drives a bus?",
144
+ "Which is bigger: an elephant or a mouse?",
145
+ "What is the name of the planet we live on?",
146
+ "Do plants need sunlight to grow? (yes/no)"
147
+ ];
148
+
149
+ // Answers database
150
+ const answers = [
151
+ "red", "1", "they weigh the same", "no", "4", "egg white", "no", "2", "May", "yes",
152
+ "3", "down", "hot", "moo", "shoes", "24", "bus driver", "elephant", "Earth", "yes"
153
+ ];
154
+
155
+ let currentQuestion = {};
156
+ let score = 0;
157
+ let questionsAnswered = 0;
158
+ let username = "";
159
+ let terminalState = "initial"; // initial, asking_name, test_in_progress, test_complete
160
+
161
+ function updateClock() {
162
+ const now = new Date();
163
+ document.getElementById('time').textContent = now.toLocaleTimeString();
164
+ }
165
+ setInterval(updateClock, 1000);
166
+ updateClock();
167
+
168
+ function startTerminal() {
169
+ const terminal = document.getElementById('terminal');
170
+ terminal.innerHTML = `
171
+ <div class="typewriter mb-4">
172
+ > INITIALIZING SYSTEM...<br>
173
+ > LOADING IDIOT TEST PROTOCOL...<br>
174
+ > CONNECTING TO MATRIX...<br>
175
+ > SYSTEM READY<br><br>
176
+ </div>
177
+ <div class="mb-2">
178
+ <span class="text-yellow-400">WELCOME TO THE ULTIMATE IDIOT TEST</span><br>
179
+ This test will determine your intellectual capacity.<br>
180
+ Answer carefully - your IQ rating depends on it.
181
+ </div>
182
+ <div class="mt-4 text-green-300">
183
+ Type <span class="text-yellow-400">'start'</span> to begin the test.
184
+ </div>
185
+ `;
186
+ terminal.scrollTop = terminal.scrollHeight;
187
+ }
188
+
189
+ function handleCommand(e) {
190
+ if (e.key === 'Enter') {
191
+ submitCommand();
192
+ }
193
+ }
194
+
195
+ function submitCommand() {
196
+ const input = document.getElementById('commandInput');
197
+ const command = input.value.trim();
198
+ input.value = '';
199
+
200
+ // Add command to terminal
201
+ addToTerminal(`> ${command}`);
202
+
203
+ // Process command
204
+ switch(terminalState) {
205
+ case "initial":
206
+ if (command.toLowerCase() === 'start') {
207
+ askForUsername();
208
+ } else if (command.toLowerCase() === 'help') {
209
+ showHelp();
210
+ } else {
211
+ addToTerminal('<span class="text-red-400">Invalid command. Type \'start\' to begin or \'help\' for assistance.</span>');
212
+ }
213
+ break;
214
+ case "asking_name":
215
+ if (command.length > 0) {
216
+ username = command;
217
+ startTest();
218
+ } else {
219
+ addToTerminal('<span class="text-red-400">Please enter a valid name.</span>');
220
+ }
221
+ break;
222
+ case "test_in_progress":
223
+ processAnswer(command);
224
+ break;
225
+ case "test_complete":
226
+ if (command.toLowerCase() === 'restart') {
227
+ resetTest();
228
+ } else if (command.toLowerCase() === 'exit') {
229
+ addToTerminal('> TERMINATING SESSION...');
230
+ setTimeout(() => {
231
+ document.getElementById('terminal').innerHTML = '<div class="text-center py-4">TERMINAL SESSION ENDED</div>';
232
+ }, 1000);
233
+ } else {
234
+ addToTerminal('<span class="text-red-400">Type \'restart\' to take the test again or \'exit\' to quit.</span>');
235
+ }
236
+ break;
237
+ }
238
+ }
239
+
240
+ function addToTerminal(text) {
241
+ const terminal = document.getElementById('terminal');
242
+ const newLine = document.createElement('div');
243
+ newLine.innerHTML = text;
244
+ terminal.appendChild(newLine);
245
+ terminal.scrollTop = terminal.scrollHeight;
246
+ }
247
+
248
+ function askForUsername() {
249
+ terminalState = "asking_name";
250
+ addToTerminal('<br><span class="text-yellow-400">Please enter your name to begin the test:</span>');
251
+ }
252
+
253
+ function showHelp() {
254
+ addToTerminal(`
255
+ <br><span class="text-yellow-400">HELP MENU:</span><br>
256
+ <span class="text-green-300">Commands available:</span><br>
257
+ - start: Begin the idiot test<br>
258
+ - help: Show this help menu<br><br>
259
+ <span class="text-green-300">Test instructions:</span><br>
260
+ - Answer each question when prompted<br>
261
+ - Your score will be calculated at the end<br>
262
+ - Good luck... you'll need it
263
+ `);
264
+ }
265
+
266
+ function startTest() {
267
+ terminalState = "test_in_progress";
268
+ addToTerminal(`<br><span class="text-green-300">Welcome, ${username}.</span>`);
269
+ addToTerminal('<span class="text-yellow-400">Starting test... prepare yourself.</span><br>');
270
+ askRandomQuestion();
271
+ }
272
+
273
+ function askRandomQuestion() {
274
+ const randomIndex = Math.floor(Math.random() * questions.length);
275
+ currentQuestion = {
276
+ index: randomIndex,
277
+ text: questions[randomIndex]
278
+ };
279
+
280
+ // Typewriter effect for question
281
+ addToTerminal('<br>');
282
+ const questionLine = document.createElement('div');
283
+ questionLine.innerHTML = `<span class="text-cyan-300">${currentQuestion.text}</span>`;
284
+ document.getElementById('terminal').appendChild(questionLine);
285
+ terminal.scrollTop = terminal.scrollHeight;
286
+ }
287
+
288
+ function processAnswer(answer) {
289
+ const correctAnswer = answers[currentQuestion.index].toString().toLowerCase();
290
+ const userAnswer = answer.toString().toLowerCase();
291
+
292
+ if (userAnswer === correctAnswer) {
293
+ score++;
294
+ addToTerminal('<span class="text-green-400">βœ“ Correct answer. You may not be a complete idiot.</span>');
295
+ } else {
296
+ addToTerminal(`<span class="text-red-400">βœ— Incorrect. The right answer was: ${correctAnswer}</span>`);
297
+ }
298
+
299
+ questionsAnswered++;
300
+
301
+ // Remove asked question from pool
302
+ questions.splice(currentQuestion.index, 1);
303
+ answers.splice(currentQuestion.index, 1);
304
+
305
+ if (questionsAnswered < 5 && questions.length > 0) {
306
+ setTimeout(() => askRandomQuestion(), 1000);
307
+ } else {
308
+ finishTest();
309
+ }
310
+ }
311
+
312
+ function finishTest() {
313
+ terminalState = "test_complete";
314
+ const percentage = Math.floor((score / questionsAnswered) * 100);
315
+
316
+ let rating, ratingColor;
317
+ if (percentage === 100) {
318
+ rating = "GENIUS";
319
+ ratingColor = "text-blue-400";
320
+ } else if (percentage >= 80) {
321
+ rating = "SMART";
322
+ ratingColor = "text-green-400";
323
+ } else if (percentage >= 50) {
324
+ rating = "AVERAGE";
325
+ ratingColor = "text-yellow-400";
326
+ } else if (percentage >= 20) {
327
+ rating = "BELOW AVERAGE";
328
+ ratingColor = "text-orange-400";
329
+ } else {
330
+ rating = "IDIOT";
331
+ ratingColor = "text-red-400";
332
+ }
333
+
334
+ addToTerminal(`
335
+ <br><span class="text-yellow-400">TEST COMPLETE</span><br>
336
+ <span class="text-green-300">Final score for ${username}:</span><br>
337
+ - Correct answers: <span class="text-green-400">${score} out of ${questionsAnswered}</span><br>
338
+ - Success rate: <span class="text-green-400">${percentage}%</span><br>
339
+ - IQ rating: <span class="${ratingColor} font-bold">${rating}</span><br><br>
340
+ <span class="text-yellow-400">Type 'restart' to try again or 'exit' to quit.</span>
341
+ `);
342
+ }
343
+
344
+ function resetTest() {
345
+ // Reset variables
346
+ score = 0;
347
+ questionsAnswered = 0;
348
+ username = "";
349
+
350
+ // Reset questions (since we removed them during testing)
351
+ questions = [
352
+ "What color is a red apple? (red/blue/green/yellow)",
353
+ "If you have 2 apples and eat 1, how many apples do you have left?",
354
+ "Which is heavier: a pound of feathers or a pound of bricks?",
355
+ "Does a dog meow? (yes/no)",
356
+ "How many legs does a typical chair have?",
357
+ "What do you call the white part of an egg?",
358
+ "Is the sky below the ground? (yes/no)",
359
+ "What is 1+1? (be careful!)",
360
+ "Which month comes after April?",
361
+ "Do fish live in water? (yes/no)",
362
+ "How many sides does a triangle have?",
363
+ "What is the opposite of 'up'?",
364
+ "Is fire hot or cold?",
365
+ "What sound does a cow make?",
366
+ "What do you wear on your feet?",
367
+ "How many hours are in a day?",
368
+ "What do you call the person who drives a bus?",
369
+ "Which is bigger: an elephant or a mouse?",
370
+ "What is the name of the planet we live on?",
371
+ "Do plants need sunlight to grow? (yes/no)"
372
+ ];
373
+
374
+ answers = [
375
+ "red", "1", "they weigh the same", "no", "4", "egg white", "no", "2", "May", "yes",
376
+ "3", "down", "hot", "moo", "shoes", "24", "bus driver", "elephant", "Earth", "yes"
377
+ ];
378
+
379
+ terminalState = "initial";
380
+ document.getElementById('terminal').innerHTML = '';
381
+ startTerminal();
382
+ }
383
+ </script>
384
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LULDev/idiot-test-web" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
385
+ </html>
prompts.txt ADDED
File without changes