-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path発.html
More file actions
522 lines (479 loc) · 30.4 KB
/
発.html
File metadata and controls
522 lines (479 loc) · 30.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
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>発</title>
<meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
rt {
font-size: 0.4em;
}
.copyable::after {
content: 'Copied!';
position: absolute;
top: -25px;
right: -50px;
background-color: #d9f9e6;
color: #363636;
font-size: 12px;
padding: 2px 8px;
border-radius: 4px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.copyable.copied::after {
opacity: 1;
visibility: visible;
}
@media screen and (min-width: 1450px) {
.note-container {
min-width: 575px;
}
}
@media screen and (max-width: 1450px) {
.note-container {
min-width: 95%;
}
}
</style>
</head>
<body>
<div class="min-h-screen space-y-10">
<div class="p-4 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg shadow mb-4">
<div class="flex justify-between items-center flex-row-reverse flex-wrap">
<!-- Label and Checkbox -->
<div id="controls" style="display: none">
<label for="showFurigana" class="flex items-center gap-2">
<input
type="checkbox"
id="showFurigana"
class="w-5 h-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"
onchange="toggleShowFurigana(this.checked)"
>
<span class="text-gray-700 font-medium">Ukazovat furiganu</span>
</label>
<label for="showSentences" class="flex items-center gap-2">
<input
type="checkbox"
id="showSentences"
class="w-5 h-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"
onchange="showSentences(this.checked)"
>
<span class="text-gray-700 font-medium">Vždy ukazovat věty</span>
</label>
<label for="showVocabProperties" class="flex items-center gap-2">
<input
type="checkbox"
id="showVocabProperties"
class="w-5 h-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"
onchange="showVocabProperties(this.checked)"
>
<span class="text-gray-700 font-medium">Ukazovat vlastnosti slovíček</span>
</label>
</div>
</div>
</div>
<!-- Kanji Info Section -->
<div class="bg-white shadow-lg rounded-lg overflow-hidden md:flex relative">
<!-- Hide/Show Button -->
<button
id="toggleControls"
onclick="toggleControls(document.getElementById('controls').style.display !== 'none')"
class="my-3 mx-2 px-4 py-3 right-0 absolute bg-indigo-600 text-white rounded-lg shadow hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500"
>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill" viewBox="0 0 16 16">
<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
</svg>
</button>
<!-- Stroke Order Image -->
<div class="bg-gradient-to-br from-indigo-100 to-purple-100 p-6 flex items-center justify-center">
<img
src="https://raw.githubusercontent.com/KanjiBase/kanji.gif/refs/heads/master/kanji/gif/150x150/発.gif"
alt="Kanji Stroke Order"
class="w-44 h-44 rounded-lg border border-gray-200 shadow"
/>
</div>
<!-- Kanji Details -->
<div class="p-6 flex-1 space-y-4">
<h2 class="text-2xl font-bold text-gray-700">発</h2>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-sm text-gray-500">Onyomi</p>
<p class="text-lg font-semibold text-gray-800"><span style="font-weight: bold">ハツ</span></p>
</div>
<div>
<p class="text-sm text-gray-500">Význam</p>
<p class="text-lg font-semibold text-gray-800">začít; vysílat</p>
</div>
<div>
<p class="text-sm text-gray-500">Kunyomi</p>
<p class="text-lg font-semibold text-gray-800">-</p>
</div>
<div>
<p class="text-sm text-gray-500">Radikál</p>
<p class="text-lg font-semibold text-gray-800">
<span>⽨   kroky, roztažené nohy</span>
</p>
</div>
</div>
</div>
</div>
<!-- Vocabulary Section -->
<div>
<div class="flex flex-col lg:flex-row gap-6 flex-wrap">
<div
class="flex-1 gap-4"
style="max-width: 400px;"
>
<span class="text-xl font-bold text-gray-800 mb-4">Povinná slovíčka</span>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-c42e261d', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>出<rt style="visibility: hidden">しゅっ</rt></ruby><ruby>発<rt style="visibility: hidden">ぱつ</rt></ruby>する</p>
<p class="text-sm text-gray-600">vyrazit, vyjet</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-c42e261d" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA">もっと<ruby>早<rt style="visibility: hidden">はや</rt></ruby>く<ruby>出<rt style="visibility: hidden">しゅっ</rt></ruby><ruby>発<rt style="visibility: hidden">ぱつ</rt></ruby>すれば<ruby>良<rt style="visibility: hidden">よ</rt></ruby>かったのに。</span></div>
<div style="margin-bottom: 5px; color: #666;">Měl jsem vyjet dřív.</div>
</div>
<div>
<div style="margin-bottom: 5px;"><ruby>出<rt style="visibility: hidden">しゅっ</rt></ruby><ruby>発<rt style="visibility: hidden">ぱつ</rt></ruby>の<ruby>準<rt style="visibility: hidden">じゅん</rt></ruby><ruby>備<rt style="visibility: hidden">び</rt></ruby>はできている? Jste připraveni vyrazit?</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-f8436292', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はつ</rt></ruby><ruby>音<rt style="visibility: hidden">おん</rt></ruby></p>
<p class="text-sm text-gray-600">výslovnost</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div id="vocab-f8436292" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA">この<ruby>言<rt style="visibility: hidden">こと</rt></ruby><ruby>葉<rt style="visibility: hidden">ば</rt></ruby>の<ruby>発<rt style="visibility: hidden">はつ</rt></ruby><ruby>音<rt style="visibility: hidden">おん</rt></ruby>の<ruby>仕<rt style="visibility: hidden">し</rt></ruby><ruby>方<rt style="visibility: hidden">かた</rt></ruby>を<ruby>教<rt style="visibility: hidden">おし</rt></ruby>えて下さい。</span></div>
<div style="margin-bottom: 5px; color: #666;">Jak se vyslovuje toto slovo?</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-9b91734f', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>見<rt style="visibility: hidden">けん</rt></ruby></p>
<p class="text-sm text-gray-600">objev, zjištění</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-9b91734f" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA"><ruby>誰<rt style="visibility: hidden">だれ</rt></ruby>がアメリカを<ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>見<rt style="visibility: hidden">けん</rt></ruby>したのですか。</span></div>
<div style="margin-bottom: 5px; color: #666;">Kdo objevil Ameriku?</div>
</div>
<div>
<div style="margin-bottom: 5px;"><span lang="JA"><ruby>生<rt style="visibility: hidden">い</rt></ruby>きている<ruby>彼<rt style="visibility: hidden">かれ</rt></ruby>を<ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>見<rt style="visibility: hidden">けん</rt></ruby>しました。</span></div>
<div style="margin-bottom: 5px; color: #666;">Našli jsme ho živého.</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-c2654569', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>行<rt style="visibility: hidden">こう</rt></ruby></p>
<p class="text-sm text-gray-600">vydání, publikace (knihy)</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-c2654569" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA"><ruby>今<rt style="visibility: hidden">こん</rt></ruby><ruby>月<rt style="visibility: hidden">げつ</rt></ruby><ruby>号<rt style="visibility: hidden">ごう</rt></ruby>の<ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>行<rt style="visibility: hidden">こう</rt></ruby>は1<ruby>週<rt style="visibility: hidden">しゅう</rt></ruby><ruby>間<rt style="visibility: hidden">かん</rt></ruby><ruby>遅<rt style="visibility: hidden">おく</rt></ruby>れるだろう。</span></div>
<div style="margin-bottom: 5px; color: #666;">Tento měsíc bude vydání o týden opožděno.</div>
</div>
<div>
<div style="margin-bottom: 5px;"><span lang="JA">その<ruby>雑<rt style="visibility: hidden">ざっ</rt></ruby><ruby>誌<rt style="visibility: hidden">し</rt></ruby>は<ruby>月<rt style="visibility: hidden">つき</rt></ruby>に<ruby>二<rt style="visibility: hidden">に</rt></ruby><ruby>度<rt style="visibility: hidden">ど</rt></ruby><ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>行<rt style="visibility: hidden">こう</rt></ruby>されています。</span></div>
<div style="margin-bottom: 5px; color: #666;">Časopis vychází dvakrát měsíčně.</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-af95ba0a', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>車<rt style="visibility: hidden">しゃ</rt></ruby></p>
<p class="text-sm text-gray-600">odjezd vlaku/ autobusu/ auta...</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-af95ba0a" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA">バスは<ruby>五<rt style="visibility: hidden">ご</rt></ruby><ruby>分<rt style="visibility: hidden">ふん</rt></ruby><ruby>後<rt style="visibility: hidden">あと</rt></ruby>に<ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>車<rt style="visibility: hidden">しゃ</rt></ruby>します。</span></div>
<div style="margin-bottom: 5px; color: #666;">Autobus odjíždí za pět minut.</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-192e6ece', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はつ</rt></ruby><ruby>売<rt style="visibility: hidden">ばい</rt></ruby></p>
<p class="text-sm text-gray-600">uvedení na trh, spuštění prodeje</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-192e6ece" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA"><ruby>新<rt style="visibility: hidden">あたら</rt></ruby>しいスマホが<ruby>来<rt style="visibility: hidden">らい</rt></ruby><ruby>月<rt style="visibility: hidden">げつ</rt></ruby><ruby>発<rt style="visibility: hidden">はつ</rt></ruby><ruby>売<rt style="visibility: hidden">ばい</rt></ruby>されます。</span></div>
<div style="margin-bottom: 5px; color: #666;">Nový smartphone bude uveden na trh příští měsíc.</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-green-50 to-green-100 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-a9985747', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>活<rt style="visibility: hidden">かっ</rt></ruby><ruby>発<rt style="visibility: hidden">ぱつ</rt></ruby>な</p>
<p class="text-sm text-gray-600">aktivní</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #ACA52F; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
な - příd. jméno
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #ACA52F; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Většinou koncovka ~な odpadá (např. při použití s 'です'), pokud se neváže na podstatné jméno.
</span>
</span>
</div>
<div id="vocab-a9985747" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA">うちの<ruby>母<rt style="visibility: hidden">はは</rt></ruby>は<ruby>活<rt style="visibility: hidden">かっ</rt></ruby><ruby>発<rt style="visibility: hidden">ぱつ</rt></ruby>です。</span></div>
<div style="margin-bottom: 5px; color: #666;">Moje máma je velmi aktivní.</div>
</div>
</div>
</div>
</div>
</div>
<div
class="flex-1 gap-4"
style="max-width: 400px;"
>
<span class="text-xl font-bold text-gray-800 mb-4">Budou v sadě / Rozšiřující</span>
<div class="bg-gradient-to-r from-purple-100 to-purple-300 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-08a8636d', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>表<rt style="visibility: hidden">ぴょう</rt></ruby>する</p>
<p class="text-sm text-gray-600">oznámit</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-08a8636d" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA"><ruby>意<rt style="visibility: hidden">い</rt></ruby><ruby>外<rt style="visibility: hidden">がい</rt></ruby>な<ruby>結<rt style="visibility: hidden">けっ</rt></ruby><ruby>果<rt style="visibility: hidden">か</rt></ruby>が<ruby>発<rt style="visibility: hidden">はっ</rt></ruby><ruby>表<rt style="visibility: hidden">ぴょう</rt></ruby>されました。</span></div>
<div style="margin-bottom: 5px; color: #666;">Byly oznámeny neočekávané výsledky.</div>
</div>
</div>
</div>
</div>
<div class="bg-gradient-to-r from-purple-100 to-purple-300 rounded-lg shadow p-4 flex flex-col my-2">
<div class="flex justify-between items-center cursor-pointer" onclick="toggleExample('vocab-3936c19c', this)">
<div>
<p class="text-lg text-2xl text-gray-800 copyable relative"
onclick="copyText(this)"><ruby>爆<rt style="visibility: hidden">ばく</rt></ruby><ruby>発<rt style="visibility: hidden">はつ</rt></ruby></p>
<p class="text-sm text-gray-600">výbuch, exploze</p>
</div>
<button class="button-vocab-toggle text-gray-600 hover:text-gray-900
transform transition-transform duration-200 px-2">▼</button>
</div>
<div class='my-2 vocab-properties'>
<span class="property-label" onclick="this.querySelector('span').style.display = (this.querySelector('span').style.display === 'none' || this.querySelector('span').style.display === '') ? 'block' : 'none';" style="display: inline-block; background-color: #4A90E2; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; font-family: Arial, sans-serif; cursor: pointer; position: relative; margin-right: 8px;">
する sloveso
<span style="display: none; position: absolute; top: 120%; left: 0; background-color: white; color: black; border: 1px solid #4A90E2; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-family: Arial, sans-serif; z-index: 10; min-width: 150px;">
Nepravidelná slovesa se chovají podobně dle する tvaru.
</span>
</span>
</div>
<div id="vocab-3936c19c" class="button-vocab-example hidden text-gray-700">
<div class="mt-2 p-2 rounded bg-white shadow">
<div>
<div style="margin-bottom: 5px;"><span lang="JA">その<ruby>爆<rt style="visibility: hidden">ばく</rt></ruby><ruby>発<rt style="visibility: hidden">はつ</rt></ruby>の<ruby>原<rt style="visibility: hidden">げん</rt></ruby><ruby>因<rt style="visibility: hidden">いん</rt></ruby>は<ruby>何<rt style="visibility: hidden">なん</rt></ruby>ですか。</span></div>
<div style="margin-bottom: 5px; color: #666;">Co způsobilo výbuch?</div>
</div>
</div>
</div>
</div>
</div>
<div></div>
</div>
</div>
<br>
<script>
function extractText(node) {
if (node.nodeType === Node.TEXT_NODE) {
return node.textContent;
}
if (node.nodeType === Node.ELEMENT_NODE && node.tagName !== 'RT') {
return Array.from(node.childNodes).map(child => extractText(child)).join('');
}
}
function copyText(elem) {
let textToCopy = extractText(elem);
navigator.clipboard.writeText(textToCopy).then(() => {
elem.classList.add('copied');
setTimeout(() => {
elem.classList.remove('copied');
}, 1200);
})
}
function toggleExample(exampleId, self) {
const example = document.getElementById(exampleId);
const button = Array.from(self.children).find(child => child.tagName === 'BUTTON');
if (example.style.display === "none" || !example.style.display) {
example.style.display = "block";
button.textContent = "▲";
} else {
example.style.display = "none";
button.textContent = "▼";
}
}
function toggleShowFurigana(value) {
value = rememberValue('showFurigana', value) === 'true';
document.querySelectorAll('ruby rt').forEach(element => {
element.style.visibility = value ? 'visible' : 'hidden';
});
document.getElementById("showFurigana").checked = value;
}
function toggleControls(isHidden) {
const controls = document.getElementById('controls');
isHidden = rememberValue('hideControls', isHidden) === 'true';
if (isHidden) {
controls.style.display = 'none';
} else {
controls.style.display = 'block';
}
sendHeightToParent();
}
function showSentences(doShow) {
doShow = rememberValue('showSentences', doShow) === 'true';
document.querySelectorAll('.button-vocab-toggle').forEach(element => {
element.textContent = doShow ? "▲" : "▼";
});
document.querySelectorAll('.button-vocab-example').forEach(element => {
element.style.display = doShow ? "block" : "none";
});
document.getElementById("showSentences").checked = doShow;
sendHeightToParent();
}
function showVocabProperties(doShow) {
doShow = rememberValue('showVocabProperties', doShow) === 'true';
document.querySelectorAll('.vocab-properties').forEach(element => {
element.style.display = doShow ? "block" : "none";
});
document.getElementById("showVocabProperties").checked = doShow;
sendHeightToParent();
}
// Call functions to initialize state
toggleShowFurigana();
toggleControls();
showSentences();
showVocabProperties();
// Helper functions
function rememberValue(key, value, defaultValue='true') {
if (value === undefined) {
return (localStorage.getItem(key) || defaultValue);
}
value = String(value);
localStorage.setItem(key, value);
return value;
}
function sendHeightToParent() {
setTimeout(() => {
const height = document.documentElement.scrollHeight;
window.parent && window.parent.postMessage({ iframeHeight: height, test: "true" }, "https://elf.phil.muni.cz");
});
}
// Call the function when the iframe is loaded
window.addEventListener("load", sendHeightToParent);
// Call the function when the iframe content changes (optional for dynamic content)
window.addEventListener("resize", sendHeightToParent);
</script>
</body>
</html>