-
Notifications
You must be signed in to change notification settings - Fork 89
/
index.html
128 lines (95 loc) · 4.68 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hacking minigame</title>
<link rel="icon" type="image/png" href="favicon-32x32.png"/>
<!-- load font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap" rel="stylesheet">
<!-- measure page views -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7E64QM2WXT"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/4.1.5/css/flag-icons.min.css" integrity="sha512-UwbBNAFoECXUPeDhlKR3zzWU3j8ddKIQQsDOsKhXQGdiB5i3IHEXr9kXx82+gaHigbNKbTDp3VY/G6gZqva6ZQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- local css and js -->
<link rel="stylesheet" href="style.css">
<script type="module" src="src/script.js" defer></script>
</head>
<body>
<div class="bg">
<div class="center screen-square">
<div class="center text-container", id="text-container">
<img src="assets/spy-icon.png" class="spy-icon">
<h3 class="loading-text" id="loading-text"><span class="capital">E</span>STABLISHING CONNECTION</h3>
</div>
<div class="number-container hidden" id="number-container"></div>
<div class="answer-section hidden">
<div class="answer-countdown">
<div class="answer-progress-bar"></div>
</div>
<div class="answer-question">
</div>
<div class="answer-box">
<div class="answer-box-description">Answer</div>
<div class="answer-input-area">
<img src="assets/spy-icon.png" class="answer-input-icon">
<input class="answer-input" id="answer-placeholder" placeholder="blue square">
</div>
</div>
</div>
<div class="try-again hidden">
<button id="try-again-button">Try again</button><br><br>
<div class="try-again-hint" style="padding-top: 10px;">
<span id="submitted-reveal"></span> <span id="answer-was">the answer was:</span> "<span id="answer-reveal"></span>"
</div><br>
<div class="try-again-hint" id="to-fast">Too fast? Practice by changing the puzzle time!</div>
</div>
</div>
<div class='speed-control'>
<input type="range" id="speed-control" name="speed-control" min="5" max="30" value="7">
<label class="speed-label" for="speed-control"><span id="puzzle-time">Puzzle time</span>: <span class="time-display">7</span></label>
</div>
<div class='puzzle-control'>
<input type="range" id="puzzle-control" name="puzzle-control" min="3" max="6" value="4">
<label class="puzzle-label" for="puzzle-control"><span id="puzzle-amount">Puzzle Amount</span>: <span class="puzzle-display">4</span></label>
<!-- flag-icon-af -->
</div>
<div class="dropdown">
<button id="language-toggle" class="flag-dropdown dropbtn">
<span class="flag-selected-display flag-icon-gb"></span></span>
v
</button>
<div id="language-list" class="dropdown-content">
</div>
</div>
<button id="help-on" class="question-button">?</button>
<a href="https://github.com/Jesper-Hustad/NoPixel-minigame">
<button class="github-link">GitHub</button>
</a>
<div class="credits">Jesper Hustad (aka. Snacksy)</div>
</div>
<div id="overlay">
<div id="text">
<h1>Hack minigame explained</h1>
<hr>
<p>
This is a logical reasoning test where you need to quickly connect the words, colors, and shapes.
<br><br>
You will be given the numbers one to four in a random order,
then you have seven seconds to answer two questions.
<br><br>
<img class="tutorial-image" src="assets/tutorial/numbers.jpg"><br>
<br><br>
See here how the numbers are connect to the images giving us the answer square orange.<br><br>
<img class="tutorial-image" src="assets/tutorial/puzzle.jpg">
<h2>Tip:</h2>
Using the slider at the bottom of the page you can change the puzzle time.<br>
You can use this to practice and increase the speed when you get the hang of it.
</p>
</div>
</div>
</body>
<!-- Count page views -->
<script>window.goatcounter = {path: function(p) { return 'nopixel-minigame' + p }}</script>
<script data-goatcounter="https://jesper-hustad.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</html>