-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (93 loc) · 3.94 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
<!DOCTYPE html>
<html lang="et">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Javascript interaktiivne veebileht">
<meta name="author" content="">
<title>JavaScript 2 - interaktiivne veebileht</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="container">
<!----------------Ostukorv--------------------->
<section class="section">
<h2 class="text-center">Tooted</h2>
<div class="tooted">
<div class="toode">
<h2 class="toode_nimi">Kingad</h2>
<h3 class="toode_hind">79</h3>
<button class="btn" data-action="lisa_korvi">Lisa ostukorvi</button>
</div>
<div class="toode">
<h2 class="toode_nimi">Saapad</h2>
<h3 class="toode_hind">109</h3>
<button class="btn" data-action="lisa_korvi">Lisa ostukorvi</button>
</div>
<div class="toode">
<h2 class="toode_nimi">Kummikud</h2>
<h3 class="toode_hind">29</h3>
<button class="btn" data-action="lisa_korvi">Lisa ostukorvi</button>
</div>
</div>
<h2 class="ostukorv">Ostukorv</h2>
<div class="korv"></div>
</section>
<!----------------Taimer--------------------->
<section class="section">
<h2>Ostu sooritamiseks <span id="time"></span> </h2>
</section>
<!----------------Tarne vorm--------------------->
<section class="section">
<h2>Tarne</h2>
<form action="" method="GET" id="form">
<div class="form-control">
<label for="eesnimi">Eesnimi:
<input type="text" id="eesnimi" name="eesnimi">
</label>
<br>
<label for="perenimi">Perenimi:
<input type="text" id="perenimi" name="perenimi">
</label>
</div>
<div class="form-control">
<label for="epost">E-post:
<input type="email" id="epost" name="epost">
</label>
</div>
<div class="form-control">
<label for="telefon">Telefon:
<input type="text" id="telefon" name="telefon">
</label>
</div>
<!-- minu kood: postiindeks -->
<div class="form-control">
<label for="postiindeks">Postiindeks:
<input type="text" id="postiindeks">
</label>
</div>
<br>
<div class="form-control">
<label for="kinnitus">Nõustun tingimustega
<input type="checkbox" id="kinnitus" name="kinnitus"></label>
</div>
<div class="form-control">
<h4>Tarneviisid</h4>
<label for="tarne1">Pakiautomaati (5.00 €)
<input type="radio" id="tarne1" name="tarneviis" value="5" checked>
</label>
<br>
<label for="tarne2">Tulen ise järgi (tasuta)
<input type="radio" id="tarne2" name="tarneviis" value="0">
</label>
</div>
<div id="tehing">
<button id="btnsubmit">Kinnita ost</button>
</div>
<div id="errorMessage"></div>
</form>
</section>
</main>
<script src="skript.js"></script>
</body>
</html>