Add massive collection of CSS, JavaScript and theme assets that were previously excluded: **CSS Files (681 total):** - HVAC plugin-specific styles (hvac-*.css): 34 files including dashboard, certificates, registration, mobile nav, accessibility fixes, animations, and welcome popup - Theme framework files (Astra, builder systems, layouts): 200+ files - Plugin compatibility styles (WooCommerce, WPForms, Elementor, Contact Form 7): 150+ files - WordPress core and editor styles: 50+ files - Responsive and RTL language support: 200+ files **JavaScript Files (400+ total):** - HVAC plugin functionality (hvac-*.js): 27 files including menu systems, dashboard enhancements, profile sharing, mobile responsive features, accessibility, and animations - Framework and library files: jQuery plugins, GSAP, AOS, Swiper, Chart.js, Lottie, Isotope - Plugin compatibility scripts: WPForms, WooCommerce, Elementor, Contact Form 7, LifterLMS - WordPress core functionality: customizer, admin, block editor compatibility - Third-party integrations: Stripe, SMTP, analytics, search functionality **Assets:** - Certificate background images and logos - Comprehensive theme styling infrastructure - Mobile-responsive design systems - Cross-browser compatibility assets - Performance-optimized minified versions **Updated .gitignore:** - Fixed asset directory whitelisting patterns to properly include CSS/JS/images - Added proper directory structure recognition (!/assets/css/, !/assets/js/, etc.) - Maintains security by excluding sensitive files while including essential assets This commit provides the complete frontend infrastructure needed for: - Full theme functionality and styling - Plugin feature implementations - Mobile responsiveness and accessibility - Cross-browser compatibility - Performance optimization - Developer workflow support
1 line
No EOL
3 KiB
JavaScript
1 line
No EOL
3 KiB
JavaScript
(()=>{var e,n=document.querySelector(".main-header-menu-toggle"),t=document.querySelector(".ast-below-header"),l=document.querySelector(".ast-below-header-actual-nav"),o=document.querySelector(".menu-above-header-toggle"),a=document.querySelector(".menu-below-header-toggle"),r=document.querySelector("html"),s=document.querySelectorAll(".ast-below-header"),u=document.querySelectorAll(".menu-below-header-toggle"),g=document.querySelectorAll(".ast-below-header-actual-nav");if(0<u.length){for(var c=0;c<u.length;c++)if(u[c].setAttribute("data-index",c),u[c].addEventListener("click",function(e){e.preventDefault();for(var e=this.getAttribute("data-index"),t=s[e].querySelectorAll(".menu-item-has-children"),l=0;l<t.length;l++){t[l].classList.remove("ast-submenu-expanded");for(var n=t[l].querySelectorAll(".sub-menu"),o=0;o<n.length;o++)n[o].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("menu-below-header-toggle")&&(("function"==typeof astraToggleClass?(astraToggleClass(s[e],"toggle-on"),astraToggleClass):(toggleClass(s[e],"toggle-on"),toggleClass))(u[e],"toggled"),s[e].classList.contains("toggle-on")?(g[e].style.display="block",r.classList.add("below-header-toggle-on")):(g[e].style.display="",r.classList.remove("below-header-toggle-on")))},!1),void 0!==s[c]){s[c].querySelectorAll(".ast-below-header-menu .menu-item");if(0<(e=document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")?s[c].querySelectorAll(".ast-header-break-point .ast-below-header-menu .ast-menu-toggle, .ast-header-break-point .ast-below-header-menu .menu-item-has-children > .menu-link"):s[c].querySelectorAll(".ast-below-header-menu .ast-menu-toggle")).length)for(var i=0;i<e.length;i++)e[i].removeEventListener("click",AstraToggleSubMenu),e[i].addEventListener("click",AstraToggleSubMenu,!1)}}else{var d=document.querySelectorAll(".main-header-menu"),m=document.querySelectorAll(".ast-below-header-menu-items"),h=document.querySelectorAll(".main-header-menu-toggle");if(0<h.length&&0<m.length&&0==d.length)for(c=0;c<h.length;c++){var v=m[c].querySelectorAll(".ast-menu-toggle");if(0<v.length)for(c=0;c<v.length;c++)v[c].removeEventListener("click",AstraToggleSubMenu),v[c].addEventListener("click",AstraToggleSubMenu,!1)}}null!=a&&(null!=n&&null!=l&&n.addEventListener("click",function(e){t.classList.remove("toggle-on"),l.style.display="none",null!=o&&o.classList.remove("toggled"),null!=a&&a.classList.remove("toggled")},!1),a.addEventListener("click",function(e){e.preventDefault(),null!=n&&n.classList.remove("toggled"),null!=o&&o.classList.remove("toggled");var e=document.querySelector(".ast-above-header"),e=(null!=e&&(e.classList.remove("toggle-on"),null!=(e=document.querySelector(".ast-above-header-navigation")))&&(e.style.display=""),document.querySelector(".main-header-bar-navigation")),e=(null!=e&&(e.classList.remove("toggle-on"),e.style.display=""),document.querySelector(".ast-below-header-navigation")),t=e.getBoundingClientRect(),l=Math.max(document.documentElement.clientHeight,window.innerHeight||0);e.style.maxHeight=Math.abs(l-t.top)+"px"},!1))})(); |