-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
219 lines (215 loc) · 10.5 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
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
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="he">
<head>
<meta charset="UTF-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>מדויקת: משחק מילים</title>
<link rel="icon" href="favicon.png">
<meta property="og:image" content="screenshot.png">
<meta property="og:description" content="נסו לנחש את המילה המדויקת, יש 6 נסיונות. כל ניחוש חייב להיות מילה בת 5 אותיות. לאחר כל ניחוש, צבע האותיות ישתנה כדי להראות כמה הניחוש היה קרוב למילה">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="מדויקת: משחק מילים">
<meta name="twitter:image" content="https://amirlb.github.io/meduyeket/screenshot-twitter.png">
<link rel="stylesheet" href="style.css">
<script src="words.js" charset="UTF-8"></script>
<script src="main.js" charset="UTF-8"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9BNSJSTY61"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-9BNSJSTY61', { cookieFlags: 'SameSite=None; Secure' });
</script>
</head>
<!--
A word guessing game inspired by Wordle
Copyright (C) 2022 Amir Livne Bar-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<body>
<div id="header">
<svg id="help-button" viewbox="0 0 105 105">
<path
d="M 34 35 A 16 12.5 0 1 1 59.6 45 A 24 18.75 0 0 0 50 60"
stroke-width="10" stroke-linecap="round" fill="none" stroke="gray" />
<circle cx="50" cy="76" r="8" fill="gray" />
<circle cx="50" cy="50" r="45" stroke-width="10" fill="none" stroke="gray" />
</svg>
<span id="app-name">מדויקת</span>
</div>
<div id="guesses">
<div class="row" id="guess-1">
<div class="letter" id="letter-1-1"></div>
<div class="letter" id="letter-1-2"></div>
<div class="letter" id="letter-1-3"></div>
<div class="letter" id="letter-1-4"></div>
<div class="letter" id="letter-1-5"></div>
</div>
<div class="row" id="guess-2">
<div class="letter" id="letter-2-1"></div>
<div class="letter" id="letter-2-2"></div>
<div class="letter" id="letter-2-3"></div>
<div class="letter" id="letter-2-4"></div>
<div class="letter" id="letter-2-5"></div>
</div>
<div class="row" id="guess-3">
<div class="letter" id="letter-3-1"></div>
<div class="letter" id="letter-3-2"></div>
<div class="letter" id="letter-3-3"></div>
<div class="letter" id="letter-3-4"></div>
<div class="letter" id="letter-3-5"></div>
</div>
<div class="row" id="guess-4">
<div class="letter" id="letter-4-1"></div>
<div class="letter" id="letter-4-2"></div>
<div class="letter" id="letter-4-3"></div>
<div class="letter" id="letter-4-4"></div>
<div class="letter" id="letter-4-5"></div>
</div>
<div class="row" id="guess-5">
<div class="letter" id="letter-5-1"></div>
<div class="letter" id="letter-5-2"></div>
<div class="letter" id="letter-5-3"></div>
<div class="letter" id="letter-5-4"></div>
<div class="letter" id="letter-5-5"></div>
</div>
<div class="row" id="guess-6">
<div class="letter" id="letter-6-1"></div>
<div class="letter" id="letter-6-2"></div>
<div class="letter" id="letter-6-3"></div>
<div class="letter" id="letter-6-4"></div>
<div class="letter" id="letter-6-5"></div>
</div>
</div>
<div id="keyboard">
<div class="keyboard-row">
<div class="key wide" value="Backspace"><svg viewBox="0 0 60 50">
<path d="M50,10L20,10L10,25L20,40L50,40L50,10M27,20L37,30M37,20L27,30" fill="none" stroke-width="5" stroke="black" stroke-linecap="square" />
</svg></div
><div class="key">פ</div
><div class="key">ו</div
><div class="key">ט</div
><div class="key">א</div
><div class="key">ר</div
><div class="key">ק</div>
</div>
<div class="keyboard-row">
<div class="key">ל</div
><div class="key">ח</div
><div class="key">י</div
><div class="key">ע</div
><div class="key">כ</div
><div class="key">ג</div
><div class="key">ד</div
><div class="key">ש</div>
</div>
<div class="keyboard-row">
<div class="key wide" value="Enter">
<div>אישור</div>
<svg viewBox="0 0 65 50">
<path d="M55,15L55,30L10,30L20,20M10,30L20,40" fill="none" stroke-width="5" stroke="black" stroke-linecap="round" stroke-linejoin="round" />
</svg></div
><div class="key">ת</div
><div class="key">צ</div
><div class="key">מ</div
><div class="key">נ</div
><div class="key">ה</div
><div class="key">ב</div
><div class="key">ס</div
><div class="key">ז</div>
</div>
</div>
<div id="modal" class="hidden">
<div id="help-screen" class="hidden">
<div class="close-button">⨉</div>
<h1>איך לשחק?</h1>
<p>נסו לנחש את המילה ה<b>מדויקת</b>, יש 6 נסיונות.</p>
<p>
כל ניחוש חייב להיות מילה בת 5 אותיות.
לחצו על כפתור
<span class="no-break">”<svg viewBox="0 0 65 50">
<path d="M55,15L55,30L10,30L20,20M10,30L20,40" fill="none" stroke-width="5" stroke="black" stroke-linecap="round" stroke-linejoin="round" />
</svg>“</span>
כדי לבדוק את הניחוש.
</p>
<p>לאחר כל ניחוש, צבע האותיות ישתנה כדי להראות כמה הניחוש היה קרוב למילה.</p>
<h2>דוגמאות</h2>
<p>
<span class="letter example full">ר</span>
<span class="letter example exact">צ</span>
<span class="letter example full">ו</span>
<span class="letter example full">נ</span>
<span class="letter example full">י</span>
</p>
<p>
האות
<b>צ</b>
נמצאת במילה והיא במקום הנכון.
</p>
<p>
<span class="letter example full">ק</span>
<span class="letter example full">ב</span>
<span class="letter example full">י</span>
<span class="letter example full">י</span>
<span class="letter example other">ם</span>
</p>
<p>
האות
<b>מ</b>
נמצאת במילה אבל היא במקום הלא נכון, כלומר לא אות סופית.
</p>
<p>
<span class="letter example full">א</span>
<span class="letter example full">כ</span>
<span class="letter example full">ל</span>
<span class="letter example wrong">נ</span>
<span class="letter example full">ו</span>
</p>
<p>
האות
<b>נ</b>
לא נמצאת במילה בכלל.
</p>
<h2>בכל יום תופיע מילה חדשה לנחש.</h2>
<div id="copyright-notice">
<p>כל הזכויות שמורות לעמיר ליבנה בר-און © 2022.</p>
<p>
המשחק מבוסס על
<a href="https://www.powerlanguage.co.uk/wordle/" target="_blank">Wordle</a>
וקוד המקור שלו
<a href="https://github.com/amirlb/meduyeket" target="_blank">זמין לצפייה</a>.
</p>
</div>
</div>
<div id="success-screen" class="hidden">
<div class="close-button">⨉</div>
<h1 id="success-header"></h1>
<p>שתפו את התוצאה:</p>
<div id="share-button">
<div id="result"></div>
<div id="share-button-text">
<svg viewBox="0 0 24 24">
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z" fill="white" />
</svg>
<span>שיתוף</span>
</div>
</div>
<div id="countdown-container">
<div>המילה הבאה בעוד</div>
<div id="countdown"></div>
</div>
</div>
</div>
<div id="popup" class="hidden"></div>
</body>
</html>