-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookings.html
159 lines (123 loc) · 6.54 KB
/
bookings.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
<!DOCTYPE html>
<!-- Used resources: w3schools & https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript !-->
<html lang="en">
<head>
<title>TechBites Malta</title>
<link rel="stylesheet" href="css.css">
<link rel="stylesheet" href="gallery.css">
<link rel="icon" type="image/x-icon" href="img/BannerLogo.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
</head>
<body>
<div id="container">
<nav>
<ul>
<li>
<a href="index.html">Home</a>
<a href="bookings.html">Bookings</a>
<a href="gallery.html">Gallery</a>
<a href="contact.html">Contact Us</a>
</li>
</ul>
</nav>
</div>
<h1 class="bookingsHeader">What can we do for you?</h1>
<div class="bookings">
<div class="Service">
<div class="foodImages">
<div class="food fade">
<img src="img/food1.png" style="width:100%"> <!-- Please do note that I recognise that this is a CSS line, but when I attempted to remove it the page broke. !-->
</div>
<div class="food fade">
<img src="img/food2.png" style="width:100%">
</div>
<div class="food fade">
<img src="img/food3.png" style="width:100%">
</div>
<div class="food fade">
<img src="img/food4.jpg" style="width:100%">
</div>
</div>
<h3 class="bookingsText">Like the look of our food? Order a Catering Service and get any amount of any food you want for any occasion!</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
<!-- Copy-Paste to make it easier:
<div class="Service">
<div class="Images">
<img src="/img/" style="width:100%">
</div>
<h3 class="bookingsText"></h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
!-->
<div class="Service">
<div class="Images">
<img src="img/chef1.jpg" style="width:100%">
</div>
<h3 class="bookingsText">Don't like what food we offer? Have a recipe you want perfecting with a slice of tech? Hire our chefs and experience their expertise first-hand!</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
<div class="Service">
<div class="Images">
<img src="img/seasideview.jpg" style="width:100%">
</div>
<h3 class="bookingsText">Want a night you and your friends/coworkers/family will never forget? Book one of our lounges or even the entire restaurant and cross off an amazing experience from your bucket list.</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
<div class="Service">
<div class="Images">
<img src="img/inside4.jpg" style="width:100%">
</div>
<h3 class="bookingsText">Getting married? Let us know and we'll give you the happiest day of your life in the freshest, never seen before, style!</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
<div class="Service">
<div class="Images">
<img src="img/menu.jpg" style="width:100%">
</div>
<h3 class="bookingsText">Like our menus? Have them for your own establishment! Commission a custom interactive menu today!</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
<div class="Service">
<div class="Images">
<img src="img/outside.jpg" style="width:100%">
</div>
<h3 class="bookingsText">Want the best of the best holiday home? Simply book your stay and live the best life with the best Malta has to offer!</h3>
<button class="BookWithUs" onclick="bookWithUs(12)">Book with us today!</button>
</div>
</div>
<!-- Note: I tried to make the changing images work for every service, but it ended up just derendering the image entirely and having it not work, so I left it working for the first booking option
just as a little neat feature. If I were to continue with this website in my own time, I would make this functional across all images. !-->
<script>
let slideIndex = 0;
foodSlides();
function foodSlides() {
let i;
let slides = document.getElementsByClassName("food");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(foodSlides, 4000); // Change image every 2 seconds
}
</script>
<script>
function bookWithUs(length) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
let counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
alert("Thank you for expressing your interest in working with us! Please contact us using the Contact Form and provide us with this unique code:\n\n" + result);
}
</script>
</body>
<footer class="footer">
<h2>© TechBites 2023 - by Gabriel Jackson</h2>
</footer>
</html>