Skip to content

Commit

Permalink
Merge pull request #429 from PriyaGhosal/revert-401-updated-feature
Browse files Browse the repository at this point in the history
Revert "Updated feature"
  • Loading branch information
PriyaGhosal authored Oct 9, 2024
2 parents ce2028d + 386a573 commit d2a63fc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 129 deletions.
21 changes: 14 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@
}
</script>

<script src="script.js"></script>

<div id="progress-bar"></div>
<!-- funcioning of progress bar -->
<script>
Expand Down Expand Up @@ -220,6 +222,10 @@ <h3>
<header class="locations-head">
<h2>The Perfect Travel Experience!</h2>


</script>

<script src="script.js"></script>
<header class="main-head">
<nav>
<div class="logo">
Expand Down Expand Up @@ -358,7 +364,7 @@ <h3>Flight to Dubai</h3>
<strong>Price:</strong> ₹20,000
<span class="discount">₹25,000 </span>
</p>
<button class="book-now-btn" data-package="dubai.html">Book Now</button>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>

<!-- Deal 2: Hotel Offer -->
Expand All @@ -372,7 +378,7 @@ <h3>Luxury Stay in Goa</h3>
<strong>Price:</strong> ₹10,500
<span class="discount"> ₹15,000</span> per night
</p>
<button class="book-now-btn" data-package="goa.html">Book Now</button>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>

<!-- Deal 3: Travel Package -->
Expand All @@ -386,7 +392,7 @@ <h3>Kerala Backwaters Package</h3>
<strong>Price:</strong> ₹40,000
<span class="discount">₹50,000</span>
</p>
<button class="book-now-btn" data-package="kerala.html">Book Now</button>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>

<!-- Deal 4: International Trip -->
Expand All @@ -400,7 +406,7 @@ <h3>Paris Romantic Getaway</h3>
<strong>Price:</strong> ₹1,20,000
<span class="discount"> ₹1,50,000</span> per couple
</p>
<button class="book-now-btn" data-package="paris.html">Book Now</button>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>

<!-- Deal 5: Adventure Trip -->
Expand All @@ -414,7 +420,7 @@ <h3>Adventure in Bali</h3>
<strong>Price:</strong> ₹48,000
<span class="discount">₹60,000</span> per person
</p>
<button class="book-now-btn" data-package="bali.html">Book Now</button>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
</div>
</section>
Expand Down Expand Up @@ -1006,7 +1012,8 @@ <h2>Exclusive Deals and Offers!</h2>
line-height: 1.5;
}
</style>
<script src="script.js"></script>
</script>

</body>

</html>
</html>
23 changes: 0 additions & 23 deletions packages/bali.html

This file was deleted.

23 changes: 0 additions & 23 deletions packages/dubai.html

This file was deleted.

23 changes: 0 additions & 23 deletions packages/goa.html

This file was deleted.

23 changes: 0 additions & 23 deletions packages/kerala.html

This file was deleted.

23 changes: 0 additions & 23 deletions packages/paris.html

This file was deleted.

7 changes: 0 additions & 7 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,3 @@ function googleTranslateElementInit() {
}, 'google_translate_element');
}

//Functionality for 'Book-Now' button in travel packages
document.querySelectorAll('.book-now-btn').forEach(button => {
button.addEventListener('click', function() {
const packageName = this.getAttribute('data-package');
window.location.href = `./packages/${packageName}`;
});
});

0 comments on commit d2a63fc

Please sign in to comment.