-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (37 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Beautiful Website Colours</title>
<link rel='stylesheet' href='normalize.css'>
<link rel='stylesheet' href='style.css'>
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans|Josefin+Slab:400,600" rel="stylesheet">
<link href="rainbow.ico" rel="icon" type="image/x-icon" />
</head>
<body>
<div class='toolbar' id='toolbar'>
<h1>Hsla Colour finder</h1>
<div id='clickedDisplay'>
</div>
<span id='colorInfo'> </span>
<form id='userValues' onSubmit="event.preventDefault(); fillGrid(hue.value, opacity.value)" preventDefault>
<input id='hueValue' type="number" name="hue" min="0" max="360" placeholder="170">Hue (0-360)</input>
<input id='opacityValue' type="number" name="opacity" step="0.01" max="1" placeholder="1">Opacity (0-1)</input>
</form>
</div>
<table id='swatchTable'>
<tr id='row-1'></tr>
<tr id='row-2'></tr>
<tr id='row-3'></tr>
<tr id='row-4'></tr>
<tr id='row-5'></tr>
<tr id='row-6'></tr>
<tr id='row-7'></tr>
<tr id='row-8'></tr>
<tr id='row-9'></tr>
</table>
<p class='signature'>Enter hue and opacity to generate a new swatch. Click on a colour to get it's hsla value.</p>
<p class='signature'>© William Savage</p>
<script type="text/javascript" src="main.js"></script>
</body>
</html>