document.addEventListener('DOMContentLoaded', function () { initPlanetWiener(); }); function initPlanetWiener() { // Global initializers will go here as we build: // initMobileMenu(); // initCosmicCursor(); // initCarousels(); // initTabs(); // initScrollEffects(); } document.addEventListener('DOMContentLoaded', function () { initPlanetWiener(); }); function initPlanetWiener() { initMobileMenu(); } function initMobileMenu() { const toggle = document.querySelector('.pw-menu-toggle'); const menu = document.querySelector('.pw-mobile-menu'); const mobileLinks = document.querySelectorAll('.pw-mobile-link'); if (!toggle || !menu) return; toggle.addEventListener('click', function () { const isOpen = menu.classList.toggle('is-open'); toggle.classList.toggle('is-active', isOpen); toggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false'); }); mobileLinks.forEach(function (link) { link.addEventListener('click', function () { menu.classList.remove('is-open'); toggle.classList.remove('is-active'); toggle.setAttribute('aria-expanded', 'false'); }); }); document.addEventListener('click', function (event) { const clickedInsideHeader = event.target.closest('.pw-header'); if (!clickedInsideHeader && menu.classList.contains('is-open')) { menu.classList.remove('is-open'); toggle.classList.remove('is-active'); toggle.setAttribute('aria-expanded', 'false'); } }); window.addEventListener('resize', function () { if (window.innerWidth >= 768) { menu.classList.remove('is-open'); toggle.classList.remove('is-active'); toggle.setAttribute('aria-expanded', 'false'); } }); }
Free cosmic shipping on all orders over $50!

Blog

Join the Fun

Discover the playful world of Planet Wiener. Sign up for updates and special offers on dachshund-themed products!

Customer Love

Planet Wiener’s products make my pup so happy and stylish!
I adore the whimsical design and fun items for my dachshund!
Scroll to Top