aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template/card.html
blob: 825db5d4cce1ee6ae878336c3e6f7dcf0505493e (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
<!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;
	}
	</style>
</head>
<body>

<div id="card" class="back vertical-layout">
<div id="front">
<span id="sentence" class="parse parse-furigana parse-format foreign">[実](じつ)は[今](いま)、この[里](さと)は[水](みず)の{神}(しん){獣}(じゅう)ヴァ・ルッタのせいで[存亡](そんぼう)の[危機](きき)に*[見舞](みま)われておる*ゾヨ\n\*escape\* (<i>test</i>)</span>
</div>
<hr id="separator">
<div id="back">
<span id="target-word-reading" class="parse parse-format parse-reading parse-indicators parse-script foreign">見舞われる[0]【み・まわれる】(note)</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>

<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>