-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (105 loc) · 3.24 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>masks</title>
<link rel="stylesheet" href="./colors.css" />
<link rel="stylesheet" href="./style.css" />
<script defer src="./app.js"></script>
<script defer src="./colors.js"></script>
</head>
<body>
<div class="logos">
<div class="github">
<a href="https://github.com/JawaraGordon/css-masks" target="_blank" rel="noopener"><img src="./img/github-logo.png"></a>
</div>
</div>
<div class="mask"></div>
<div>
<form class="form" id="form">
<br />
<div class="dropdown-container">
<label class="label-text" for="shapes">Pick a Shape:</label>
<select class="input" id="shapes" onchange="addMask()" name="shapes">
<option value="circle">Circle</option>
<option value="square">Square</option>
<option value="triangle">Triangle</option>
<option value="diamond">Diamond</option>
<option value="pentagon">Pentagon</option>
<option value="hexagon">Hexagon</option>
<option value="octagon">Octagon</option>
<option value="star">Star</option>
</select>
</div>
<div class="shape-color-container">
<label class="label-text" for="color">Shape Color:</label>
<input
class="input"
id="color"
type="text"
onchange="colorPicker()"
name="color"
placeholder="hex code without #"
maxlength="6"
/>
</div>
<div class="bg-img-container">
<label class="label-text" for="url">Mask Image:</label>
<input
class="input"
id="url"
type="text"
onchange="backgroundImagePicker()"
name="url"
placeholder="enter image url"
/>
</div>
<div class="slider-container">
<form>
<fieldset>
<legend>BG Color</legend>
<label for="r">R</label>
<input
type="range"
min="0"
max="255"
id="r"
name="r"
step="1"
value="0"
/>
<output for="r" id="r-out">0</output> </fieldset><br /><br />
<fieldset>
<label for="g">G</label>
<input
type="range"
min="0"
max="255"
id="g"
name="g"
step="1"
value="0"
/><output for="g" id="g-out">0</output></fieldset><br /><br />
<fieldset>
<label for="b">B</label>
<input
type="range"
min="0"
max="255"
id="b"
name="b"
step="1"
value="0"
/><output for="b" id="b-out">0</output></fieldset><br /><br />
</fieldset>
<div class="hex-container">
<output id="hex">#000000</output>
</div>
</form>
</div>
</form>
</div>
</body>
</html>