-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (67 loc) · 2.47 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
<!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">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<nav class="nav">
<h1>Box-shadow generator</h1>
</nav>
<div class="container">
<div class="result">
<div id="element">
</div>
</div>
<div class="slider">
<div class="range-slider">
<label for="h-shadow">Horizontal shadow</label>
<input id="h-shadow" max="100" min="-100" value="0" type="range">
</div>
<div class="range-slider">
<label for="v-shadow">Vertical shadow</label>
<input id="v-shadow" max="100" min="-100" value="0" type="range">
</div>
<div class="range-slider">
<label for="b-radius">Blur Radius</label>
<input id="b-radius" max="100" min="0" value="0" type="range">
</div>
<div class="range-slider">
<label for="s-radius">Spread Radius</label>
<input id="s-radius" type="range" max="50" min="-50" value="0">
</div>
<div class="range-slider">
<label for="s-color">Shadow Color</label>
<input id="s-color" type="color">
</div>
<div class="range-slider">
<label for="c-opacity">Color Opacity</label>
<input max="1" min="0" step="0.1" id="c-opacity" type="range">
</div>
<div class="range-slider">
<label for="bg-color">Box bg-color</label>
<input id="bg-color" type="color">
</div>
<div class="range-slider">
<label for="in-shadow">Inset shadow</label>
<input id="in-shadow" type="checkbox">
</div>
<!-- --------textarea and copy-btn------------- -->
<div class="wrapper">
<div class="code-wrapper">
<textarea id="code" rows="2" type="text"></textarea>
<button onclick="copycode()" >Copy</button>
</div>
<div class="code-wrapper">
<textarea id="code2" rows="2" type="text"></textarea>
<button onclick="copycode2()">Copy</button>
</div>
</div>
</div>
</div>
</body>
<script defer src="index.js"></script>
</html>