-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (93 loc) · 4.34 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
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
<!DOCTYPE html>
<html>
<head>
<title>Kumiko Pattern Designer</title>
<script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js@3.0/dist/svg.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Smooch+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="sidenav">
<br>
<label for="mode">Mode:</label><br>
<select name="mode" id="mode" style="background-color:antiquewhite;"">
<option value="DRAW">Draw</option>
<option value="INSPIRE_ME">Inspire me</option>
</select>
<form>
<p style="margin-bottom: 5px; font-size: 18px; font-weight: 100;">KUMIKO PATTERN</p>
<input type="radio" id="asanoha" name="kumiko_pattern" value="asanoha" checked>
<img height=15px src="assets/asanoha.svg" />
<label for="asanoha">Asanoha</label>
<br>
<input type="radio" id="yae_asanoha" name="kumiko_pattern" value="yae_asanoha" checked>
<img height=15px src="assets/yae_asanoha.svg" />
<label for="yae_asanoha">Yae-Asanoha</label>
<br>
<input type="radio" id="shippo_kikkou" name="kumiko_pattern" value="shippo_kikkou" checked>
<img height=15px src="assets/shippo_kikkou.svg" />
<label for="shippo_kikkou">Shippo-kikkou</label>
<br>
<input type="radio" id="kagome" name="kumiko_pattern" value="kagome">
<img height=15px src="assets/kagome.svg" />
<label for="kagome">Kagome</label>
<br>
<input type="radio" id="kasana_rindo" name="kumiko_pattern" value="kasana_rindo">
<img height=15px src="assets/kasane-rindo.svg" />
<label for="kasana_rindo">Kasane-Rindo</label>
<br>
<input type="radio" id="tsumiishi_kikko" name="kumiko_pattern" value="tsumiishi_kikko">
<img height=15px src="assets/tsumiishi-kikko.svg" />
<label for="tsumiishi_kikko">Tsumiishi-Kikko</label>
<br>
<input type="radio" id="goma" name="kumiko_pattern" value="goma">
<img height=15px src="assets/goma.svg" />
<label for="goma">Goma</label>
<br>
<input type="radio" id="yae_urahana_kikkou" name="kumiko_pattern" value="yae_urahana_kikkou">
<img height=15px src="assets/yae_urahana_kikkou.svg" />
<label for="yae_urahana_kikkou">Yae-urahana-kikkou</label>
<br>
<input type="radio" id="bishamon_kikkou" name="kumiko_pattern" value="bishamon_kikkou">
<img height=15px src="assets/bishamon_kikkou.svg" />
<label for="bishamon_kikkou">Bishamon-kikkou</label>
<br>
<input type="radio" id="mitsukude" name="kumiko_pattern" value="mitsukude">
<img height=15px src="assets/mitsukude.svg" />
<label for="mitsukude">Mitsukude</label>
<br>
<p style="margin-bottom: 5px; font-size: 18px; font-weight: 100;">OTHER OPTIONS</p>
<input type="radio" id="delete_single_pattern" name="kumiko_pattern" value="delete_single_pattern">
<label for="delete_single_pattern">Delete (on click)</label>
<br><br>
<input type="checkbox" id="grid" name="grid" value="toggle_grid" checked>
<label for="grid">Show grid</label>
<br><br>
<!-- <p>Kukimo element size: <span id="slidervalue_element_size">40</span>px</p>
<div class="slidecontainer">
<input type="range" min="10" max="300" value="50" step="10" class="slider" id="slider_element_size">
</div> -->
<p>Grid stroke width: <span id="slidervalue_triangle_stroke_width">40</span>px</p>
<div class="slidecontainer">
<input type="range" min="1" max="10" value="3" step="1" class="slider" id="slider_triangle_stroke_width">
</div>
<p>Pattern stroke width: <span id="slidervalue_pattern_stroke_width">40</span>px</p>
<div class="slidecontainer">
<input type="range" min="1" max="10" value="3" step="1" class="slider" id="slider_pattern_stroke_width">
</div>
</form>
<br><br>
<button style="background-color:antiquewhite; padding: 5px 10px 5px 10px; border-radius: 2px;" onclick="undo()"><b>Undo</b></button>
<br><br>
<button style="background-color: #ff8080; padding: 5px 10px 5px 10px; border-radius: 2px;" onclick="removeAllElements()"><b>Restart</b></button>
<br><br>
<button style="background-color:antiquewhite; padding: 5px 10px 5px 10px; border-radius: 2px;" onclick="download('kumiko.svg')"><b>Download pattern</b></button>
<br><br><br><br>
</div>
<div id="svg_container"></div>
</body>
<script src="general.js"></script>
<script src="triangleGridEditor.js"></script>
</html>