-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscription.html
153 lines (133 loc) · 6.22 KB
/
subscription.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
<!DOCTYPE html>
<html lang="et">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kategooriad</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<!-- Otsinguriba + ikoon-->
<div class="container mt-3">
<div class="d-flex justify-content-between align-items-center">
<a href="index.html"><i class="bi bi-film" style="font-size: 40px; color: black;"></i></a>
<div class="search-bar">
<span class="input-group-text" id="basic-addon1"><i class="bi bi-search"></i></span>
<input type="text" class="form-control" placeholder="Otsi filme ja seriaale">
</div>
</div>
</div>
<!-- Menüü -->
<div class="navbar">
<ul>
<li><a href="index.html">Seriaalid</a></li>
<li><a href="index.html">Filmid</a></li>
<li><a href="subscription.html">Tellimine</a></li>
<li><a href="contact.html">Kontakt</a></li>
</ul>
</div>
<div class="container mt-4">
<h1 class="text-dark">Tellimine</h1>
<div class="container mt-4">
<h1 class="text-dark">Vali pakett</h1>
<div class="d-grid gap-2">
<button type="button" class="btn selected-package" onclick="startMovieProcess()">Pakett on juba
valitud</button>
<button type="button" class="btn btn-secondary" onclick="choosePackage()">Vali uus pakett</button>
</div>
<div id="package-selection" class="mt-4 d-none">
<button type="button" class="btn selected-package" onclick="chooseStudentPackage()">Võta tudengi
pakett</button>
<button type="button" class="btn selected-package" onclick="chooseRegularPackage()">Võta
tavapakett</button>
</div>
<div id="payment-process" class="mt-4 d-none">
<h2>Sisestage kontakt- ja makseandmed</h2>
<div class="mb-3">
<input type="text" class="form-control" placeholder="Eesnimi" id="firstName">
</div>
<div class="mb-3">
<input type="text" class="form-control" placeholder="Perekonnanimi" id="lastName">
</div>
<div class="mb-3">
<input type="email" class="form-control" placeholder="Email" id="email">
</div>
<div class="mb-3">
<label for="bank" class="form-label text-dark">Vali pank</label>
<select class="form-select" id="bank">
<option value="" disabled selected>Vali pank...</option>
<option value="lhv">LHV</option>
<option value="seb">SEB</option>
<option value="swedbank">SwedBank</option>
<option value="luminor">Luminor</option>
<option value="coop">Coop</option>
<option value="paypal">PayPal</option>
</select>
</div>
<button type="button" class="btn btn-success" onclick="makePayment()">Maksa</button>
</div>
<div id="payment-confirmation" class="mt-4 d-none">
<h2>Maksmine õnnestus</h2>
<p style="color: black;">Kinnitus makse kohta on saadetud. Nüüd saad filmi vaadata!</p>
<button type="button" class="btn btn-danger" onclick="playMovie()">Pane film käima</button>
</div>
</div>
<br>
</div>
<!-- Jalus -->
<footer class="footer ">
<div class="container">
<div class="row">
<div class="col-md-6">
<h5>Kontakt</h5>
<p>[email protected]<br>
+372 5555 5555</p>
</div>
<div class="col-md-6 d-flex justify-content-end align-items-end">
<div class="social-icons">
<a href="#"><i class="bi bi-instagram"></i></a>
<a href="#"><i class="bi bi-youtube"></i></a>
</div>
</div>
</div>
</div>
</footer>
<script>
function startMovieProcess() {
alert('Vali film või seriaal, mida vaadata!');
}
function choosePackage() {
document.getElementById('package-selection').classList.remove('d-none');
}
function chooseStudentPackage() {
alert('Tudengi pakett valitud!');
document.getElementById('package-selection').classList.add('d-none');
document.getElementById('payment-process').classList.remove('d-none');
}
function chooseRegularPackage() {
alert('Tavaline pakett valitud!');
document.getElementById('package-selection').classList.add('d-none');
document.getElementById('payment-process').classList.remove('d-none');
}
function makePayment() {
const firstName = document.getElementById('firstName').value;
const lastName = document.getElementById('lastName').value;
const email = document.getElementById('email').value;
const bank = document.getElementById('bank').value;
if (!firstName || !lastName || !email || !bank) {
alert('Palun täitke kõik väljad.');
return;
}
alert('Makse sooritatud!\nNimi: ' + firstName + ' ' + lastName + '\nEmail: ' + email + '\nPank: ' + bank);
document.getElementById('payment-process').classList.add('d-none');
document.getElementById('payment-confirmation').classList.remove('d-none');
}
function playMovie() {
alert('Film käivitatakse!');
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>