PluginProbe
Qi Blocks / 1.0.2
Qi Blocks v1.0.2
1.5.3 1.5.2 1.5.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 45 releases
qi-blocks / assets / dist / faq-script.js

faq-script.js in Qi Blocks 1.0.2, at assets/dist/faq-script.js

1 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(){"use strict";var t={5311:function(t){t.exports=jQuery}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t=n(5311),e=n.n(t);document.addEventListener("DOMContentLoaded",(function(){o.init()}));const o={init:function(){this.holder=document.querySelectorAll(".qi-block-faq.qodef-behavior--accordion"),this.holder.length&&[...this.holder].map((t=>{o.initItem(t)}))},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:function(t,n){if(!(t=o.getRealCurrentItem(t)))return;const i=e()(t);if(t.classList.contains("qodef-behavior--accordion")){let e=0;t.classList.contains("qodef-closed")&&(e=!1),t.classList.contains("qodef--init")&&n&&i.accordion("destroy"),o.initiate(t,e)}else t.classList.contains("qodef-behavior--none")&&t.querySelector(".ui-accordion-content")&&i.accordion("destroy")},initiate:function(t,n){e()(t).accordion({animate:"swing",collapsible:!0,active:n,icons:"",heightStyle:"content"}),t.classList.add("qodef--init")}}}()}();