-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (63 loc) · 1.54 KB
/
index.html
File metadata and controls
63 lines (63 loc) · 1.54 KB
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
<html>
<head>
</head>
<body>
<style>
label {
font-weight: bold;
}
.color {
width: 50px;
height: 50px;
background-color: #ddd;
margin: 5px;
}
.highlight {
border: solid 5px black;
}
.red {
background-color: red;
}
.yellow {
background-color: yellow;
}
.blue {
background-color: blue;
}
.green {
background-color: green;
}
.orange {
background-color: orange;
}
.purple {
background-color: purple;
}
.brown {
background-color: brown;
}
</style>
<div>
<h1>Select colors to blend</h1>
<label>Color 1</label>
<div>Choose one</div>
<div class="colors">
<div class="color red" data-choice="1" data-color="red"></div>
<div class="color yellow" data-choice="1" data-color="yellow"></div>
<div class="color blue" data-choice="1" data-color="blue"></div>
</div>
<label>Color 2</label>
<div>Choose one</div>
<div class="colors">
<div class="color red" data-choice-number="2" data-color="red"></div>
<div class="color yellow" data-choice-number="2" data-color="yellow"></div>
<div class="color blue" data-choice-number="2" data-color="blue"></div>
</div>
</div>
<div>
<h1>Blended color result</h1>
<div id="result" class="color"></div>
</div>
<script type="text/javascript" src="colors.js"></script>
</body>
</html>