-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
188 lines (187 loc) · 7.03 KB
/
index.html
File metadata and controls
188 lines (187 loc) · 7.03 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Hitomezashi Stitch Pattern</title>
<meta
name="description"
content="A website that displays hitomezashi stitch patterns using two sequences. The sequences can be random or user defined. Users can also change the colors of the sequences and background. Inspired by Numberphile."
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="Hitomezashi Stitch Pattern" />
<meta property="og:url" content="https://hitomezashi.krastan.com" />
<meta property="og:image" content="/public/favicon.ico" />
<meta name="theme-color" content="#fafafa" />
<link rel="icon" href="public/favicon.ico" />
<link rel="stylesheet" href="style.css" />
<link rel="manifest" href="public/manifest.json" />
<script
defer
data-domain="hitomezashi.krastan.com"
src="https://analytics.krastan.com/js/plausible.js"
></script>
</head>
<body>
<div>
<div class="sidebar" id="mySidebar">
<div class="sidebar-content-wrapper">
<div class="closeBtn-container">
<span class="resetBtn" title="Reset" role="button">↻</span>
<span
id="sidebarCloseButton"
class="closeBtn"
title="Close"
role="button"
>×</span
>
</div>
<div class="sidebar-examples-container">
<a
href="https://hitomezashi.krastan.com/?hSeqType=1&vSeqType=1&hStrokeType=2&vStrokeType=2&hStroke=%2523ead600&vStroke=%2523ffde0c&hSeq=10&vSeq=01&isSidebarOpen=true"
target="_self"
><button>Example 1</button>
</a>
<a
href="https://hitomezashi.krastan.com/?hSeqType=2&vSeqType=4&hStrokeType=2&vStrokeType=2&hStroke=%25233b35e2&vStroke=%25233732d0&background=%23d980b9&vSeq=Sweet&hSeq=1234432234343&isSidebarOpen=true"
target="_self"
>
<button>Example 2</button>
</a>
<a
href="https://hitomezashi.krastan.com/?hSeqType=3&vSeqType=5&hStrokeType=2&vStrokeType=1&hStroke=%25230013e1&vStroke=%2523da00e2&background=%23f5fffd&vLegend=false&hLegend=false&hSeq=69420&vSeq=PatternsRule&isSidebarOpen=true"
target="_self"
>
<button>Example 3</button>
</a>
</div>
<hr />
<form name="myForm" class="sidebar-form">
<h3 class="sidebar-label">Horizontal Sequence</h3>
<label class="sidebar-checkbox-label">Sequence</label>
<select
name="horizontalSelect"
id="horizontalSelect"
class="sidebar-select"
>
<option value="0" selected>Random</option>
<option value="1">Binary</option>
<option value="2">Odds/Evens</option>
<option value="3">Decimal converted to Binary</option>
<option value="4">Vowels/Consonants</option>
<option value="5">Alphabet converted to Binary</option>
</select>
<input
class="sidebar-input"
type="text"
name="horizontalSequence"
placeholder="Enter sequence..."
/>
<label class="sidebar-checkbox-label">Stroke Color</label>
<select
name="horizontalStrokeSelect"
id="horizontalStrokeSelect"
class="sidebar-select"
>
<option value="0" selected>Rainbow</option>
<option value="1">Random</option>
<option value="2">Custom</option>
</select>
<input
class="sidebar-input"
type="color"
name="horizontalStrokeInput"
/>
<div>
<input
class="sidebar-checkbox"
type="checkbox"
name="horizontalCheckbox"
id="horizontalCheckbox"
checked
/>
<label class="sidebar-checkbox-label" for="horizontalCheckbox">
Show sequence
</label>
</div>
<hr />
<h3 class="sidebar-label">Vertical Sequence</h3>
<label class="sidebar-checkbox-label">Sequence</label>
<select
name="verticalSelect"
id="verticalSelect"
class="sidebar-select"
>
<option value="0" selected>Random</option>
<option value="1">Binary</option>
<option value="2">Odds/Evens</option>
<option value="3">Decimal converted to Binary</option>
<option value="4">Vowels/Consonants</option>
<option value="5">Alphabet converted to Binary</option>
</select>
<input
class="sidebar-input"
type="text"
name="verticalSequence"
placeholder="Enter sequence..."
/>
<label class="sidebar-checkbox-label">Stroke Color</label>
<select
name="verticalStrokeSelect"
id="verticalStrokeSelect"
class="sidebar-select"
>
<option value="0" selected>Rainbow</option>
<option value="1">Random</option>
<option value="2">Custom</option>
</select>
<input
class="sidebar-input"
type="color"
name="verticalStrokeInput"
/>
<div>
<input
class="sidebar-checkbox"
type="checkbox"
name="verticalCheckbox"
id="verticalCheckbox"
checked
/>
<label class="sidebar-checkbox-label" for="verticalCheckbox">
Show sequence
</label>
</div>
<hr />
<label class="sidebar-checkbox-label">Background Color</label>
<input
class="sidebar-background-input"
type="color"
name="backgroundInput"
/>
</form>
<div class="sidebar-footer-push"></div>
</div>
<div class="sidebar-footer">
<p class="created-by">Created by Krastan Dimitrov</p>
<a href="https://www.github.com/KrastanD/hitomezashi">
<div class="sidebar-github-container">
<img
src="./assets/GitHub-Mark-Light-64px.png"
width="30px"
height="30px"
/>
<p class="source-code">Source Code</p>
</div>
</a>
</div>
</div>
<div class="canvas-container">
<span id="sidebarOpenButton" class="openBtn">⚙️</span>
<canvas id="myCanvas"
>Your browser does not support the canvas tag.
</canvas>
</div>
</div>
</body>
<script type="module" src="./build/index.js"></script>
</html>