PluginProbe
Qi Blocks / 1.1.1
Qi Blocks v1.1.1
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.1.1, at assets/dist/faq-script.js

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