-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
130 lines (108 loc) · 6.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<meta property = "og:title" content = "Wordle Solver by [kiking]"/>
<meta property = "og:description" content = "Solving Wordle - s solver that guesses your 5-letter word in 6 tries."/>
<meta property = "og:type" content = "website" />
<meta property = "og:url" content = "https://kiking0501.github.io/Wordle-Solver" />
<meta property = "og:image" content="https://raw.githubusercontent.com/kiking0501/Wordle-Solver/master/img/wide-home.png" />
<link rel="icon" type="image/png" href="gh-pages/favicon.png"/>
<title> Wordle Solver by [kiking]</title>
<!-- Jquery 3-->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"></script>
<!-- fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Mathjax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) },
tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
TeX: {
extensions: ["begingroup.js"],
noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } },
Macros: { href: "{}" }
},
messageStyle: "none",
styles: { ".MathJax_Display, .MathJax_Preview, .MathJax_Preview > *": { "background": "inherit" } },
SEEditor: "mathjaxEditing"
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML-full"></script>
<!-- Custom -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PCL8H0H0SX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PCL8H0H0SX');
</script>
<link rel="stylesheet" href="gh-pages/style.css">
<script type="text/javascript" src="gh-pages/main.js"></script>
<script type="text/javascript" charset="utf-8">
$( document ).ready(function() {
readWords();
readGuesses();
goHome();
$("#help").load("gh-pages/help.html");
$("#story").load("gh-pages/story.html");
$("#alert").dialog({
dialogClass: "no-close",
appendTo: "#action-container",
autoOpen: false,
modal: true,
});
var url = window.location.href;
var suffix = url.substr(url.lastIndexOf('/') + 1);
if (suffix.startsWith("?=how-it-works")) {
switchStory();
}
})
</script>
</head>
<body>
<div id="game">
<header>
<div class="title"> <i id="help-icon" class="fa fa-question-circle-o " onclick="switchBoard()" ></i> <span style="cursor:pointer" onclick="goHome()">WORDLE SOLVER</span> </div>
</header>
<div>
<div class="subtitle">
<span class="story-link" onclick="switchStory()">How it works</span> <span class="story-link" onclick="switchStory()"><i class="fa fa-coffee" style="color:inherit"></i></span>
|
<a href='http://github.com/kiking0501/Wordle-Solver' target="_blank">by kiking</a> <a href='http://github.com/kiking0501/Wordle-Solver' target="_blank"><img src="img/GitHub-Mark-32px.png" alt="Kiking's Github" style="height:1em;"></a>
</div>
</div>
<div id="board-container">
<div id="board">
</div>
</div>
<div id="help" style="display:none"></div>
<div id="story" style="display:none"></div>
<div id="action-container">
<div class="keyboard">
<div class="row">
<div class="key" id="start-play" onclick="startPlay()" style="display:none;">START</div>
</div>
<div class="row">
<div class="key" id="submit-response" onclick="submitResponse()" style="display:none;">Proceed ᐅ (<span id="remain-num">2315</span>) </div>
</div>
<div class="row">
<div class="key" id="play-again" onclick="startPlay()" style="display:none;">Play Again <i class="fa fa-refresh" aria-hidden="true" style="color:black"></i></div>
</div>
</div>
<div class="keyboard">
<div class="row">
<div class="key" id="edit-previous" onclick="editPrevious()" style="display:none;"> ᐊ Edit Previous</div>
</div>
</div>
<div id="alert" class="game-box" style="display:none;">
<span class="closebtn" onclick="closeBox('alert')" style="color: white;">×</span>
<strong>Ooops.</strong> Could not guess your word. <br> <br> Does your word exist in <a href="https://raw.githubusercontent.com/kiking0501/Wordle-Solver/master/data/small-ordered.txt" target="_blank"><strong>this word list (2315 words) <i class="fa fa-external-link" aria-hidden="true" style="color:inherit"></i></strong></a>?
</div>
</div>
</div>
<game-row id="game-row-clone" letters length="5"><div class="row"></div></game-row>
<div id="tile-clone" class="tile" data-state="empty" style="display:none"></div>
</body>
</html>