- Removed docs/ (Starlight) - Added www/ with pure HTML/CSS/JS landing page - Product website with features, how it works, get started - Basic HTML documentation pages (installation, quick start, AI providers) - Dockerfile.docs now serves static files from www/ - Updated README and AGENTS.md
22 lines
656 B
JavaScript
22 lines
656 B
JavaScript
document.addEventListener('DOMContentLoaded', () => {
|
|
const navbar = document.querySelector('.navbar');
|
|
|
|
window.addEventListener('scroll', () => {
|
|
if (window.scrollY > 50) {
|
|
navbar.style.background = 'rgba(15, 23, 42, 0.98)';
|
|
} else {
|
|
navbar.style.background = 'rgba(15, 23, 42, 0.9)';
|
|
}
|
|
});
|
|
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.addEventListener('click', function (e) {
|
|
e.preventDefault();
|
|
const target = document.querySelector(this.getAttribute('href'));
|
|
if (target) {
|
|
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
}
|
|
});
|
|
});
|
|
});
|