-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (110 loc) · 4.89 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>replit</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="top-bar">
<button>Create HTML</button>
<div class="bgcolor-box">
<span>BG color:</span>
<input type="color" id="color-pick"value="#262626">
</div>
<button>set font</button>
<button id="remove-elements">Remove all</button>
<div class="add-box">
<label for="add-element-select">Add: </label>
<select name="element-add" id="add-element-select">
<optgroup label="Heading elements">
<option value="add-h1">h1 </option>
<option value="add-h2">h2</option>
<option value="add-h3">h3</option>
<option value="add-h4">h4</option>
<option value="add-h5">h5</option>
<option value="add-h6">h6</option>
</optgroup>
<optgroup label="Paragraphs">
<option value="add-p">p</option>
</optgroup>
<optgroup label="Italic text">
<option value="add-i">i</option>
</optgroup>
<optgroup label="Important bold text">
<option value="add-strong">strong</option>
</optgroup>
<optgroup label="Bold text">
<option value="add-b">b</option>
</optgroup>
<optgroup label="Line break elements">
<option value="add-br">br</option>
</optgroup>
<optgroup label="Anchor elements">
<option value="add-a">a</option>
</optgroup>
<optgroup label="Buttons">
<option value="add-btn">button</option>
</optgroup>
</select>
</div>
<button id="test-add">Add</button>
<p id="test"></p>
<input type="text" id="ele-text" style="display: none;" placeholder="HTML/text inside element">
<button id="ele-add-btn" style="display: none;">Add</button>
</div>
<div class="page-content">
<p>Hello World</p>
a
a
</div>
<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">
<div id="btn-box">
<p style="font-size: 24px; margin-bottom: 10px;">Confirm Action</p>
<p>Are you sure you want to delete all elements?</p>
<p style="font-weight: bold;">This cannot be undone!</p>
<div style="flex-direction: row; margin-top: 10px;" id="btn-row">
<button id="del-ele">Yes</button>
<button id="popup-no">No</button>
</div>
<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>
</div>
</div>
<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">
<div id="btn-box1">
<p style="font-size: 24px; margin-bottom: 10px;">Link Opening</p>
<p>Do you want to open this link in new tab or replace the current one?</p>
<div style="flex-direction: row; margin-top: 10px;" id="btn-row">
<button id="new-tab">Open in New Tab</button>
<button id="same-tab">Replace Current</button>
</div>
</div>
</div>
<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">
<div id="GPE-scroll-container">
<div id="class-box">
<p style="font-size: 24px; margin-bottom: 10px; margin-left: 10px;">Add Classes to current Element</p>
<p>Classes are used for defining a group of elements</p>
<div id="c-wrapper">
<input type="text" placeholder="Enter class name (class name cannot have spaces)" class="c-name" style="padding: 6px 12px;">
</div>
<div style="flex-direction: row; margin-top: 10px;" id="btn-row-c">
<button id="add-c">Add Another Class</button>
<button id="done">Done</button>
</div>
<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">
<div>X</div>
</button>
</div>
</div>
</div>
<script src="script.js"></script>
<!--
This script places a badge on your repl's full-browser view back to your repl's cover
page. Try various colors for the theme: dark, light, red, orange, yellow, lime, green,
teal, blue, blurple, magenta, pink!
-->
<script src="https://replit.com/public/js/replit-badge-v2.js" theme="dark" position="bottom-right"></script>
</body>
</html>