-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
191 lines (174 loc) · 8.72 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audiopolis</title>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="form-window">
<form id="form" action="https://form2mail.iolab.sk/form2mail.php" method="post" enctype="multipart/form-data" novalidate>
<input type="hidden" name="apikey" value="cb70c19a3d2d9ba16b328d585d583b86">
<input type="hidden" name="from" value="[email protected]">
<input type="hidden" name="sender" value="Adam Planko">
<input type="hidden" name="to" value="[email protected]">
<input type="hidden" name="subject" value="Adam Planko - Formular WEBTE">
<input type="hidden" name="redirectOk" value="https://webte1.fei.stuba.sk/~xplanko/webte1_z2/index.html">
<input type="hidden" name="redirectFalse" value="https://webte1.fei.stuba.sk/~xplanko/webte1_z2/index.html">
<div class="cols">
<div class="form-collumn">
<div class="form-element">
<label for="first-name">Meno <a id="f-name-len">0/20</a></label>
<input type="text" maxlength="20" id="first-name" name="first-name">
<div class="error-text"></div>
</div>
<div class="form-element">
<label for="last-name">Priezvisko <a id="l-name-len">0/20</a></label>
<input type="text" maxlength="20" id="last-name" name="last-name">
<div class="error-text"></div>
</div>
<div class="form-element">
<label for="date-of-birth">Dátum narodenia</label>
<input type="date" id="date-of-birth" name="date-of-birth">
<div class="error-text"></div>
</div>
<div class="form-element">
<label for="age">Vek</label>
<input type="number" min="0" max="99" id="age" name="age" onkeypress="return onlyNumberKey(event)">
<div class="error-text"></div>
</div>
<div class="form-element">
<label for="email">E-mail adresa</label>
<input type="email" id="email" name="email" placeholder="[email protected]">
<div class="error-text"></div>
</div>
<div class="form-element">
<label for="local-number-input">Telefónne číslo</label>
<div id="tel">
<select name="tel-country-code" id="sel-country-code">
<option value="+421">🇸🇰 +421</option>
<option value="+420">🇨🇿 +420</option>
<option value="+36">🇭🇺 +36</option>
</select>
<input type="text" maxlength="15" id="local-number-input" name="tel-local-number" onkeypress="return onlyNumberKey(event)">
</div>
<div class="error-text"></div>
</div>
<div class="form-element">
<label>Pohlavie</label>
<div class="radio-buttons" id="gender-selector">
<div class="radio-item">
<input type="radio" name="gender" id="male" value="male">
<label for="male">Muž</label>
</div>
<div class="radio-item">
<input type="radio" name="gender" id="female" value="female">
<label for="female">Žena</label>
</div>
<div class="radio-item">
<input type="radio" name="gender" id="other-gender" value="other">
<label for="other-gender">Iné</label>
</div>
</div>
<input type="text" id="other-gender-input">
<div class="error-text"></div>
</div>
</div>
<div class="form-collumn">
<div>
<div class="form-element">
<label for="sel-cat">Kategória</label>
<select name="category" id="sel-cat">
<option value="choose">Vyberte</option>
</select>
</div>
<div class="form-element">
<label for="sel-sub-cat">Typ</label>
<select name="sub-category" id="sel-sub-cat">
<option value="choose">Vyberte</option>
</select>
</div>
<div class="form-element">
<label for="sel-model">Model</label>
<select name="model" id="sel-model">
<option value="choose">Vyberte</option>
</select>
<div class="error-text"></div>
</div>
</div>
<div class="form-element">
<label>Extra služby</label>
<div class="checkbox-item">
<input type="checkbox" class="extra" id="opt1">
<label for="opt1" id="l-opt1">Option 1</label>
</div>
<div class="checkbox-item">
<input type="checkbox" class="extra" id="opt2">
<label for="opt2" id="l-opt2">Option 2</label>
</div>
<div class="checkbox-item">
<input type="checkbox" class="extra" id="opt3">
<label for="opt3" id="l-opt3">Option 3</label>
</div>
<div class="checkbox-item">
<input type="checkbox" class="extra" id="opt-other">
<label for="opt-other" id="l-opt-other">Option other</label>
</div>
<textarea id="opt-other-txtbox"></textarea>
</div>
<div class="form-element">
<label id="total-label">Total: 0</label>
</div>
</div>
</div>
<div>
<div class="btn">
<button type="reset">Reset</button>
</div>
<div class="btn">
<button id="done-btn">Ďalej</button>
</div>
<hr>
<div id="hidden-name-element">
<input type="text" id="hidden-input" name="created-by" value="Adam Planko" readonly>
<div class="btn">
<button id="show-name-btn">Meno</button>
</div>
</div>
</div>
<dialog class="modal" id="modal">
<div>
<h2>Prehľad objednávky</h2>
<h3>Vybraný produkt:</h3>
<div class="modal-line">
<p id="selected-product"></p>
<p id="selected-product-price" class="price"></p>
</div>
<h3>Vybrané služby:</h3>
<ul id="selected-extras"></ul>
<div class="modal-line">
<h3>Spolu:</h3>
<h3 id="total-modal" class="price">0</h3>
</div>
</div>
<div class="btn">
<button id="modal-close-btn">Zatvoriť</button>
</div>
<div class="btn">
<button type="submit" id="modal-submit-btn">Odoslať</button>
</div>
</dialog>
</form>
</div>
<script type="module" src="./js/index.js"></script>
<script>
function onlyNumberKey(evt) {
let ASCIICode = (evt.which) ? evt.which : evt.keyCode
if (ASCIICode > 31 && (ASCIICode < 48 || ASCIICode > 57))
return false;
return true;
}
</script>
</body>
</html>