-
Notifications
You must be signed in to change notification settings - Fork 1
/
36-forms.html
279 lines (247 loc) Β· 7.52 KB
/
36-forms.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOM</title>
<style>
* {
box-sizing: border-box;
}
body {
padding: 30px;
background-color: rgb(130, 195, 132);
display: flex;
flex-direction: column;
align-items: center;
}
div {
margin-bottom: 100px;
}
#box {
width: 50px;
height: 50px;
border: 2px dashed red;
margin: 10px;
}
.outerCircle,
.innerCircle {
margin: 0;
border-radius: 50%;
}
.outerCircle {
width: 40px;
height: 40px;
border: 1px solid red;
display: flex;
align-items: center;
justify-content: center;
position: static;
}
.innerCircle {
width: 30px;
height: 30px;
background-color: red;
}
#circleButton {
margin-top: 20px;
}
#place {
width: 100px;
height: 200px;
background-color: green;
}
.checkboxList {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-bottom: 15px;
}
.checkboxWrapper {
display: flex;
align-items: center;
margin: 10px 0;
}
.taskTitle {
margin-top: 30px;
font-weight: 700;
font-size: 22px;
}
.grid {
display: flex;
width: 460px;
height: 460px;
border: 2px solid white;
flex-wrap: wrap;
padding: 0;
margin: 0;
}
.gridItem {
width: calc(100% / 3);
height: calc(100% / 3);
background-color: red;
border: 1px dashed black;
border-radius: 50%;
margin: 0;
padding: 0;
list-style: none;
}
</style>
</head>
<body>
<!-- ΠΠΠΠΠ§Π 1 -->
<div>
<p class="taskTitle">Task 1</p>
<button id="alertButton">SHOW ME</button>
<input id="alertInput" type="text" />
</div>
<!-- ΠΠΠΠΠ§Π 2 -->
<div>
<p class="taskTitle">Task 2</p>
<button id="swapButton">SWAP ME</button>
<input id="leftSwapInput" type="text" value="???" />
<input id="rightSwapInput" type="text" value="!!!" />
</div>
<!-- ΠΠΠΠΠ§Π 3 -->
<div>
<p class="taskTitle">Task 3</p>
<input id="passwordInput" type="text">
<button id="passwordButton">Hide</button>
</div>
<!-- ΠΠΠΠΠ§Π 4 -->
<div>
<p class="taskTitle">Task 4</p>
<div id="box"></div>
<button id="decrease">Decrease</button>
<button id="increase">Increase</button>
</div>
<!-- ΠΠΠΠΠ§Π 5 -->
<div>
<p class="taskTitle">Task 5</p>
<div id="place"></div>
</div>
<!-- ΠΠΠΠΠ§Π 6 -->
<div>
<p class="taskTitle">Task 6</p>
<ul class="list">
<li class="listItem">1</li>
<li class="listItem">4</li>
<li class="listItem">8</li>
<li class="listItem">16</li>
<li class="listItem">20</li>
<li class="listItem">30</li>
</ul>
<button id="double">Double</button>
</div>
<!-- ΠΠΠΠΠ§Π 7 -->
<div>
<p class="taskTitle">Task 7</p>
<div class="outerCircle">
<div class="innerCircle"></div>
</div>
</div>
<!-- ΠΠΠΠΠ§Π 8 -->
<div>
<p class="taskTitle">Task 8</p>
<div class="statList">
<button class="calcButton" data-number=5>Button #1</button>
<button class="calcButton" data-number=2>Button #2</button>
<button class="calcButton" data-number=10>Button #3</button>
<button class="calcButton" data-number=50>Button #4</button>
<button class="calcButton" data-number=0>Button #5</button>
<button class="calcButton" data-number=20>Button #6</button>
</div>
<button id="resultButton">Show result</button>
<div id="resultSection"></div>
</div>
<script src="./index.js" type="module"></script>
</body>
</html>
<!-- ΠΠΠΠΠ§Π 9 -->
<div>
<p class="taskTitle">Task 9</p>
<form class="checkboxForm">
<div class="checkboxList">
<div class="checkboxWrapper">
<label for="checkbox1">Item 1</label>
<input type="checkbox" id="checkbox1" />
</div>
<div class="checkboxWrapper">
<label for="checkbox2">Item 2</label>
<input type="checkbox" id="checkbox2" />
</div>
<div class="checkboxWrapper">
<label for="checkbox3">Item 3</label>
<input type="checkbox" id="checkbox3" />
</div>
<div class="checkboxWrapper">
<label for="checkbox4">Item 4</label>
<input type="checkbox" id="checkbox4" />
</div>
<div class="checkboxWrapper">
<label for="checkbox5">Item 5</label>
<input type="checkbox" id="checkbox5" />
</div>
<div class="checkboxWrapper">
<label for="checkbox6">Item 6</label>
<input type="checkbox" id="checkbox6" />
</div>
<div class="checkboxWrapper">
<label for="checkbox7">Item 7</label>
<input type="checkbox" id="checkbox7" />
</div>
</div>
<button type="submit">Filter</button>
</form>
</div>
<!-- ΠΠΠΠΠ§Π 10 -->
<p class="taskTitle">Task 10</p>
<ul class="people">
<li class="person">Harry Potter</li>
<li class="person">Ronald Weasley</li>
<li class="person">Hermione Granger</li>
<li class="person">Draco Malfoy</li>
<li class="person">Neville Longbottom</li>
</ul>
<button id="sortByNameButton" type="button">Sort by name</button>
<button id="sortByLastNameButton" type="button">Sort by lastname</button>
<!-- ΠΠΠΠΠ§Π 11 -->
<p class="taskTitle">Task 11</p>
<input class="contactsFilter" type="text" />
<ul class="contacts">
<li class="contact">Gandalf</li>
<li class="contact">Aragorn</li>
<li class="contact">Frodo Beggins</li>
<li class="contact">Samwise "Sam" Gamgee</li>
<li class="contact">Peregrin "Pippin" Took</li>
<li class="contact">Meriadoc "Merry" Brandybuck</li>
<li class="contact">Legolas</li>
<li class="contact">Gimli</li>
<li class="contact">Boromir</li>
</ul>
<!-- ΠΠΠΠΠ§Π 12 -->
<p class="taskTitle">Task 12</p>
<p class="text">
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
</p>
<input id="from" type="text"/>
<input id="to" type="text"/>
<button id="replaceButton">Replace</button>
<!-- ΠΠΠΠΠ§Π 13 -->
<p class="taskTitle">Task 13</p>
<ul class="grid">
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
<li class="gridItem"></li>
</ul>
<script src="./app/36-forms.js" type="module"></script>
</body>
</html>