-
Notifications
You must be signed in to change notification settings - Fork 1
/
hopa.html
86 lines (61 loc) · 2.72 KB
/
hopa.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="hopa.css">
</head>
<body>
<!-- The only elements defined statically are the modals: add-site-modal and add-tab-modal. -->
<!-- The same modals are called for edit functions. -->
<div id="add-site-modal" class="modal">
<form class="modal-content modal-animate" action="" method="post">
<!-- type="button" necessary, otherwise with "enter" it closes the form -->
<button class="main-button modal-close" type="button">
×
</button>
<input class="modal-input" name="site-name" type="text" placeholder="site name"
required autocomplete="off"
tabindex="1">
<input class="modal-input" name="site-url" type="url" placeholder="site url"
required autocomplete="off"
tabindex="2">
<div class="modal-radio-container"
tabindex="3">
<input class="modal-radio" name="site-icon-choice" type="radio"
id="link" value="link"
required
tabindex="4">
<label class="main-button main-tile modal-radio-label" for="link">
</label>
<input class="modal-radio" name="site-icon-choice" type="radio"
id="init" value="init"
required
tabindex="4">
<label class="main-button main-tile modal-radio-label" for="init">
</label>
</div>
<button class="main-button" name="site-ok" type="submit"
tabindex="5">
OK
</button>
</form>
</div>
<div id="add-tab-modal" class="modal">
<form class="modal-content modal-animate" action="" method="post">
<!-- type="button" necessary, otherwise with "enter" it closes the form -->
<button class="main-button modal-close" type="button">
×
</button>
<input class="modal-input" name="tab-name" type="text" placeholder="tab name"
required autocomplete="off"
tabindex="1">
<button class="main-button" name="tab-ok" type="submit"
tabindex="2">
OK
</button>
</form>
</div>
<script src="hopa.js"></script>
</body>
</html>