diff --git a/sk1/src/public/vehicles.js b/sk1/src/public/vehicles.js deleted file mode 100644 index 49088cc..0000000 --- a/sk1/src/public/vehicles.js +++ /dev/null @@ -1,33 +0,0 @@ -// Vehicles page JavaScript -document.addEventListener('DOMContentLoaded', function() { - // Elements - const header = document.querySelector('header'); - const categoryFilter = document.getElementById('category-filter'); - const priceFilter = document.getElementById('price-filter'); - const sortFilter = document.getElementById('sort-filter'); - const vehicleCards = document.querySelectorAll('.vehicle-card'); - const cartLink = document.getElementById('cart-link'); - const cartOverlay = document.getElementById('cart-overlay'); - const closeCartBtn = document.querySelector('.close-cart'); - const cartItems = document.getElementById('cart-items'); - const cartTotalPrice = document.getElementById('cart-total-price'); - const cartCountElement = document.getElementById('cart-count'); - const checkoutBtn = document.getElementById('checkout-btn'); - const addToCartButtons = document.querySelectorAll('.add-to-cart'); - const loginLink = document.getElementById('login-link'); - - // Initial setup - let cart = JSON.parse(localStorage.getItem('brabus_cart')) || []; - updateCartCount(); - checkLoginStatus(); - - // Header scroll effect - function handleHeaderScroll() { - if (window.scrollY > 50) { - header.style.backgroundColor = 'rgba(29, 29, 31, 0.95)'; - header.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.1)'; - } else { - header.style.backgroundColor = 'rgba(29, 29, 31, 0.8)'; - header.style.boxShadow = 'none'; - } - } \ No newline at end of file