-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (37 loc) · 2.03 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
<!DOCTYPE html>
<html lang="sk">
<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>Formulár</title>
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<div class="main">
<h3>Vaše údaje</h3>
<form action="rekapitulacia.html">
<label for="meno">Meno a priezvisko:</label>
<input type="text" id="meno" name="meno" placeholder="Ján Novák" minlength="5" required>
<label for="adresa">Adresa:</label>
<input type="text" id="adresa" name="adresa" placeholder="Štúrová 10 Bratislava" minlength="5" required pattern="[a-zA-Z\d\s\-\,\#\.\+]+">
<label for="cislo">Telefónne číslo (začínajúce 09xx):</label>
<input type="tel" id="cislo" name="cislo" placeholder="0950123456" minlength="10" maxlength="10" required pattern="^09\d{8}$">
<label for="mail">E-mail:</label>
<input type="email" id="mail" name="mail" placeholder="[email protected]" required pattern="[a-zA-Z0-9_\.\+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-\.]+">
<div class="produkt_view">
<h3>Produkt</h3>
<label for="produkt">Názov:</label>
<input type="text" id="produkt" name="produkt" placeholder="playstation 5" required >
<label for="cena">Cena:</label>
<input type="number" id="cena" name="cena" class="calculate" placeholder="500" min="0.01" step="0.01" required>
<label for="kusy">Počet kusov:</label>
<input type="number" id="kusy" name="kusy" class="calculate" placeholder="5" min="1" step="1" required>
</div>
<p class="sumar">Cena spolu: <span id="cena_total">0</span> CZK</p>
<input type="submit" value="Potvrdiť">
</form>
</div>
<script src="script/index.js"></script>
</body>
</html>