upskill-event-manager/assets/js/reveal-effect.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
3.3 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).fadin=e()}(this,function(){"use strict";var n=function(){return(n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=function(){function t(t){this.stack=t.items,this.userFunction=t.func,this.delay=t.delay}return t.prototype.pause=function(){clearInterval(this._interval)},t.prototype.start=function(){this.isDone()||(this._interval=window.setInterval(this.fire.bind(this),this.delay))},t.prototype.reset=function(){this.stack=[],this.pause()},t.prototype.fire=function(){this.check(),this.userFunction(this.stack.shift()),this.check()},t.prototype.check=function(){if(!this.stack.length)return clearInterval(this._interval)},t.prototype.isDone=function(){return this.stack.length<=0},t}(),i=function(){function t(t){this.query=t,this.toAnimate=Array.from(document.querySelectorAll(t))}return t.prototype.animateItems=function(t,e){var n=this,i=this.getItemsToAnimate();i&&new o({items:i,delay:t,func:function(t){return e?e(t):n.assignDelayAndOpacity(t)}}).start()},t.prototype.getItemsToAnimate=function(){if(!this.isDone()){var t=this.getVisibleAndHiddenItems(),e=t.visible,n=t.hidden;return this.toAnimate=n,e}},t.prototype.reset=function(){this.toAnimate=Array.from(document.querySelectorAll(this.query)),this.getVisibleAndHiddenItems().hidden.forEach(function(t){return t.style.opacity="0",t.style.transform="translate3d(0px, 100px, 0px)",t})},t.prototype.isDone=function(){return this.toAnimate.length<=0},t.prototype.assignDelayAndOpacity=function(t){if(t){var e=this.getDelay(t);Object.assign(t.style,{opacity:1}),Object.assign(t.style,{transform:"translate3d(0,0,0)"}),e&&Object.assign(t.style,{transitionDelay:e})}},t.prototype.getVisibleAndHiddenItems=function(){var i=this;return this.toAnimate.reduce(function(t,e){var n=i.shouldBeVisible(e)?"visible":"hidden";return t[n]=t[n].concat(e),t},{visible:[],hidden:[]})},t.prototype.getDelay=function(t){if(t&&t.dataset&&t.dataset.delay)return t.dataset.delay},t.prototype.shouldBeVisible=function(t){var e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||0<=e.top-n)&&"1"!==t.style.opacity},t}(),r={delay:200,selector:".fadin",noInitalScrollEvent:!1,animationFunction:void 0},s=function(){function t(t){void 0===t&&(t=r);var e=this,n=Object.assign({},r,t);this.animationService=new i(n.selector),this._detach=this.setUpEventListener("scroll",function(){e.animationService.animateItems(n.delay,n.animationFunction)}),n.noInitalScrollEvent||this.sendScroll()}return t.prototype.isDone=function(){return this.animationService.isDone()},t.prototype.detach=function(){return this._detach()},t.prototype.reset=function(){this.animationService.reset(),this.sendScroll()},t.prototype.sendScroll=function(){window.dispatchEvent(new Event("scroll"))},t.prototype.setUpEventListener=function(t,e){var n=this,i=function(){n.isDone()&&window.removeEventListener(t,i,!0),e()};return window.addEventListener(t,i.bind(this)),function(){return window.removeEventListener(t,i,!0)}},t}();return function(t,e){return new s(n({selector:t},e))}});