-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
115 lines (107 loc) · 3.73 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
<!doctype html>
<html>
<title>RandoRef</title>
<head>
<base href="/">
<link href = "https://raw.githubusercontent.com/samvanemelen/randoref/master/styles.css">
</head>
<body>
<button class = "accordion">advanced search functions</button>
<div class = "panel">
<p>Search for: <input id = "term" type="text" placeholder="random" style="text-align:center;" onchange= "checkhits()"/></p>
<table class = "menu">
<tr>
<th>
<p>Image Quality: <select id="quality">
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select></p>
<p>Image Type: <select id="type" onchange= "checkhits()">
<option value="all">All</option>
<option value="photo">Photo</option>
<option value="illustration">Illustration</option>
<option value="vector">Vector</option>
</select></p>
</th>
<th>
<p>Image Orientation: <select id="orientation" onchange = "checkhits()">
<option value="all">All</option>
<option value="horizontal">Horizontal</option>
<option value="vertical">Vertical</option>
</select></p>
<p>Dominant Color: <select id="color" onchange= "checkhits()">
<option value="all">All</option>
<option value="grayscale">Grayscale</option>
<option value="transparent">Transparent</option>
<option value="red">Red</option>
<option value="orange">Orange</option>
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="turquoise">Turquoise</option>
<option value="blue">Blue</option>
<option value="lilac">Lilac</option>
<option value="pink">Pink</option>
<option value="white">White</option>
<option value="gray">Gray</option>
<option value="black">Black</option>
<option value="brown">Brown</option>
</select></p>
</th>
</tr>
</table>
</div>
<p></p>
<button class = "accordion">Drawing aids</button>
<div class = "panel">
<table class = "menu">
<tr>
<td>
<div class = "inline">
<p>Display grid:  </p>
<label class="switch">
<input type="checkbox" id = "checked" onchange="updategrid()">
<span class="slider"></span>
</label>
</div>
</td>
<td>
<p>Grid segments: <input id = "grid_segments" class = "numberbox" type="number" placeholder = "3", step="1" onchange = "updategrid()" min="2"></p>
</td>
<td>
<p>Grid thickness: <input id = "grid_thickness" class = "numberbox" type="number" placeholder = "1", step="1" onchange = "updategrid()" min="1"></p>
</td>
</tr>
<tr>
<td>Grid color: <input id = "color_picker" type="color", onchange = "updategrid()"></td>
<td><button id="button" onclick="updategrid()">Update Grid</button></td>
</tr>
</table>
</div>
<p>Adjust size:</p>
<p><input type="range" min="1" max="100" value="80" id="sizeSlider"></p>
<p><button id="button" onclick="update()">Show random image</button><div id = hitscounter></div></p>
<div id = "container">
<img id = 'image', src = ''/>
<table id = "grid">
<tr>
<td class = "bordered"></td>
<td class = "bordered"></td>
<td class = "bordered"></td>
</tr>
<tr>
<td class = "bordered"></td>
<td class = "bordered"></td>
<td class = "bordered"></td>
</tr>
<tr>
<td class = "bordered"></td>
<td class = "bordered"></td>
<td class = "bordered"></td>
</tr>
</table>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://raw.githubusercontent.com/samvanemelen/randoref/master/script.js"></script>
</html>