forked from rudraroop/Wordle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
54 lines (43 loc) · 1.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Clonele</title>
<link rel="stylesheet" href="style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
<body>
<div class="game-container">
<div class="title-container">
<h1>Clonele</h1>
<p>Wordle clone with infinite words! Reload the page for a new word!</p>
<a href="javascript:window.location.reload();">New Word</a>
<br><br>
</div>
<div class="popup-container"></div>
<div class="tile-container"></div>
<div class="key-container"></div>
</div>
<script src="app.js"></script>
<script src="https://raw.githubusercontent.com/mckamey/konami-js/master/konami.min.js"></script>
<script>
var keyHandler = function (event) {
// If the key isn't in the pattern, or isn't the current key in the pattern, reset
if (pattern.indexOf(event.key) < 0 || event.key !== pattern[current]) {
current = 0;
return;
}
// Update how much of the pattern is complete
current++;
// If complete, alert and reset
if (pattern.length === current) {
current = 0;
window.alert(wordlist);
}
};
</script>
</body>
</html>