upskill-event-manager/assets/js/ast-above-header.min.js
Ben Reed cdc5ea85f4 feat: Add comprehensive CSS, JavaScript and theme asset infrastructure
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
2025-08-11 16:20:31 -03:00

1 line
No EOL
3.1 KiB
JavaScript

(()=>{var e,t=document.querySelector(".ast-above-header"),l=document.querySelector(".ast-above-header-navigation"),a=document.querySelector(".menu-above-header-toggle"),n=document.querySelector(".main-header-menu-toggle"),o=document.querySelector(".menu-below-header-toggle"),s=document.querySelector("html"),u=document.querySelectorAll(".ast-above-header"),g=document.querySelectorAll(".menu-above-header-toggle"),d=document.querySelectorAll(".ast-above-header-navigation");if(0<g.length){for(var r=0;r<g.length;r++)if(g[r].setAttribute("data-index",r),g[r].addEventListener("click",function(e){e.preventDefault();for(var e=this.getAttribute("data-index"),t=u[e].querySelectorAll(".menu-item-has-children"),l=0;l<t.length;l++){t[l].classList.remove("ast-submenu-expanded");for(var a=t[l].querySelectorAll(".sub-menu"),n=0;n<a.length;n++)a[n].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("menu-above-header-toggle")&&(("function"==typeof astraToggleClass?(astraToggleClass(u[e],"toggle-on"),astraToggleClass):(toggleClass(u[e],"toggle-on"),toggleClass))(g[e],"toggled"),u[e].classList.contains("toggle-on")?(d[e].style.display="block",s.classList.add("above-header-toggle-on")):(d[e].style.display="",s.classList.remove("above-header-toggle-on")),document.body.classList.add("ast-above-header-nav-open"));var e=document.querySelector(".ast-above-header-navigation"),o=e.getBoundingClientRect(),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0);e.style.maxHeight=Math.abs(r-o.top)+"px"},!1),void 0!==u[r]){u[r].querySelectorAll(".ast-above-header-menu .menu-item");if(0<(e=document.querySelector("header.site-header").classList.contains("ast-menu-toggle-link")?u[r].querySelectorAll(".ast-header-break-point .ast-above-header-menu .ast-menu-toggle, .ast-header-break-point .ast-above-header-menu .menu-item-has-children > .menu-link"):u[r].querySelectorAll(".ast-above-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 c=document.querySelectorAll(".main-header-menu"),m=document.querySelectorAll(".ast-above-header-menu-items"),v=document.querySelectorAll(".main-header-menu-toggle");if(0<v.length&&0<m.length&&0==c.length)for(r=0;r<v.length;r++){var h=m[r].querySelectorAll(".ast-menu-toggle");if(0<h.length)for(i=0;i<h.length;i++)h[i].removeEventListener("click",AstraToggleSubMenu),h[i].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!=a&&a.classList.remove("toggled"),null!=o&&o.classList.remove("toggled")},!1),a.addEventListener("click",function(e){e.preventDefault(),null!=n&&n.classList.remove("toggled"),null!=o&&o.classList.remove("toggled");var t,e=document.querySelector(".ast-below-header"),e=(null!=e&&(t=document.querySelector(".ast-below-header-actual-nav"),e.classList.remove("toggle-on"),null!=t)&&(t.style.display=""),document.querySelector(".main-header-bar-navigation"));null!=e&&(e.classList.remove("toggle-on"),e.style.display="")},!1))})();