PluginProbe
Getwid – Gutenberg Blocks / 3.0.1
Getwid – Gutenberg Blocks v3.0.1
3.0.2 3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / assets / blocks / images-slider / view.js

view.js in Getwid – Gutenberg Blocks 3.0.1, at assets/blocks/images-slider/view.js

1 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const e={n:o=>{const s=o&&o.__esModule?()=>o.default:()=>o;return e.d(s,{a:s}),s},d:(o,s)=>{if(Array.isArray(s))for(var t=0;t<s.length;){var i=s[t++],a=s[t++];e.o(o,i)?0===a&&t++:0===a?Object.defineProperty(o,i,{enumerable:!0,value:s[t++]}):Object.defineProperty(o,i,{enumerable:!0,get:a})}else for(var i in s)e.o(s,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:s[i]})},o:(e,o)=>Object.hasOwn(e,o)},o=window.jQuery;var s=e.n(o);const t="wp-block-getwid-images-slider";function i(e,o){return!0===e.data(o)}function a(e,o,s=1){return parseInt(String(e.data(o)),10)||s}function d(){const e=s()(`.${t}:not(.getwid-init) .${t}__wrapper`);e.length&&void 0!==e.imagesLoaded&&e.each(function(){const e=s()(this);e.closest(`.${t}`).addClass("getwid-init"),e.imagesLoaded?.().done(e=>{const o=s()(e.elements[0]),t="fade"===o.data("effect"),d=o.data("slides-show")&&"slide"===o.data("effect")?a(o,"slides-show"):1,n=window;o.slick?.({arrows:"none"!==o.data("arrows"),dots:"none"!==o.data("dots"),rows:0,slidesToShow:d,slidesToScroll:a(o,"slides-scroll"),autoplay:i(o,"autoplay"),autoplaySpeed:a(o,"autoplay-speed",2e3),fade:t,speed:a(o,"animation-speed"),infinite:i(o,"infinite"),centerMode:i(o,"center-mode"),variableWidth:i(o,"variable-width"),pauseOnHover:i(o,"pause-hover"),adaptiveHeight:!0,rtl:!!n.Getwid?.isRTL,responsive:[{breakpoint:991,settings:{slidesToShow:a(o,"slides-show-laptop"),slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:a(o,"slides-show-tablet"),slidesToScroll:1}},{breakpoint:468,settings:{slidesToShow:a(o,"slides-show-mobile"),slidesToScroll:1}}]})})})}s()(document).ready(()=>{s()(document.body).on("post-load",d),d()})})();