-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodal.html
53 lines (47 loc) · 1.88 KB
/
modal.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
<html>
<head>
<title>Rezervace vozidla</title>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Styling for blurred background */
/* Styling for modal */
.modal {
position: fixed;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.897); /* Semi-transparent black background */
padding: 20px;
border-radius: 10px;
color: white;
text-align: center;
}
/* Styling for title */
.modal h1 {
font-size: 24px;
}
/* Styling for checkmark image */
.checkmark {
display: block;
margin: 20px auto;
width: 50px; /* Adjust size as needed */
}
</style>
</head>
<body>
<div class="">
</div>
<div class="Modal-Window">
<h1>Rezervace proběhla v pořádku</h1>
<img src="checkmark.png" alt="Zelená fajfka" class="checkmark">
</div>
<script>
// Hide the modal after 5 seconds
setTimeout(function() {
document.querySelector('.modal').style.display = 'none';
}, 5000);
</script>
</body>
</html>