-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.html
148 lines (121 loc) · 4.82 KB
/
generator.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Flashcard generator | vlearn</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/generator.css">
<meta name="description" content="Write and export flashcards to PNG." />
<meta name="keywords" content="flashcards, generator, images" />
</head>
<body>
<nav>
<p class="home-link"><a href="index.html">vlearn</a></p>
<p class="sub">Games</p>
<ul>
<li>
<a href="guess-what.html">
<img class="icon" src="./res/guess-what.png" alt="" />
<p>Guess what</p>
</a>
</li>
</ul>
<p class="sub">Tools</p>
<ul>
<li>
<a href="">
<img src="./res/lightbulb-colored.png" alt="" />
<p><strong>Flashcard generator</strong></p>
</a>
</li>
<li>
<a href="my-entries.html">
<img class="icon" src="./res/book.png" alt="my-entries">
<p>My entries</p>
</a>
</li>
</ul>
</nav>
<main>
<h1>Multi Flashcard Generator</h1>
<div>
<h2>Flashcard content</h2>
<div class="container flashcard-info scrollable-x">
<table id="entries" class="centered entries">
<thead>
<tr>
<th class="entry-cell">Kanji</th>
<th class="entry-cell">Reading</th>
<th class="custom-color-cell">Custom color?</th>
<th>Color</th>
</tr>
</thead>
<tr>
<td><input id="last" onchange="addRow()" placeholder="Kanji" value="" type="text"></td>
<td><input placeholder="Reading" value="" type="text"></td>
<td>
<input onclick="hideColorPicker(event)" type="checkbox">
</td>
<td><input class="invisible" type="color"></td>
</tr>
</table>
</div>
</div>
<div class="centered container output-settings">
<h2>Output settings <img src="res/adjust.png" alt=""> </h2>
<table>
<tr>
<td>
<label for="width-selector" class="inline"><img src="res/width.png" alt="Width" /></label>
</td>
<td>
<input name="width-selector" id="width-selector" value="476" min="48" max="10000"
type="number" />
</td>
</tr>
<tr>
<td>
<label for="height-selector" class="inline"><img src="res/height.png" alt="Height" /></label>
</td>
<td>
<input name="height-selector" id="height-selector" value="556" min="48" max="10000"
type="number" />
</td>
</tr>
</table>
</div>
<div class="centered container color-table-div">
<h2>Color table <img src="res/color-palette.png" alt=""> </h2>
<p>Random colors to choose from.</p>
<button class="rounded secondary" onclick="addColor()">Add <img src="res/more.png" alt="">
</button>
<table id="color-table">
<tr>
<td><input type="color" value="#f1bc31" /></td>
</tr>
</table>
</div>
<div class="centered container output">
<h2>Output</h2>
<div class="output-buttons">
<button onclick="generate()" class="rounded"><img src="res/lightbulb-white.png" alt="">
Generate</button>
<button onclick="downloadAll('canvas-area')" class="rounded"><img src="res/downward.png" alt="">
Download all</button>
<label for="numerate" class="rounded button-like">
<img src="res/123-numbers.png" alt="" class="icon">
Numerate files?
<input id="numerate" type="checkbox" />
</label>
</div>
<p id="info-giver">No flashcards generated yet.</p>
<div id="canvas-area"></div>
</div>
</main>
<script src="js/filesaver.js"></script>
<script src="js/jszip.js"></script>
<script src="js/download.js"></script>
<script src="js/list-generator.js"></script>
<script src="js/events.js"></script>
</body>
</html>