|
16 | 16 | <input type="color" id="color-pick"value="#262626"> |
17 | 17 | </div> |
18 | 18 | <button>set font</button> |
19 | | - <button>Remove all</button> |
| 19 | + <button id="remove-elements">Remove all</button> |
20 | 20 | <div class="add-box"> |
21 | 21 | <label for="add-element-select">Add: </label> |
22 | 22 | <select name="element-add" id="add-element-select"> |
|
61 | 61 | a |
62 | 62 | a |
63 | 63 | </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 | + |
64 | 109 | <script src="script.js"></script> |
65 | 110 |
|
66 | 111 | <!-- |
|
0 commit comments