-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (31 loc) · 909 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>Events exercise</title>
</head>
<body>
<div class="container">
<h1>Crazy Colors</h1>
<div class="flex">
<div class="pallete" id="pallete">
paint me
</div>
<div class="control">
<button id="btn">Choose random color</button>
OR
<label for="color" class="color-input" >
type hexa color
</label>
<input type="text" id="color" onchange="inputColor()"/>
</div>
</div>
</div>
<!-- colors.js should be above index.js so you can access the variable colors inside index.js -->
<script src="./js/colors.js"></script>
<script src="./js/index.js"></script>
</body>
</html>