-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Project 3</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="js/scripts.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div id="main-div">
<h2>Color Picker</h2>
<p>A RGB/Hex color converter with live preview. Just modify a value to see a new color.</p>
<br />
<div id="table-div">
<table>
<tr><td>Red</td><td>Green</td><td>Blue</td></tr>
<tr>
<td><input id="red" type="number" value="255" min="0" max="255" maxlength="3" onkeyup="rgbToHex()"></td>
<td><input id="green" type="number" value="255" min="0" max="255" maxlength="3" onkeyup="rgbToHex()"></td>
<td><input id="blue" type="number" value="255" min="0" max="255" maxlength="3" onkeyup="rgbToHex()"></td>
</tr>
<tr>
<td><div id="red-slider" class="slider"></div></td>
<td><div id="green-slider" class="slider"></div></td>
<td><div id="blue-slider" class="slider"></div></td>
</tr>
<tr>
<td></td>
<td>Hex Value</td>
</tr>
<tr>
<td></td>
<td>#<input id="hex" type="text" value="ffffff" maxlength="7" onkeyup="hexToRgb()"></td>
</tr>
</table>
</div>
</div>
</body>
</html>