Skip to content

Commit 929490a

Browse files
Classes and modals added!
1 parent 838f56a commit 929490a

3 files changed

Lines changed: 572 additions & 5 deletions

File tree

index.html

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<input type="color" id="color-pick"value="#262626">
1717
</div>
1818
<button>set font</button>
19-
<button>Remove all</button>
19+
<button id="remove-elements">Remove all</button>
2020
<div class="add-box">
2121
<label for="add-element-select">Add: </label>
2222
<select name="element-add" id="add-element-select">
@@ -61,6 +61,51 @@
6161
a
6262
a
6363
</div>
64+
<div style="position: fixed; top: 0; left: 0; bottom: 0; height: 4000px; width: 100vw; background-color: rgba(255, 0, 0, 1); opacity: 0.5; display: none;" id="alert">
65+
<div id="btn-box">
66+
<p style="font-size: 24px; margin-bottom: 10px;">Confirm Action</p>
67+
<p>Are you sure you want to delete all elements?</p>
68+
<p style="font-weight: bold;">This cannot be undone!</p>
69+
<div style="flex-direction: row; margin-top: 10px;" id="btn-row">
70+
<button id="del-ele">Yes</button>
71+
<button id="popup-no">No</button>
72+
</div>
73+
<button style="position: absolute; left: 265px; top: 5px; bottom: 0px; right: 0px; width: 30px; height: 30px; display: flex; justify-content: space-around; align-items: center; user-select: none;" id="popup-close">X</button>
74+
</div>
75+
76+
</div>
77+
78+
<div style="position: fixed; top: 0; left: 0; bottom: 0; height: 4000px; right: 0; width: 100vw; background-color: rgba(255, 0, 0, 1); opacity: 0.5; display: none; width: 100%;"id="link-alert">
79+
<div id="btn-box1">
80+
<p style="font-size: 24px; margin-bottom: 10px;">Link Opening</p>
81+
<p>Do you want to open this link in new tab or replace the current one?</p>
82+
<div style="flex-direction: row; margin-top: 10px;" id="btn-row">
83+
<button id="new-tab">Open in New Tab</button>
84+
<button id="same-tab">Replace Current</button>
85+
</div>
86+
</div>
87+
88+
</div>
89+
90+
<div style="position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 100vw; background-color: rgba(255, 0, 0, 0.5); opacity: 1; display: none; display: block; overflow: auto;"id="class-popup">
91+
<div id="class-box">
92+
<p style="font-size: 24px; margin-bottom: 10px; margin-left: 10px;">Add Classes to current Element</p>
93+
<p>Classes are used for defining a group of elements</p>
94+
<div id="c-wrapper">
95+
<input type="text" placeholder="Enter class name (class name cannot have spaces)" class="c-name" style="padding: 6px 12px;">
96+
</div>
97+
<div style="flex-direction: row; margin-top: 10px;" id="btn-row-c">
98+
<button id="add-c">Add Another Class</button>
99+
<button id="done">Done</button>
100+
</div>
101+
<button style="position: absolute; left: 265px; top: 5px; bottom: 0px; right: 0px; width: 30px; height: 30px; display: flex; justify-content: space-around; align-items: center; user-select: none;" id="c-close">
102+
<div>X</div>
103+
</button>
104+
</div>
105+
106+
</div>
107+
108+
64109
<script src="script.js"></script>
65110

66111
<!--

0 commit comments

Comments
 (0)