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
|
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>card template test</title>
<link rel='stylesheet' type='text/css' media='screen' href='./card.css'>
<script defer src='./card.js'></script>
<style>
body.night_mode {
background-color: black;
color: white;
}
#dev-buttons {
position: fixed;
left: 0;
bottom: 0;
margin: 1em;
}
/* from reviewer.css */
.replay-button {
text-decoration: none;
display: inline-flex;
vertical-align: middle;
margin: 3px;
}
.replay-button svg {
width: 40px;
height: 40px;
}
.replay-button svg circle {
fill: #fff;
stroke: #414141;
}
.replay-button svg path {
fill: #414141;
}
</style>
</head>
<body>
<div id="card" class="back vertical-layout">
<div id="front">
<span id="sentence" class="parse parse-furigana parse-format parse-script foreign">[実](じつ)は[今](いま)、この[里](さと)は[水](みず)の{神}(しん){獣}(じゅう)ヴァ・ルッタのせいで[存亡](そんぼう)の[危機](きき)に*[見舞](みま)われておる*ゾヨ\n\*escape\* (<i>test</i>)</span>
</div>
<hr id="separator">
<div id="back">
<span class="flex-line">
<span id="target-word-reading" class="parse parse-format parse-reading parse-indicators parse-script foreign">見舞われる,他の書き方、書き方3【み・まわれる】[0] (note)</span>
<span id="audio"><a class="replay-button soundLink" href="#" onclick="pycmd('play:a:0'); return false;"><svg class="playImage" viewBox="0 0 64 64" version="1.1"><circle cx="32" cy="32" r="29"></circle><path d="M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z"></path></svg></a></span>
</span>
<span id="target-word-translation" class="parse parse-format parse-definitions parse-indicators parse-script native">[verb] To experi\ence {crisis}, [な-adj] to <span class="inline spoiler hidden parse">undergo</span>, [テスト] to suffer {test,テスト,test} (this is, a single item)\, and still is here, [ば\-test] but not here</span>
<span id="sentence-translation" class="parse parse-format native spoiler parse-script hidden">This village is now in danger of *extinction* because of _Vah Ruta_, the water divine beast.</span>
<span id="tags" class="parse parse-tags">ゼルダの伝説 ブレス・オブ・ザ・ワイルド</span>
</div>
<svg id="play-icon" class="display-none" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"><path d="M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"/></svg>
<style>
#card.front #dev-button-flip::after { content: "front"; }
#card.back #dev-button-flip::after { content: "back"; }
#card.horizontal-layout #dev-button-layout::after { content: "horizontal layout"; }
#card.vertical-layout #dev-button-layout::after { content: "vertical layout"; }
body:not(.night_mode) #dev-button-theme::after { content: "light mode"; }
body.night_mode #dev-button-theme::after { content: "dark mode"; }
body:not(.mobile) #dev-button-platform::after { content: "desktop"; }
body.mobile #dev-button-platform::after { content: "mobile"; }
</style>
<div id="dev-buttons">
<button id="dev-button-flip" onclick="document.getElementById('card').classList.toggle('back'); document.getElementById('card').classList.toggle('front')"></button>
<button id="dev-button-layout" onclick="document.getElementById('card').classList.toggle('horizontal-layout'); document.getElementById('card').classList.toggle('vertical-layout')"></button>
<button id="dev-button-theme" onclick="document.body.classList.toggle('night_mode')"></button>
<button id="dev-button-platform" onclick="document.body.classList.toggle('mobile')"></button>
</div>
</div>
</span>
</html>
|