-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgradient.html
73 lines (73 loc) · 2.66 KB
/
gradient.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Gradient Generator</title>
<link href="./style.css" rel="stylesheet"></link>
<script src="./colourgen.js" defer></script>
</head>
<body>
<section id="content">
<section id="header">
<h1>Gradient Generator</h1>
<p>Enter two rgb or hex colour values and generate a gradient between them!</p>
<p>Resolution defines the step between generated values; a lower number produces more values, while a higher number produces less.</p>
<p>More or less values will also be able to be generated depending on how close together your initial and final values are.</p>
</section>
<section id="form">
<form action="javascript:void(0);">
<div class="grid-parent-form">
<div class="column1">
<label for="valueOne" class="form-label">Initial Colour Value:</label>
<input type="text" id="valueOne" name="valueOne" tabindex="1"></input>
<label for="valueTwo" class="form-label">Final Colour Value:</label>
<input type="text" id="valueTwo" name="valueTwo" tabindex="2"></input>
</div>
<div class="column2">
<label for="inputType" class="form-label">Input Type</label>
<select id="inputType" name="inputType" tabindex="3">
<option value="hex" id="hex">Hexadecimal #xyxyxy</option>
<option value="rgb" id="rgb">Decimal [xyz,xyz,xyz]</option>
</select>
<label for="resolution" class="form-label">Resolution:</label>
<input type="number" id="resolution" min="1" max="20" value="1" tabindex="4"></input>
</div>
<div id="error-display">
<p id="error-text"></p>
</div>
<div class="button">
<button id="submit" name="submit" tabindex="5">Make my gradient!</button>
</div>
</div>
</form>
</section>
<section id="results" class="hideResults">
<div class="grid-parent-results">
<div class="column1">
<section id="codes">
<p id="resultTitle"></p>
<button id="show/hide" tabindex="6">Show</button>
<p id="resultCodes"></p>
</section>
</div>
<div class="column2">
<label for="initial"></label>
<div id="initial-housing"></div>
</div>
<div class="column3">
<label for="final"></label>
<div id="final-housing"></div>
</div>
<div id="grid-gradient">
<section id="gradient-housing">
</section>
</div>
</div>
</section>
</section>
<section id="footer">
<hr>
<p>©2020 Athena Abbott</p>
</section>
</body>
</html>