blob: aead4de961c65e638da337b9bea5a6cd6974595e (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>Blank Plays</title>
<link rel="icon" href="data:,"><!--TODO-->
<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;
}
.select-tile-container .tile {
background-color: #c88;
font-weight: normal;
}
.select-tile-container .tile.possible {
background-color: #8c7;
font-weight: bold;
}
.select-tile-container .tile.placing {
background-color: #88c;
font-weight: bold;
}
</style>
<script src="/blankplays.js" async></script>
</head>
<body>
Find all the possible plays with a single blank!<br>
<button>All done!</button>
<div id="board"></div>
<div id="select" style="display: none;">
Select which letters can go here:
</div>
<div id="place">
Choose a letter and click where it goes:
</div>
<div id="select-container">
<div class="select-container-row"></div>
<div class="select-container-row"></div>
</div>
</body>
</html>
|