Initial commit: Luftglanz drone website with integrated AI chat assistant
Features: - Complete Luftglanz drone cleaning website - AI chat assistant integrated with OpenAI API - Expert product advice for AGO Quart and Mellerud cleaning products - Formal German language support (Sie form) - Secure PHP backend for API calls - Responsive design with mobile support - Product-specific knowledge base - Safety statements from manufacturers - Multi-page integration (index, products, services, contact) Technical components: - AI chat widget (js/ai-chat.js) - Chat styling (css/components/ai-chat.css) - Backend API (ai-chat-api.php) - Product knowledge base with detailed specifications - Demo and documentation files
This commit is contained in:
19
js/main.js
Normal file
19
js/main.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// This file contains the main JavaScript code for the website, handling general interactivity and functionality.
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// Initialize any necessary components or features
|
||||
console.log('Roof Drone Cleaning Website Loaded');
|
||||
|
||||
// Example: Smooth scroll for anchor links
|
||||
const scrollLinks = document.querySelectorAll('a[href^="#"]');
|
||||
scrollLinks.forEach(link => {
|
||||
link.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
const targetId = this.getAttribute('href');
|
||||
const targetElement = document.querySelector(targetId);
|
||||
targetElement.scrollIntoView({ behavior: 'smooth' });
|
||||
});
|
||||
});
|
||||
|
||||
// Additional functionality can be added here
|
||||
});
|
||||
Reference in New Issue
Block a user