-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.html
69 lines (66 loc) · 1.76 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
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.75" />
<title>Fork Colors</title>
<link rel="shortcut icon" href="img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
</head>
<!--<body onload="loadColors()">-->
<body>
<header>
<h1>Fork Colors</h1>
</header>
<main>
<section id="colorCircles">
<p id="colorRecords">Loading colors ...</p>
</section>
<section id="colorPicker">
<p>
<span id="colorPreview"></span>
rgb
<input
type="text"
id="r"
name="r"
value="255"
oninput="handleColorChange(this)"
/>
<input
type="text"
id="g"
name="g"
value="255"
oninput="handleColorChange(this)"
/>
<input
type="text"
id="b"
name="b"
value="255"
oninput="handleColorChange(this)"
/>
<button onclick="handleRandomColor()">Random</button>
</p>
<p><code id="colorPreviewJson"></code></p>
</section>
</main>
<footer>
<p>
<a href="https://github.com/tigion/htw-playground-fork-colors"
><img
src="https://img.shields.io/static/v1??style=flat&logo=github&label=GitHub&message=htw-playground-fork-colors&color=green[]"
alt=""
/></a>
</p>
</footer>
<script src="js/main.js"></script>
<script>
window.addEventListener("load", function () {
updateColorPreview();
loadColors();
});
</script>
</body>
</html>