PluginProbe
Getwid – Gutenberg Blocks / 2.0.14
Getwid – Gutenberg Blocks v2.0.14
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 / accordion / frontend.js

frontend.js in Getwid – Gutenberg Blocks 2.0.14, at assets/blocks/accordion/frontend.js

4 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([,function(t,e){/*!
2 * getwid-accordion
3 */
4 !function(t){t(document).ready(function(e){t(document.body).on("post-load",function(t){n()});var n=function(){var e=t(".wp-block-getwid-accordion:not(.getwid-init)"),n=0;e.each(function(e,o){t(this).addClass("getwid-init"),n="none"!=t(this).data("active-element")&&parseInt(t(this).data("active-element"),10),t(o).accordion({icons:!1,animate:!1,collapsible:!0,active:n,heightStyle:"content",create:function(t,e){},activate:function(e,n){if(n.newPanel.length){var o=n.newPanel.find(".wp-block-getwid-accordion__content").outerHeight(!0);o&&t(n.newPanel).animate({height:o},{queue:!1,duration:500,complete:function(){t(this).css("height","")}})}if(n.oldPanel.length){var i=n.oldPanel.find(".wp-block-getwid-accordion__content").outerHeight(!0);i&&(t(n.oldPanel).css("height",i),t(n.oldPanel).animate({height:0},{queue:!1,duration:500,complete:function(){t(this).css("height","")}}))}}})})};n()})}(jQuery)}]);