forked from skishore/makemeahanzi
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
37 lines (36 loc) · 1.27 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<link rel="stylesheet" type="text/css" href="main.css">
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
</head>
<body>
<div class="header">
<h1 class="header">Stroke Order Exercise Sheet Generator</h1>
<div class="generate-box">
<input type="text" name="generate" id="generate-text" class="generate-text" value="汉语" autofocus>
<input type="button" class="generate" onclick="var chars = document.getElementById('generate-text');serialize(chars.value)" value="Generate">
</div>
<h2 class="header">Beta v1.1</h2>
<input type="range" min="0" max="100" value="0" class="box-width-range" id="box-width">
</div>
<div id="page">
<div id="sheet"></div>
</div>
<script type="text/javascript" src="functions.js"></script>
<script type="text/javascript">
var slider = document.getElementById("box-width")
slider.oninput = function(){
var hanziBox = document.getElementsByClassName("hanzi-svg");
for (var i = 0; i < hanziBox.length; i++) {
hanziBox[i].style.width = String((this.value/75)+1)+"cm";
}
}
</script>
</body>
</html>