aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template/card.html
blob: 07f02c9ec1ffc5224812227b441760174d666c59 (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
<!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.nightMode {
		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">To stand</span>
<span id="sentence-translation" class="parse parse-format native spoiler hidden">Before my eyes stood Alice, _butt-naked_.</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('nightMode')">toggle dark</button>
</div>

</span>
</html>