-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
135 lines (94 loc) · 5.02 KB
/
index2.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<title>Totaro - Lab</title>
</head>
<body>
<header id="header">
<div class="navbar">
<div class="logo"><a href="https://totaro.github.io/">Totaro</a></div>
<ul class="links">
<li><a href="https://totaro.github.io/">Home</a></li>
<li><a href="https://totaro.github.io/lab/">The Lab</a></li>
<li><a href="https://totaro.github.io/motions/">Motions</a></li>
<li><a href="https://totaro.github.io/weather/">Weather</a></li>
<li><a href="https://totaro.github.io/dictionary/">Dictionary</a></li>
<li><a href="https://totaro.github.io/randomphotogallery/">Photo Gallery</a></li>
<li><a href="https://totaro.github.io/digitalclock/">Digital Clock</a></li>
<li><a href="https://totaro.github.io/reactbase/">Todo List</a></li>
</ul>
<!--<a href="#" class="action_btn">Contact Me!</a>-->
<div class="toggle_btn">
<i class="fa-solid fa-bars"></i>
</div>
</div>
<div class="dropdown_menu">
<li><a href="https://totaro.github.io/">Home</a></li>
<li><a href="https://totaro.github.io/lab/">The Lab</a></li>
<li><a href="https://totaro.github.io/motions/">Motions</a></li>
<li><a href="https://totaro.github.io/weather/">Weather</a></li>
<li><a href="https://totaro.github.io/dictionary/">Dictionary</a></li>
<li><a href="https://totaro.github.io/randomphotogallery/">Photo Gallery</a></li>
<li><a href="https://totaro.github.io/digitalclock/">Digital Clock</a></li>
<li><a href="https://totaro.github.io/reactbase/">Todo List</a></li>
<!--<li><a href="#" class="action_btn">Contact Me!</a></li>-->
</div>
</header>
<main class="main"><section id="hero"><div class="labheader"><h1 style="font-size: 3rem;">The Lab</h1><div>The Lab is the place where I play with new miscellaneous things with html/css/javascript. First one is Drag and Drop.</div></div>
</section></main>
<div class="wrapper">
<div class="container">
<h1 class="heading">
<div class="drop-row" style="margin-bottom: 1rem;">
<div>Drag and Drop</div>
<div><h6>(Mouse Events)</h6></div>
</div>
<div id="drag-and-drop">
<div class="draggable items">
<div class="draggable item move" draggable="true"><i class="fa-solid fa-grip-vertical"></i> Move Me!</div>
<div class="draggable item copy" draggable="true"><i class="fa-solid fa-grip-vertical"></i> Copy Me!</div>
</div>
<div class="droppable">
<div class="drop-row"><div><h3>Drop Here</h3></div> <div><button class="clear">Clear</button></div></div>
</div>
</div>
</div>
<div class="container">
<h1 class="heading">
<div class="drop-row" style="margin-bottom: 1rem;">
<div>Dom Node Modifications</div>
<div><h6></h6></div>
</div>
<div id="dom-node">
<div class="buttons">
<div style="padding:10px;">
<button id="btn-createnode" class="nodebutton">Create node</button>
<button id="btn-insertnode" class="nodebutton">Insert node before</button>
<button id="btn-insertafternode" class="nodebutton">Insert node after</button>
<button id="btn-replacenode" class="nodebutton">Replace node</button>
<input type="text" placeholder="Insert link" class="linkinput">
<input type="text" placeholder="Insert linktext" class="textinput">
<p class="templink hide"></p><p class="temptext hide"></p>
<button id="btn-newlink" class="nodebutton">New link node</button>
<button id="btn-fragment" class="nodebutton">New node fragment</button>
</div>
</div>
<div class="nodes">
<div class="domcontent post">
<p>Node 1</p>
<p class="target inserted">Target Node 2</p>
<p>Node 3</p>
</div>
</div>
</div>
</div>
<!-- wrapper -->
</div>
<script src="index.js"></script>
<script src="dom.js"></script>
</body>
</html>