-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (36 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Toggle Switch Demo</title>
<!-- css for the toggle -->
<!-- 2 screen settings : smartphone and desktop/ipad, anchored to top right corner -->
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<!-- html toggle starts -->
<label class="switch" id="end">
<input type="checkbox" id="theme-toggle">
<span class="slider"></span>
</label>
<!-- html toggle ends -->
<div class="main-div">
<div class="main-text" id="start">
Toggle This
</div>
</div>
<svg id="svg" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<defs>
<marker id="arrowhead" markerWidth="10" markerHeight="7" refX="10" refY="3.5" orient="auto">
<polygon id="arrowheadPolygon" points="0 0, 10 3.5, 0 7"/>
</marker>
</defs>
<path id="arrow" d="" stroke="black" stroke-width="3" fill="none" marker-end="url(#arrowhead)"
stroke-dasharray="5,5" stroke-linecap="round" />
</svg>
<!-- toggle script here -->
<script src="modeToggle.js"></script>
<script src="arrow.js"></script>
</body>
</html>