Skip to content
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
403 changes: 224 additions & 179 deletions index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pages/about-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,7 @@ <h3 class="footer-section-title">Quick Links</h3>
<li> <a href="explore.html" class="footer-link">Explore India</a></li>
<li><a href="feedback.html" class="footer-link">Feedback</a></li>
<li><a href="contact-us.html" class="footer-link">Contact Us</a></li>
<li><a href="privacy-policy.html" class="footer-link">Privacy Policy</a></li>
</ul>
</div>

Expand Down
72 changes: 3 additions & 69 deletions pages/contact-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ <h3 class="footer-section-title">Quick Links</h3>
<li><a href="explore.html" class="footer-link">Explore India</a></li>
<li><a href="feedback.html" class="footer-link">Feedback</a></li>
<li><a href="contactus.html" class="footer-link">Contact Us</a></li>
<li><a href="privacypolicy.html" class="footer-link">Privacy Policy</a></li>
</ul>
</div>

Expand Down Expand Up @@ -323,78 +324,11 @@ <h4>Subscribe to our newsletter</h4>
&copy; <span id="year"></span> Desh Darshan. All rights reserved.
</div>
</footer>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<!--scroll to top and bottom -->
<button id="smartScrollBtn"
class="fixed bottom-20 right-5 bg-orange-500 hover:bg-orange-600 text-white font-bold
w-12 h-12 rounded-full shadow-lg flex items-center justify-center
transition-all duration-300 hover:scale-110 z-50"
aria-label="Scroll">
<svg id="scrollIcon" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" clip-rule="evenodd"/>
</svg>
</button>

<script>(function () {
const scrollBtn = document.getElementById('smartScrollBtn');
const scrollIcon = document.getElementById('scrollIcon');
if (!scrollBtn || !scrollIcon) return;

const updateThreshold = () => Math.max(300, (document.body.scrollHeight || 800) / 3);

const setIcon = (direction) => {
if (direction === 'down') {
// ↓ icon path
scrollIcon.innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/>`;
scrollBtn.setAttribute('aria-label', 'Scroll to bottom');
} else {
// ↑ icon path
scrollIcon.innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"/>`;
scrollBtn.setAttribute('aria-label', 'Scroll to top');
}
};

const check = () => {
const threshold = updateThreshold();
const scrollTop = window.scrollY;
const windowHeight = window.innerHeight;
const docHeight = document.body.scrollHeight;

if (scrollTop < threshold) {
scrollBtn.classList.add('show');
setIcon('down');
} else if (windowHeight + scrollTop >= docHeight - threshold) {
scrollBtn.classList.add('show');
setIcon('up');
} else {
scrollBtn.classList.add('show');
setIcon('up');
}
};

window.addEventListener('scroll', check);
window.addEventListener('resize', check);
check();

scrollBtn.addEventListener('click', () => {
const scrollTop = window.scrollY;
const windowHeight = window.innerHeight;
const docHeight = document.body.scrollHeight;
const threshold = updateThreshold();

if (scrollTop < threshold) {
window.scrollTo({ top: docHeight, behavior: 'smooth' });
} else {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
});
})();</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="../js/navbar-loader.js"></script>
<script>
(function () { if (!window.chatbase || window.chatbase("getState") !== "initialized") { window.chatbase = (...arguments) => { if (!window.chatbase.q) { window.chatbase.q = [] } window.chatbase.q.push(arguments) }; window.chatbase = new Proxy(window.chatbase, { get(target, prop) { if (prop === "q") { return target.q } return (...args) => target(prop, ...args) } }) } const onLoad = function () { const script = document.createElement("script"); script.src = "https://www.chatbase.co/embed.min.js"; script.id = "eaZ3BLaEp3NWiit_Vn0fK"; script.domain = "www.chatbase.co"; document.body.appendChild(script) }; if (document.readyState === "complete") { onLoad() } else { window.addEventListener("load", onLoad) } })();
</script>
</body>
</html>
</html>
3 changes: 2 additions & 1 deletion pages/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ <h3 class="footer-section-title">Quick Links</h3>
</li>
<li><a href="feedback.html" class="footer-link">Feedback</a></li>
<li><a href="contactus.html" class="footer-link">Contact Us</a></li>
<li><a href="privacypolicy.html" class="footer-link">Privacy Policy</a></li>
</ul>
</div>

Expand Down Expand Up @@ -1482,4 +1483,4 @@ <h3 style="margin: 0 0 10px 0; color: #333;">${stateName}</h3>

</body>

</html>
</html>
3 changes: 2 additions & 1 deletion pages/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ <h3 class="footer-section-title">Quick Links</h3>
</li>
<li><a href="feedback.html" class="footer-link">Feedback</a></li>
<li><a href="contactus.html" class="footer-link">Contact Us</a></li>
<li><a href="privacypolicy.html" class="footer-link">Privacy Policy</a></li>
</ul>
</div>

Expand Down Expand Up @@ -493,4 +494,4 @@ <h4>Subscribe to our newsletter</h4>
<script src="./js/navbar.js"></script>
</body>

</html>
</html>
3 changes: 2 additions & 1 deletion pages/festival-calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ <h3 class="footer-section-title">Quick Links</h3>
</li>
<li><a href="feedback.html" class="footer-link">Feedback</a></li>
<li><a href="contactus.html" class="footer-link">Contact Us</a></li>
<li><a href="privacypolicy.html" class="footer-link">Privacy Policy</a></li>
</ul>
</div>

Expand Down Expand Up @@ -379,4 +380,4 @@ <h4>Subscribe to our newsletter</h4>

</body>

</html>
</html>
Loading