File manager - Edit - /home/monara/public_html/Hotel_Sapphire/wp-content/plugins/gs-logo-slider/assets/js/gs-logo.min.js
Back
jQuery(function(t){"use strict";var i="rtl"==t("html").attr("dir");function e(t,i){var e;return function(){e&&clearTimeout(e),e=setTimeout(function(){t(),e=null},i||100)}}function s(e){e.length&&("gs_logo_carousel"in t.fn||function(){function e(t){return this.$widget=t,this.$widgetContainer=t.closest(".gs_logo_area"),this.setup(),this.run(),this.hover(),this.ticker(),this}e.prototype.maybeSetupTickerOptions=function(){return this.config.ticker&&(this.config.slidesPerGroup=1,this.config.loop=!0,this.config.loopAdditionalSlides=10,this.config.freeMode=!0,this.config.freeModeMomentumRatio=.1,this.config.freeModeMomentumVelocityRatio=.1,this.config.freeModeMomentumBounce=!1,this.config.autoplay.delay=0,this.config.autoplay.disableOnInteraction=!1),this},e.prototype.getOptions=function(){return this.$widget.data("carousel-config")||{}},e.prototype.getDefaults=function(){return{slidesPerView:4,spaceBetween:0,loop:!0,speed:600,autoplay:{delay:3e3,disableOnInteraction:!1},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0}}},e.prototype.setup=function(){return this.config=t.extend({},this.getDefaults(),this.getOptions()),this.config.speed<100&&(this.config.speed=100),this.config.autoplay.delay=this.config.autoplayDelay,this.config.isAutoplay||(this.config.autoplay=!1),this.config.slidesPerView&&"auto"===this.config.slidesPerView||this.breakpointsSetup(),this.config.isAutoplay&&this.config.reverseDirection&&(this.config.autoplay.reverseDirection=!0),this.config.pagination.dynamicBullets=this.config.dynamic_dots,this.maybeSetupTickerOptions(),this},e.prototype.breakpointsSetup=function(){var t=this.config.mobileLogos,i=this.config.desktopLogos,e=this.config.tabletLogos,s=this.config.slidesPerGroup;this.config.breakpoints={0:{slidesPerView:t,slidesPerGroup:s>t?t:s},768:{slidesPerView:e,slidesPerGroup:s>e?e:s},1024:{slidesPerView:i,slidesPerGroup:s>i?i:s}}},e.prototype.fixVertical=function(){if("vertical"!==this.config.direction)return this;var i=this;function e(){i.$widget.addClass("gs-swiper--test-class");var t=i.$widget.find(".swiper-slide").first(),e=t.outerHeight(!0),s=t.height(),o=i.config.desktopLogos;window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches?o=i.config.tabletLogos:window.matchMedia("(max-width: 767px)").matches&&(o=i.config.mobileLogos),i.$widget.find(".swiper-slide").height(s),i.$widget.find(".swiper-wrapper").css("height",e*o+"px"),i.$widget.removeClass("gs-swiper--test-class")}return this.config.on={init:function(){setInterval(function(){e(),this.update()}.bind(this),50),t(".gs_logo_area").imagesLoaded(function(){e()})},resize:function(){e()}},this},e.prototype.setupDots=function(){return this.config.dots?(this.$widget.closest(".gs_logo_area").addClass("carousel_has--dots").end().append('<div class="swiper-pagination"></div>'),this):this},e.prototype.setupNavs=function(){if(!this.config.navs)return this;var t="carousel_has--navs carousel_nav_pos--"+this.config.navs_pos;return this.$widget.closest(".gs_logo_area").addClass(t).append('<div class="swiper-button-prev"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" class="svg-inline--fa fa-chevron-left fa-w-10 fa-3x"><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" class=""></path></svg></div><div class="swiper-button-next"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" class="svg-inline--fa fa-chevron-right fa-w-10 fa-3x"><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" class=""></path></svg></div>'),this},e.prototype.run=function(){return this.$widget.closest(".gs_logo_area--inner").addClass("gs_logo_overflow--hidden"),this.$widget.addClass("swiper-container").children().addClass("swiper-slide").wrapAll("<div class='swiper-wrapper' />"),this.fixVertical().setupNavs().setupDots(),this.swiper=new GS_Swiper(this.$widget[0],this.config),t(window).on("load",function(){this.swiper.update(),setTimeout(function(){this.swiper.update()}.bind(this),200)}.bind(this)),this.navigation(),this},e.prototype.navigation=function(){var t=this;this.$widgetContainer.find(".swiper-button-next").on("click",function(){i?t.swiper.slidePrev():t.swiper.slideNext()}),this.$widgetContainer.find(".swiper-button-prev").on("click",function(){i?t.swiper.slideNext():t.swiper.slidePrev()})},e.prototype.hover=function(){if(!this.config.pauseOnHover)return this;if(!this.config.isAutoplay)return this;var t=this;return this.$widget.hover(function(){t.swiper.autoplay.stop()},function(){t.swiper.autoplay.start()}),this},e.prototype.ticker=function(){if(this.config.ticker)return this.swiper.on("touchEnd",function(){var t=this.slidesGrid[this.activeIndex]-Math.abs(this.translate);if(t>0){var i=this.originalParams.speed/this.slidesSizesGrid[this.activeIndex]*t;this.slideToClosest(i)}this.autoplay.stop(),this.autoplay.start()}),this},t.fn.gs_logo_carousel=function(){return new e(t(this).first())}}(),e.each(function(){t(this).gs_logo_carousel()}))}function o(i,e){i.each(function(){var i=t(this).find(".gs_logo_single--wrapper");i.length&&(e.center_item&&!i.find(".gs_logo_single--inner").length&&i.each(function(){t(this).find(".gs_logo_single").addClass("gs_logo-single--flex-center").children().wrapAll("<div class='gs_logo_single--inner' />")}),e.apply_height_to_child&&(i=t(this).find(".gs_logo_single--wrapper .gs_logo_single")),i.css("height","auto").height(Math.max.apply(null,i.map(function(){return t(this).height()}).get())))})}function n(i,s){s=t.extend({},{center_item:!0,apply_height_to_child:!1},s);o(i,s),t(window).on("resize",e(function(){o(i,s)})),t(window).on("load",function(){o(i,s)}),i.imagesLoaded(function(){o(i,s)})}function r(t){var i;n(t.find(".gs_logo_fix_height_and_center"),{center_item:!0,apply_height_to_child:!1}),n(t.find(".gs_logo_ticker_carousel"),{center_item:!0,apply_height_to_child:!0}),n(t.find(".gs_logo_fix_height_only"),{center_item:!1,apply_height_to_child:!1}),s(t.find(".gs_carousel_swiper")),(i=t.find(".gs_logo--tooltip")).length&&tippy(i.toArray(),{animation:"scale-subtle",content:function(t){var i=t.getAttribute("title");return t.removeAttribute("title"),i},onShow(t){const i=t.reference.className.split(/\s+/);let e="top",s="#ff5f6d",o="#ffc371",n="#fff";i.forEach(t=>{t.startsWith("tt-placement-")?e=t.replace("tt-placement-",""):t.startsWith("tt-bgcolor-one-")?s=decodeURIComponent(t.replace("tt-bgcolor-one-","")):t.startsWith("tt-bgcolor-two-")?o=decodeURIComponent(t.replace("tt-bgcolor-two-","")):t.startsWith("tt-textcolor-")&&(n=decodeURIComponent(t.replace("tt-textcolor-","")))}),t.setProps({placement:e});const r=t.popper.querySelector(".tippy-box"),a=t.popper.querySelector(".tippy-arrow");r.style.background=`linear-gradient(to right, ${s}, ${o})`,r.style.color=n,a.style.color=s}}),t.addClass("gs_logo__loaded")}window.gs_logo_init=function(){var i=t(".gs_logo_area");i.length&&i.each(function(){t(this).parent().is(":visible")&&(t(this).data("et-js-processed")||t(this).hasClass("gs_logo__loaded")||(t(this).data("et-js-processed",1),r(t(this)),e(function(){jQuery(window).trigger("resize")},30)()))})},gs_logo_init(),t(window).on("gslogo:scripts:reprocess",function(){gs_logo_init()}),t(window).on("load",function(){gs_logo_init()}),t("body").on("click",function(){gs_logo_init()})});
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings