forked from minoli-g/squaredle-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (110 loc) · 5.4 KB
/
index.html
File metadata and controls
116 lines (110 loc) · 5.4 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/png" href="finder.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Instantly solve any Squaredle puzzle with our Squaredle Solver. Find all possible words, get daily puzzle help, and boost your word game skills with ease.">
<meta name="theme-color" content="#151515">
<title>Squaredle Solver | Word Finder</title>
<link rel="manifest" href="/manifest.json">
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="preconnect" href="https://code.jquery.com" crossorigin>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
body {
background-color: #f8f9fa;
padding-top: 20px;
}
.container {
max-width: 600px;
}
.navbar h2 {
margin: 0;
}
.modal-body a {
word-break: break-word;
}
</style>
</head>
<body>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
.then(registration => {
console.log('Service Worker registered:', registration);
})
.catch(error => {
console.error('Service Worker registration failed:', error);
});
});
}
</script>
<div class="container">
<nav class="navbar navbar-light bg-light mb-4 justify-content-between">
<h2>Squaredle Solver & Helper</h2>
<button class="btn btn-outline-secondary" data-toggle="modal" data-target="#exampleModal">
<span class="h4 m-0">?</span>
</button>
</nav>
<div class="mb-3">
<p>Enter the puzzle board below, separating each row with a hyphen (e.g., <code>abc-def-ghi</code>).</p>
<p>For missing or faded squares, use an <code>@</code> symbol (e.g., <code>ab@-def-g@i</code>).</p>
</div>
<form onsubmit="onSubmit(); return false;">
<div class="form-group">
<input type="text" class="form-control form-control-lg" id="boardStr" placeholder="Enter board string">
</div>
<div class="text-center">
<button type="submit" class="btn btn-dark">Solve!</button>
</div>
</form>
<hr>
<div id="solutionList" class="mt-4 text-break"></div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">About Squaredle Solver</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>This is a solver for the popular word-finding game, <a href="https://squaredle.pages.dev/" target="_blank" rel="noopener">Squaredle</a>.</p>
<p>Please note that the generated results may not exactly match Squaredle's official word list, but they should include nearly all the required answers.</p>
<p>This site is not affiliated with <a href="https://squaredle.pages.dev/" target="_blank" rel="noopener">Squaredle</a> in any way.</p>
<div class="my-3">
<script type="text/javascript">
atOptions = {
'key': '0fee57062f9bb330edc13a4e4349876d',
'format': 'iframe',
'height': 250,
'width': 300,
'params': {}
};
</script>
<script type="text/javascript" src="//www.highperformanceformat.com/0fee57062f9bb330edc13a4e4349876d/invoke.js"></script>
</div>
<hr>
<p><strong>IMPORTANT:</strong> Using this solver to unfairly achieve a perfect score and top the leaderboard is strongly discouraged. Abuse may lead to account suspension from Squaredle's leaderboard.</p>
<hr>
<p>Got feedback or suggestions? Visit the <a href="https://github.com/kaloodinaz/squaredle-solver" target="_blank" rel="noopener">GitHub repository</a> to report an issue or contribute.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<script src="solver.js"></script>
<script src="driver.js"></script>
<script src="words3.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://cdn.counter.dev/script.js" data-id="74211804-62e3-41a8-9f09-2f1eac9640fb" data-utcoffset="2"></script>
</body>
</html>