Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have remove the some unwanted text which was appearing on every page. #2005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
transform: scale(1);
}
}
</style> -->
</style>
<script>
// Function to hide preloader and show content once the page has fully loaded
window.addEventListener('load', function () {
Expand Down
5 changes: 2 additions & 3 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,6 @@ <h3>Comments (${post.comments.length})</h3>
});

this.reset(); // Clears the form fields
});

function closePopup() {
document.getElementById('confirmationPopup').style.display = 'none';
Expand Down Expand Up @@ -1472,7 +1471,7 @@ <h3>Comments (${post.comments.length})</h3>


<script>
main
// main
// coordinates for the cursor :
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
Expand Down Expand Up @@ -1555,7 +1554,7 @@ <h3>Comments (${post.comments.length})</h3>
animateCircles();
});

main
// main
</script>

<body>
Expand Down
3 changes: 1 addition & 2 deletions book.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
margin-top: 20px;
}
</style>
main
<style>
/* circle styles */
.circle {
Expand All @@ -169,7 +168,7 @@
</head>

<body>
main
<!-- main -->
<header class="main-head">
<nav>
<div class="logo">
Expand Down
86 changes: 46 additions & 40 deletions copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<html lang="en">

<head>
main
main
<!-- main main -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copyright Page</title>
Expand Down Expand Up @@ -44,7 +43,7 @@
line-height: 1.6;
}


</style
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Copyright Policy - BuddyTrail</title>
Expand Down Expand Up @@ -498,45 +497,52 @@ <h3>Follow Us</h3>
});
</script>

<script>
modeToggle.addEventListener("click", () => {
document.body.classList.toggle("dark-mode");
const isDarkMode = document.body.classList.contains("dark-mode");

if (isDarkMode) {
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
localStorage.setItem("theme", "dark");
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
localStorage.setItem("theme", "light");
}
});
<script>
document.addEventListener("DOMContentLoaded", () => {
const modeToggle = document.getElementById("modeToggle"); // Ensure this element exists
const sunIcon = document.getElementById("sunIcon"); // Ensure this element exists
const moonIcon = document.getElementById("moonIcon"); // Ensure this element exists

// Scroll animations
const observer = new IntersectionObserver(
(entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = "1";
entry.target.style.transform = "translateY(0)";
}
});
},
{
threshold: 0.1
}
);

document.querySelectorAll('h2, p, ul').forEach(el => {
el.style.opacity = "0";
el.style.transform = "translateY(20px)";
el.style.transition = "all 0.6s ease";
observer.observe(el);
});
modeToggle.addEventListener("click", () => {
document.body.classList.toggle("dark-mode");
const isDarkMode = document.body.classList.contains("dark-mode");

if (isDarkMode) {
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
localStorage.setItem("theme", "dark");
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
localStorage.setItem("theme", "light");
}
});
</script>

// Scroll animations
const observer = new IntersectionObserver(
(entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = "1";
entry.target.style.transform = "translateY(0)";
}
});
},
{
threshold: 0.1
}
);

document.querySelectorAll('h2, p, ul').forEach(el => {
el.style.opacity = "0";
el.style.transform = "translateY(20px)";
el.style.transition = "all 0.6s ease";
observer.observe(el);
});
});
</script>



</body>

