blob: 5ffdcb689b5f38bdefb3e0155966cb911f2c2a21 (
plain)
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>BlankPlays</title>
<link rel="icon" href="/icon.png">
<style>
body {
font-family: Helvetica, sans-serif;
}
#board {
display: grid;
grid-template-rows: repeat(15, 1fr);
}
.board-row {
display: grid;
grid-template-columns: repeat(15, 1fr);
grid-auto-flow: column;
}
.board-square {
margin: 2px;
background-color: #dde;
line-height: 1;
position: relative;
}
.board-square.double-letter {
background-color: #acf;
}
.board-square.triple-letter {
background-color: #99f;
}
.board-square.double-word {
background-color: #fac;
}
.board-square.triple-word {
background-color: #c66;
}
.tile {
background: #eca;
position: absolute;
top: 6%;
left: 6%;
width: 88%;
height: 88%;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
}
.blank {
color: #333;
font-weight: normal;
}
.highlight {
border: 4px solid #ff0;
width: calc(100% - 8px);
height: calc(100% - 8px);
position: absolute;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.highlight.nothing {
border: 4px solid #f00;
}
.highlight.selected {
border: 4px solid #00f;
}
.possibilities {
word-break: break-all;
}
.point-container {
position: relative;
width: 100%;
height: 100%;
}
.point-value {
position: absolute;
bottom: 8%;
right: 8%;
text-align: center;
font-size: 40%;
}
#select-container {
display: grid;
grid-template-rows: repeat(2, 1fr);
}
.select-container-row {
display: grid;
grid-template-columns: repeat(15, 1fr);
grid-auto-flow: column;
width: 100%;
}
.select-tile-container {
position: relative;
cursor: pointer;
margin: 2px;
}
.select-tile-container .tile {
background-color: transparent;
font-weight: normal;
border: 2px solid black;
}
.select-tile-container .tile.possible,
.select-tile-container .tile.correct {
background-color: #8c7;
font-weight: bold;
text-decoration: underline;
}
.select-tile-container .tile.missed {
background-color: #8c7;
}
.select-tile-container .tile.not-possible {
background-color: #c88;
}
.select-tile-container .tile.wrong {
background-color: #c88;
font-weight: bold;
text-decoration: underline;
}
.select-tile-container .tile.placing {
background-color: #88c;
font-weight: bold;
text-decoration: underline;
}
#submit {
outline: 0;
border: 2px solid #44a;
outline: 2px solid #00a;
box-shadow: 2px 2px 4px #00a;
margin: 4px;
border-radius: 5px;
padding: 2px 5px;
background: #ddf;
}
#submit:hover {
background: #bbf;
}
#submit:active {
transform: translate(2px, 2px);
box-shadow: 0 0 0;
}
.solution-letter.wrong {
text-decoration: line-through;
font-weight: bold;
color: #800;
}
.solution-letter.wrong {
text-decoration: line-through;
font-weight: bold;
color: #800;
}
.solution-letter.correct {
color: #040;
}
.solution-letter.missed {
color: #00a;
font-weight: bold;
}
/* all browsers which support grid should support
the JavaScript we use (if they have javascript at all). */
@supports(display: grid) {
#no-grid {
display: none;
}
}
progress#score-meter::-moz-progress-bar { background: var(--color); }
progress#score-meter::-webkit-progress-value { background: var(--color); }
progress#score-meter { color: var(--color); }
</style>
<script src="/blankplays.js" async></script>
</head>
<body>
<noscript>
<b>You must enable JavaScript in your browser to do these puzzles.</b><br>
</noscript>
<p id="no-grid" style="font-weight:bold;">
Your browser is too old. You'll have to update to a newer version to
do these puzzles.
</p>
Find all the possible plays with a single blank!<br>
<label>Lexicon: <select id="lexicon">
<option value="nwl23">🇨🇦🇺🇸NWL23</option>
<option value="csw24">🇬🇧 CSW24</option>
</select></label>
<label><input type="checkbox" id="skip-2s" checked> Skip 2’s</label>
<label><input type="checkbox" id="skip-3s"> Skip 3’s</label>
<button id="submit">All done!</button>
<div id="board"></div>
<div id="select-heading" style="display: none;">
Select which letters can go here:
</div>
<div id="place-heading">
Choose a letter and click where it goes:
</div>
<div id="select-container"></div>
<div id="stats" style="display:none;">
Score: <progress id="score-meter" max="100"></progress>
<span id="score-span"></span>/100<br>
Correct plays identified: <span id="correct-plays"></span><br>
Incorrect plays guessed: <span id="incorrect-plays"></span><br>
Missed plays: <span id="missed-plays"></span><br>
<textarea id="share" cols="50" rows="3"></textarea><br>
<button id="share-copy">Copy to clipboard</button>
</div>
</body>
</html>
|