-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovie.html
196 lines (175 loc) · 8.86 KB
/
movie.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
192
193
194
195
196
<!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">Film</h1>
<a href="comedy.html"><button type="button" class="btn btn-outline-danger"><i class="bi bi-arrow-left"></i>
Tagasi</button></a>
<br>
<br>
<div class="movie-description text-dark">
<h2 class="text-dark">Home Alone</h2>
<div class="row">
<div class="col-6 mb-3 col-md-4 col-lg-3">
<img class="movie-image"
src="https://m.media-amazon.com/images/M/MV5BNzNmNmQ2ZDEtMTc1MS00NjNiLThlMGUtZmQxNTg1Nzg5NWMzXkEyXkFqcGc@._V1_.jpg">
</div>
<div class="col-9">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac nunc id metus dapibus feugiat.
Sed maximus felis ut imperdiet aliquam. Interdum et malesuada fames ac ante ipsum primis in
faucibus. Proin eget neque velit. Nunc a sapien dui. Donec elementum elit et dolor mollis, vitae
blandit lacus vestibulum. Sed et sollicitudin mauris.</p>
<p>Fusce pharetra elit eget orci vestibulum euismod. Cras quis libero ullamcorper, rhoncus ligula
ac, feugiat ex. Phasellus massa turpis, pulvinar in vehicula nec, elementum vel ante. Fusce
interdum suscipit tortor. Mauris porta, justo pulvinar lobortis venenatis, turpis leo mollis
felis, sed rutrum erat lectus non nisi. Suspendisse at nulla ac ipsum malesuada venenatis vitae
sit amet elit. Morbi viverra auctor eros eu porta. Vivamus a orci urna. Integer tristique et dui
sit amet sodales.</p>
</div>
</div>
</div>
<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>
<hr>
<h1 class="text-dark">Sulle võib ka meeldida</h1>
<br>
<br>
<div class="row">
<div class="col-6 mb-3 col-md-4 col-lg-3">
<a href="movie.html" class="movie"><img class="movie-image"
src="https://m.media-amazon.com/images/M/MV5BNzNmNmQ2ZDEtMTc1MS00NjNiLThlMGUtZmQxNTg1Nzg5NWMzXkEyXkFqcGc@._V1_.jpg"></a>
</div>
<div class="col-6 mb-3 col-md-4 col-lg-3">
<a href="" class="movie"><img class="movie-image"
src="https://m.media-amazon.com/images/M/MV5BNDI2MzBhNzgtOWYyOS00NDM2LWE0OGYtOGQ0M2FjMTI2NTllXkEyXkFqcGc@._V1_.jpg"></a>
</div>
<div class="col-6 mb-3 col-md-4 col-lg-3">
<a href="" class="movie"><img class="movie-image"
src="https://hips.hearstapps.com/vader-prod.s3.amazonaws.com/1627595444-51VhmY6XE8L._SL500_.jpg"></a>
</div>
</div>
</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('Film pannakse kohe käima!');
}
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>