forked from avenue9977/code-breaker-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (157 loc) · 7.7 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
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
<!DOCTYPE html>
<html>
<head>
<meta content="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="A Codebreaking game">
<meta name="keywords" content="Game, Codebreaking, Puzzle, Numbers, Cipher">
<meta name="author" content="Noveck Gowandan">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="assets/bootstrap/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/site.webmanifest">
<title>Code Breaker </title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8FEWFZ7YDQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8FEWFZ7YDQ');
</script>
</head>
<body>
<div id="main-card" class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="text-center"><div class="knowledge"></div></h1>
<p class="text-muted text-center"><a href="#lightbox-1" rel="lightbox">Help</a> | <a href="#lightbox-2" rel="lightbox">About</a> | <a href="#lightbox-3" rel="lightbox">Secret</a> | <a href="#lightbox-4" rel="lightbox">Cipher Masters</a></p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h2 class="display-1 text-center" id="code">****</h2>
</div>
</div>
<div id="input-form" class="row">
<div class="col-sm-8 mb-20">
<div class="input-group">
<input type="number" name="number" id="your-guess" class="form-control" placeholder="Enter a 4 digit code..."
aria-label="Enter a 4 digit code..." aria-describedby="basic-addon1">
</div>
</div>
<div class="col-sm-4">
<button id="submit-guess" type="button" class="btn btn-success btn-primary btn-lg btn-block">SUBMIT</button>
</div>
</div>
<div id="alerts" class="row">
<div class="col-sm-9">
<div id="success" class="alert alert-success fade hide" role="alert">
Congratulations you have broken the code!
<br>
<p class="small"><span id="rmsg"></span></p>
</div>
<div id="game-over" class="alert alert-danger fade hide" role="alert">
Game Over!
<br>
<p class="small">No secrets for you.</p>
</div>
</div>
<div class="col-sm-3">
<button id="again" type="button" class="btn btn-info hide">Play Again!</button>
</div>
<div class="col-sm-12">
<div id="warning" class="alert alert-warning fade" role="alert">
The integer you enter must be 4 digits long. Try again!
</div>
</div>
</div>
<div id="results">
<div class="row">
<div class="col-sm-6">
Guess
</div>
<div class="col-sm-6">
Result
</div>
</div>
<hr>
<div class="lightbox" id="lightbox-1">
<h3 class="text-center">Help</h3>
<hr>
<p class="text-muted text-center small">
Guess the randomly generated 4 digit code to win. The game stores your guess and gives you some hints.
<br>
A correct digit in the correct position will be shown as a green check: ✅
<br>
A correct digit in the wrong position will be shown as a yellow circle: ↻
<br>
An incorrect digit will be shown as a red X: ❌
<br>
Solve it before your 10th attempt and win. Probably.
<br>
Beware, not everything is at it seems. Codes with repeated digits are curveballs. There are some shared secrets, hidden secrets, and maybe a wrong turn or two. There is a finish line, and it's not where you think.
<br>
Those who actually finish will be listed on the elusive hidden leaderboard and can claim the title of Cipher Master.
<br>
Good luck.
</p>
<a class="lightbox__close" href="#">X</a>
</div>
<div class="lightbox" id="lightbox-2">
<h3 class="text-center">About</h3>
<hr>
<p class="text-muted text-center">
Game by <a href="https://linktr.ee/Noveck" target="_blank">Noveck J. Gowandan
</p>
<p class="text-muted text-center small">
<a href="https://www.buymeacoffee.com/noveck" target="_blank"> ☕ Buy me a Coffee?</a>
<br>
<a class="btn-link" target="_blank" href="mailto:[email protected]?Subject=Code Breaker Feedback"> Comments / Feedback? </a>
</p>
<p class="text-muted text-center small">
Based on the original game by <a href="https://github.com/avenue9977" target="_blank">Nikola Chetelyazov.</a>
<br>
Additional credits to:
<br>
<a href="https://codepen.io/Garyrae" target="_blank">Gary Rae</a>
<br>
<a href="https://codepen.io/HikwaMehluli" target="_blank">Mehluli Hikwa</a>
</p>
<a class="lightbox__close" href="#">X</a>
</div>
<div class="lightbox" id="lightbox-3">
<h3 class="text-center">Secret</h3>
<hr>
<p class="text-muted text-center">
There are no secrets here<a href="fakesecret.html" class="text-muted">.</a>
</p>
<a class="lightbox__close" href="#">X</a>
</div>
<div class="lightbox" id="lightbox-4">
<h3 class="text-center">Cipher Masters</h3>
<hr>
<p class="text-muted text-center">
🏆 <img src="img/user-secret-solid.svg" class="text-center img-fluid mx-auto my-auto" style="width: 5%;" alt=""> 🏆
<br>
If only it were that simple.
<br>
Only Cipher Masters can see other Cipher Masters.
<p class="text-muted text-center small">Or perhaps those with a special code.</p>
</p>
<a class="lightbox__close" href="#">X</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="assets/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="js/scramble.js"></script>
</body>
</html>