aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template/card.html
blob: 915466587022386abab4d15b6cc16e78e5d8af38 (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
<!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-brackets foreign">予期しない【よ・き・しない】</span>
<span id="target-word-translation" class="parse parse-format native">Unexpected</span>
<span id="sentence-translation" class="parse parse-format native spoiler hidden">"Dictionary" has quit unexpectedly</span>
<span id="tags" class="parse parse-tags">tag1 tag2 tag example-long-tag-here</span>
</div>
</div>

<div id="dev-buttons">
<button onclick="document.getElementById('card').classList.toggle('back'); document.getElementById('card').classList.toggle('front')">toggle view</button>
<button onclick="document.getElementById('card').classList.toggle('horizontal-layout'); document.getElementById('card').classList.toggle('vertical-layout')">toggle layout</button>
<button onclick="document.body.classList.toggle('night_mode')">toggle dark</button>
<button onclick="document.body.classList.toggle('mobile')">toggle mobile</button>
</div>

</span>
</html>