-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.html
102 lines (85 loc) · 3.09 KB
/
book.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/BubblyPups_Icon(LBG).png"
/>
<link rel="stylesheet" href="css/main.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<title>Book Now | BubblyPups</title>
</head>
<body class="booking-body">
<div class="wrapper">
<main class="main main__book">
<div class="navbar" id="navBar">
<a href="index.html" id="logo" class="logo"><img src="./assets/images/BubblyPups_Text(LBG).png" alt=""></a>
<div class="nav">
<a href="#">My work</a>
<a href="#">services</a>
<a href="#">contact</a>
<a href=""><button class="btn nav-btn">book now</button></a>
</div>
</div>
<!-- Hero Section -->
<section class="hero-book">
<div class="hero__container hero__container--book">
<section class="sticky ">
<div class="bubbles">
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
</div>
</section>
<iframe class="booking-app" width='100%' height='585px' src='https://jasonmiller.zohobookings.com.au/portal-embed#/customer/bubblypupsdoggrooming' frameborder='0' allowfullscreen='' > </iframe>
</section>
</main>
</body>
<script>
// Toggle the .pa-fixed-header class when the user
// scroll 100px
window.onscroll = () => {
scrollNavbar();
};
scrollNavbar = () => {
// Target elements
const navBar = document.getElementById("navBar");
const links = document.querySelectorAll("#navBar a");
const navLogo = document.getElementById("#logo");
if (document.documentElement.scrollTop > 100) {
navBar.classList.add("pa-fixed-header");
navLogo.style.color = "pink";
console.log("Navigation change initiated");
// Change the color of links on scroll
for (let i = 0; i < links.length; i++) {
const element = links[i];
element.classList.add("text-black");
}
} else {
navBar.classList.remove("pa-fixed-header");
// Change the color of links back to default
for (let i = 0; i < links.length; i++) {
const element = links[i];
element.classList.remove("text-black");
}
}
};
</script>
</html>