-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (168 loc) · 9.12 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type"content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta property="og:title" content="✿ field of flowers ✿" />
<meta property="og:url" content="https://shelby.cool/field-of-flowers" />
<meta property="og:image" content="./client/img/preview.png" />
<meta name="theme-color" content="rgb(0, 29, 10)">
<link rel="icon" type="image" href="./client/img/favicon.png">
<link href="./client/css/main.css" rel="stylesheet" />
<link href="./client/css/sort-dialog.css" rel="stylesheet" />
<link href="./client/css/mobile.css" rel="stylesheet" />
<script src="./client/d3/d3.min.js"></script>
<script type="module" src="./client/main.js"></script>
<title>✿ field of flowers ✿</title>
</head>
<body>
<header>
<button type="button" class="toggle-sort-dialog open-sort-dialog" id="open-sort-dialog">
✿
</button>
<p class="sr-only">A sortable field of flowers.</p>
</header>
<main>
<dialog class="sort-dialog" id="sort-dialog" aria-labelledby="sort-dialog-label">
<button type="button" class="toggle-sort-dialog close-sort-dialog" id="close-sort-dialog">
●
</button>
<p id="sort-dialog-label" class="sr-only">Select sort attributes and layout options.</p>
<form class="flex-column">
<fieldset class="flex-row m-flex-column sorting-options">
<legend class="sr-only">
Ordered sort selections
</legend>
<div class="flex-row">
<div class="input-container select-container">
<select id="sort-1">
<option disabled value="" selected>select sort</option>
<option value="color">color</option>
<option value="petal_num">number of petals</option>
<option value="leaf_num">number of leaves</option>
<option value="petal_r">petal length</option>
<option value="stem_size">stem height</option>
</select>
</div>
<label class="toggle-sort-direction">
<input type="checkbox" class="toggle-sort-direction-checkbox" />
<span></span>
</label>
</div>
<div class="flex-row">
<div class="input-container select-container">
<select id="sort-2">
<option disabled value="" selected>select sort</option>
<option value="color">color</option>
<option value="petal_num">number of petals</option>
<option value="leaf_num">number of leaves</option>
<option value="petal_r">petal length</option>
<option value="stem_size">stem height</option>
</select>
</div>
<label class="toggle-sort-direction">
<input type="checkbox" class="toggle-sort-direction-checkbox" />
<span></span>
</label>
</div>
<div class="flex-row">
<div class="input-container select-container">
<select id="sort-3">
<option disabled value="" selected>select sort</option>
<option value="color">color</option>
<option value="petal_num">number of petals</option>
<option value="leaf_num">number of leaves</option>
<option value="petal_r">petal length</option>
<option value="stem_size">stem height</option>
</select>
</div>
<label class="toggle-sort-direction">
<input type="checkbox" class="toggle-sort-direction-checkbox" />
<span></span>
</label>
</div>
</fieldset>
<fieldset class="flex-row m-flex-column layout-options">
<legend class="sr-only">
Layout options
</legend>
<div class="input-container">
<input type="range" min="5" max="100" value="50" step="5" id="zoom" />
<label class="sr-only" for="zoom">
Flower scale input
</label>
</div>
<div class="input-container flex-row space-between">
<label>
<input name="layout" type="radio" value="hilbert" id="is-hilbert" />
hilbert
</label>
<label>
<input name="layout" type="radio" value="linear" checked id="is-linear"/>
linear
</label>
</div>
<div class="input-container">
<label>
<input type="checkbox" id="toggle-sort-path" />
view sort path
</label>
</div>
</fieldset>
</form>
</dialog>
<div id="field">
<svg>
<defs>
<radialGradient id="gradient-def-0" cx="70%">
<stop stop-color="black" offset="0%" />
<stop stop-color="darkred" offset="30%" />
<stop stop-color="orangered" offset="100%"/>
</radialGradient>
<radialGradient id="gradient-def-1" cx="70%">
<stop stop-color="firebrick" offset="0%"/>
<stop stop-color="darkorchid" offset="100%"/>
</radialGradient>
<radialGradient id="gradient-def-2" cx="80%">
<stop stop-color="plum" offset="20%"/>
<stop stop-color="mediumslateblue" offset="100%"/>
</radialGradient>
<radialGradient id="gradient-def-3" cx="90%">
<stop stop-color="darkorange" offset="10%"/>
<stop stop-color="brown" offset="20%"/>
<stop stop-color="gold" offset="100%"/>
</radialGradient>
<radialGradient id="gradient-def-4" cx="70%">
<stop stop-color="hotpink" offset="0%" />
<stop stop-color="pink" offset="80%"/>
</radialGradient>
<linearGradient id="gradient-def-5">
<stop stop-color="#2500ff" offset="0%"/>
<stop stop-color="midnightblue" offset="80%"/>
<stop stop-color="bisque" offset="100%"/>
</linearGradient>
<linearGradient id="gradient-def-6">
<stop stop-color="white" offset="50%"/>
<stop stop-color="darkorange" offset="100%"/>
</linearGradient>
</defs>
<g id="instances" class="hidden">
<path id="leaf" class="leaf" d="M0 16 C0 16 0 0 16 0 C16 0 16 16 0 16"></path>
<path id="leaf-flip" class="leaf" d="M16 16 C16 16 16 0 0 0 C0 0 0 16 16 16"></path>
</g>
</svg>
</div>
</main>
<footer>
<h1>
✿ field of flowers ✿
</h1>
<p>
<a href="https://github.com/shelbywilson/field-of-flowers/blob/main/README.md" target="_blank">✿ more info ✿</a>
</p>
</footer>
</body>
</html>