forked from gyanl/ChromaGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorGradient.html
60 lines (56 loc) · 2.55 KB
/
colorGradient.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
<!--
@Author: gyanl, ananayarora
@Date: 2017-10-01T09:54:38+05:30
@Last modified by: eclecticexistential
@Last modified time: 2017-10-01T10:27:24+05:30
-->
<!DOCTYPE html>
<html>
<head>
<title>A Colour A Day</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://cdn.jsdelivr.net/clipboard.js/1.5.10/clipboard.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/colorSwitcher.js"></script>
</head>
<body onload="startGradient()">
<div class="box">
<center>
<div class="header">
ChromaGen
</div>
<div class="subheader">
A random color generator.
</div>
<p></p>
<form>
<input type="radio" name="colorformat" id="hex" value="hex" onClick="changeColorFormat()" checked><div class="option">HEX </div>
<input type="radio" name="colorformat" id="hsl" value="hsl" onClick="changeColorFormat()"><div class="option">HSL </div>
<input type="radio" name="colorformat" id="rgb" value="rgb" onClick="changeColorFormat()"><div class="option">RGB </div>
</form>
<br />
<button class="btn btn-left" id="gradient" onclick="changeColour(-1,true)">Gradient</button><button class="btn btn-right" id="rotate" onclick="rotate()"><span id='direction'>↓</span></button>
<br /><br />
<button class="btn" id="clipboard" data-clipboard-text="1" onclick="toast(this)">Copy</button>
<br /><br />
<button class="btn" id="copyall" data-clipboard-text="1" onclick="copyAll(this)">Copy all</button>
<br /><br />
<div class="toasty" id="toast">
Welcome to ChromaGen!
</div>
<br />
<!-- added area to append textarea for clipboard data -->
<div class="results">
</div>
<button id="c0" class="circle" onclick="changeColour(0)"></button>
<button id="c1" class="circle" onclick="changeColour(1)"></button>
<button id="c2" class="circle" onclick="changeColour(2)"></button>
<button id="c3" class="circle" onclick="changeColour(3)"></button>
<button id="c4" class="circle" onclick="changeColour(4)"></button>
<button id="c5" class="circle" onclick="changeColour(5)"></button>
</center>
</div>
</body>
</html>