This commit is contained in:
2026-02-11 09:29:23 +01:00
parent 6fb4f97742
commit 4055d37adf
5 changed files with 1078 additions and 285 deletions

View File

@@ -41,6 +41,38 @@ document.addEventListener("DOMContentLoaded", function() {
initSmoothScrolling();
// ==========================================
// 1.5. BUTTON NAVIGATION TO DEMO SECTION
// ==========================================
function initButtonNavigation() {
const kiPhoneBtn = document.getElementById('kiPhoneBtn');
const chatBtn = document.getElementById('chatBtn');
const demoSection = document.getElementById('demo-section');
if (demoSection) {
const scrollToDemo = () => {
const header = document.querySelector('.top-banner');
const headerHeight = header ? header.offsetHeight : 90;
window.scrollTo({
top: demoSection.offsetTop - headerHeight - 20,
behavior: 'smooth'
});
};
if (kiPhoneBtn) {
kiPhoneBtn.addEventListener('click', scrollToDemo);
}
if (chatBtn) {
chatBtn.addEventListener('click', scrollToDemo);
}
}
}
initButtonNavigation();
// ==========================================
// 2. MENU TOGGLE
// ==========================================