forked from yulanggong/Wordz-Solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·93 lines (92 loc) · 2.89 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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Wordz Solver</title>
<link rel="stylesheet" href="main.css"/>
</head>
<body>
<div class="header">
<h1>Wordz Solver
<iframe src="https://ghbtns.com/github-btn.html?user=yulanggong&repo=Wordz-Solver&type=star&count=true&v=2" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=yulanggong&repo=Wordz-Solver&type=fork&count=true&v=2" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>
</h1>
</div>
<div class="actions">
<div class="group">
<label>Dict</label>
<span class="dict-group">
<button
id="dict-sowpods" title="SOWPODS" class="btn active">SOWPODS</button><button
id="dict-twl" title="TWL" class="btn">TWL</button>
</span>
</div>
<div class="group">
<label>Mode</label>
<span class="mode-group">
<button
id="mode-wordle" title="Wordle" class="btn"></button><button
id="mode-across" title="Across" class="btn"></button><button
id="mode-x" title="X" class="btn"></button><button
id="mode-around" title="Around" class="btn active"></button><button
id="mode-all" title="All" class="btn"></button>
</span>
</div>
<div class="group">
<label>Size</label>
<input id="board-width" class="text" type="text" value="3"> x
<input id="board-height" class="text" type="text" value="3">
<button id="new-board" class="btn">New</button>
</div>
<div class="group">
<button id="random-fill" class="btn">Random</button>
</div>
<div class="group">
<label>Min length</label>
<input id="min-length" class="text" type="text" value="4">
<button id="wildcard" class="btn">Wildcard</button>
<button id="solve" class="btn">Solve</button>
</div>
</div>
<div id="mask">Loading...</div>
<div class="main">
<div id="board">
</div>
<div id="result">
<ol id="output">
</ol>
<p id="status"></p>
</div>
</div>
<div class="help">
<p>A word puzzle solver for <i>Wordle</i>, <i>Boggle</i>, <i>WordzUp!</i>, <i>wordoid!</i> and more.</p>
<p>Use the ? wildcard to represent one letter.</p>
</div>
<script src="wordzsolver.js"></script>
<script>
try {
if (localStorage.dict && localStorage.dictVersion == '3') {
wordzSolver.dict = wordzSolver.decode(localStorage.dict);
}
} catch (e) {};
if (!wordzSolver.dict.A) {
document.write('<script src="dict.js"><\/script>');
}
</script>
<script type="text/javascript">
var board = new wordzSolver.Board({
width: 3,
height: 3,
letters: ['wor','sdl','?ev']
});
$('mask').className = 'hide';
$('solve').click();
try {
if (!localStorage.dict || localStorage.dictVersion != '3') {
localStorage.dict = wordzSolver._dict;
localStorage.dictVersion = '3';
}
} catch (e) {};
</script>
</body>
</html>