From e757af9c65045349831d280d243be73e07cb3b49 Mon Sep 17 00:00:00 2001 From: Yan Kasabutski Date: Tue, 13 May 2025 04:07:37 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20sk?= =?UTF-8?q?1/src/public/vehicles.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sk1/src/public/vehicles.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 sk1/src/public/vehicles.js 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