Expand Down
4 changes: 2 additions & 2 deletions destinationform.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Destination Booking Form</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="destinationform.html">
main
<!-- main -->
<style>
/* circle styles */
.circle {
Expand All @@ -26,7 +26,7 @@

<link rel="icon" href="/icons/airplane.svg" />
</head>
main
<!-- main -->
<body>
<div class="container-fluid booking-form-container">
<div class="row justify-content-center align-items-center min-vh-100">
Expand Down
90 changes: 52 additions & 38 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3813,17 +3813,20 @@ <h2>Exclusive Deals and Offers!</h2>

document.getElementById("progressBar").style.width = scrollPercent + "%";
}
</script>
.custom-alert p {
/* white color text on black background will look nice */
color:white;
margin: 0;
line-height: 1.5;
}
</style>
</style>
</script>
<script src="script.js">
document.getElementById('newsletter-form').addEventListener('submit', function (e) {
document.getElementById('newsletter-form').addEventListener('submit', function (e) {
e.preventDefault(); // Prevent the default form submission

</script>
<style>
.popup-content {
background-color: white;
padding: 20px;
Expand Down Expand Up @@ -3873,10 +3876,12 @@ <h2>Exclusive Deals and Offers!</h2>
line-height: 1.5;
}
</style>
</script>
<script src="script.js">

<script src="script.js"></script>
<script>
document.getElementById('newsletter-form').addEventListener('submit', function (e) {
e.preventDefault(); // Prevent the default form submission
</script>

<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = { "default_language": "en", "detect_browser_language": true, "wrapper_selector": ".gtranslate_wrapper" }</script>
Expand Down Expand Up @@ -4044,48 +4049,57 @@ <h2>Exclusive Deals and Offers!</h2>
/* Pulse on hover */
}
</style>

// changes made in this block
<script>
// Get the button
const scrollToTopBtn = document.getElementById("scrollToTopBtn");
const progressCircle = document.querySelector(".progress-ring__circle");
const radius = progressCircle.r.baseVal.value;
const circumference = 2 * Math.PI * radius;
document.addEventListener("DOMContentLoaded", () => {
const scrollToTopBtn = document.getElementById("scrollToTopBtn");
const progressCircle = document.querySelector(".progress-ring__circle");

// Set the circle progress properties
progressCircle.style.strokeDasharray = `${circumference} ${circumference}`;
progressCircle.style.strokeDashoffset = circumference;
if (!scrollToTopBtn || !progressCircle) {
console.error("Required elements not found.");
return;
}

// Function to show or hide the button based on scroll position
function toggleScrollButton() {
if (window.scrollY > 100) {
scrollToTopBtn.classList.add("show");
} else {
scrollToTopBtn.classList.remove("show");
}
}
const radius = progressCircle.r.baseVal.value;
const circumference = 2 * Math.PI * radius;

// Function to set the scroll progress on the button ring
function setProgress(percent) {
const offset = circumference - (percent / 100) * circumference;
progressCircle.style.strokeDashoffset = offset;
// Set the circle progress properties
progressCircle.style.strokeDasharray = `${circumference} ${circumference}`;
progressCircle.style.strokeDashoffset = circumference;

// Function to show or hide the button based on scroll position
function toggleScrollButton() {
if (window.scrollY > 100) {
scrollToTopBtn.classList.add("show");
} else {
scrollToTopBtn.classList.remove("show");
}
}

// Listen for scroll events to update button visibility and progress
window.addEventListener("scroll", () => {
toggleScrollButton();
const scrollPercent = (window.scrollY / (document.documentElement.scrollHeight - window.innerHeight)) * 100;
setProgress(scrollPercent);
});
// Function to set the scroll progress on the button ring
function setProgress(percent) {
const offset = circumference - (percent / 100) * circumference;
progressCircle.style.strokeDashoffset = offset;
}

// Smooth scroll to top when the button is clicked
scrollToTopBtn.addEventListener("click", () => {
window.scrollTo({
top: 0,
behavior: "smooth"
});
// Listen for scroll events to update button visibility and progress
window.addEventListener("scroll", () => {
toggleScrollButton();
const scrollPercent = (window.scrollY / (document.documentElement.scrollHeight - window.innerHeight)) * 100;
setProgress(scrollPercent);
});

// Smooth scroll to top when the button is clicked
scrollToTopBtn.addEventListener("click", () => {
window.scrollTo({
top: 0,
behavior: "smooth"
});
});
});
</script>

</script>

<!-- Scripts -->
<script src="script.js"></script>
Expand Down