-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpopup.html
186 lines (172 loc) · 5.86 KB
/
popup.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GUESSER for WORDLE TURKISH</title>
<style>
h2{
background-color: #6AAA64;
color:white;
}
button{
cursor:pointer;
}
.container {
display: flex;
flex-direction: column;
align-items: stretch;
padding:0;
}
h1 {
font-weight: 700;
font-size: 16px;
letter-spacing: 0.5px;
text-transform: uppercase;
text-align: center;
margin-bottom: 10px;
}
h3 {
text-align: left;
padding-left: 10px;
background-color:lightgreen;
color:darkgreen;
padding-top:10px;
font-weight: bold;
width:100%;
display: block;
margin: 6px 0 4px 0;
height:30px
}
#statistics {
display: flex;
margin-bottom:1px;
justify-content: space-between;
}
.statistic-container {
flex: 1;
}
.statistic-container .statistic {
font-size: 16px;
font-weight: 400;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
letter-spacing: 0.05em;
font-variant-numeric: proportional-nums;
}
.statistic-container .label {
font-size: 8px;
display: flex;
justify-content: center;
text-align: center;
}
#guess-distribution {
width: 96%;
}
.graph-container {
width: 100%;
height: 20px;
display: flex;
align-items: center;
padding-bottom: 4px;
font-size: 14px;
line-height: 20px;
}
.graph-container .graph {
width: 100%;
height: 100%;
padding-left: 4px;
}
.graph-container .graph .graph-bar {
height: 100%;
/* Assume no wins */
width: 0%;
position: relative;
background-color: grey;
display: flex;
justify-content: center;
}
.graph-container .graph .graph-bar.align-right {
justify-content: flex-end;
padding-right: 8px;
}
.graph-container .graph .num-guesses {
font-weight: bold;
color: white;
width:inherit;
min-width: auto;
}
.graph-container .guess{
width:20px;
text-align: right;
}
.highlight {
background-color: #6AAA64 !important;
text-align: right;
}
#statistics,
#guess-distribution {
padding-bottom: 10px;
}
.stepNo{
width: 40px;
background-color: darkgreen;
border-radius: 50%;
color: white;
padding: 3px;
}
.statisticsItem{
width: 100%;
height: 265px;
border:0;
border-bottom:1px solid darkgrey;
border-top:1px solid darkgrey;
overflow-y: auto;
display: flex;
flex-flow: column wrap;
justify-content: flex-start;
}
.statisticsItem .wordButton{
flex: 0 0 50px;
}
</style>
</head>
<body style="width: 400px; height: 600px; padding:0px; margin: 0px; position: relative">
<h2 style="text-align: center; font-weight: bold; width:100%; display: block; margin: 0 0 4px 0; height:30px; padding-top:5px; ">GUESSER for WORDLE TURKISH</h2>
<div style="font-weight: bold">WORD:
<input
id="guessedWord"
type="text"
style="font-size: 18px; text-align: center; color:red; font-weight: bold; border: 1px solid darkgrey; letter-spacing: 1px"
size="5"
maxlength="5"> (Want to guess? Type here and hit enter)
</div>
<h3> <span class="stepNo">#1</span> Choose The Guessing Method</h3>
<div style="display: flex; flex-direction: column;" id="methodOptions">
methods are loading...
</div>
<h3> <span class="stepNo">#2</span> Click The Auto Guess Checkbox</h3>
<div>
<span style=""><input type="checkbox" id="isAutomaticGuessOn"> Auto-guess (starts guessing immediately)</span>
</div>
<div id="notes-item" style="width: 100%; height: 30px; border:0px; border-top:1px solid darkgrey; background-color: lightyellow; ">...</div>
<div id="statistics-item" class="statisticsItem">
<div class="container">
<h1 id="statisticsHeader" style="margin-top: 0px;"></h1>
<div id="statistics">
</div>
<div id="guess-distribution">
</div>
</div>
</div>
<div><input type="checkbox" id="gameModalAutoClose_switch">: Keep closed the opening game-modal</div>
<div style="width:100%; display: flex; bottom: 0px; position: absolute; flex-direction:row; justify-content: space-between">
<button class="outLink" data-link="https://www.flaticon.com/free-icons/question" title="Click to go to https://www.flaticon.com/free-icons/question" id="iconCopyrightButton">Icon Copyright</button>
<button class="outLink" data-link="https://www.bundle.app/wordle-tr/" title="Click to go to https://www.bundle.app/wordle-tr/" id="wordleTurkishButton">Wordle Turkish</button>
<button class="outLink" data-link="https://github.com/caglarorhan" title="Click to go to https://github.com/caglarorhan" id="myGitHubProfile">My GitHub Profile</button>
<button id="localStorageResetButton" title="Click to reset all played game data"></button>
</div>
<script src="./js/popup.js" ></script>
</body>
</html>