PageSourceSearch

https://www.participatorybudgeting.org/wp-content/plugins/powerpac…/js/min/frontend-accordion.min.js?ver=3.1.0

js participatorybudgeting.org collected 2026-10-01 11:32:59 UTC 4,225 bytes, 1 lines download raw bytes

1!function(l){l(window).on("elementor/frontend/init",function(){class e extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{accordion:".pp-advanced-accordion",item:".pp-accordion-item",title:".pp-accordion-tab-title",content:".pp-accordion-tab-content"}}}getDefaultElements(){var e=this.getSettings("selectors"),t=this.$element.find(e.accordion).first(),e=t.children(e.item);return{$accordion:t,$items:e,$title:this.collectTitles(e)}}collectTitles(e){var t=this.getSettings("selectors").title;return e.children(t).add(e.children().children(t))}prefersReducedMotion(){return window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}getToggleSpeed(){return this.prefersReducedMotion()?0:this.getElementSettings("toggle_speed")}bindEvents(){const c=this.getSettings("selectors"),r=this.getElementSettings("accordion_type"),d=()=>this.getToggleSpeed();this.eventNamespace=".ppAdvancedAccordion-"+this.getID(),this.elements.$title.each(function(){var e=l(this),t=e.closest(c.item).children(c.content);e.hasClass("pp-accordion-tab-active-default")?(e.addClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","true"),t.removeAttr("hidden"),t.slideDown(d())):(e.attr("aria-expanded","false"),t.attr("hidden",""))}),this.elements.$title.off(this.eventNamespace),this.elements.$title.on("click"+this.eventNamespace+" keydown"+this.eventNamespace,e=>{if("keydown"===e.type&&!("Enter"===e.key||" "===e.key||"Spacebar"===e.key||"Space"===e.code))return;e.preventDefault();var t=d(),e=l(e.currentTarget),a=e.closest(c.accordion),n=e.closest(c.item),i=n.children(c.content),a=a.children(c.item),o=this.collectTitles(a),s=a.children(c.content);l(document).trigger("ppe-accordion-switched",[n]),"accordion"===r?(o.removeClass("pp-accordion-tab-active-default"),s.removeClass("pp-accordion-tab-active-default"),e.hasClass("pp-accordion-tab-show")?(n.removeClass("pp-accordion-item-active"),e.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","false"),i.slideUp(t,function(){l(this).attr("hidden","")})):(a.removeClass("pp-accordion-item-active"),o.removeClass("pp-accordion-tab-show pp-accordion-tab-active").attr("aria-expanded","false"),s.slideUp(t,function(){l(this).attr("hidden","")}),e.addClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","true"),n.addClass("pp-accordion-item-active"),i.stop(!0,!1).removeAttr("hidden").slideDown(t))):e.hasClass("pp-accordion-tab-show")?(e.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","false"),n.removeClass("pp-accordion-item-active"),i.slideUp(t,function(){l(this).attr("hidden","")})):(e.addClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","true"),n.addClass("pp-accordion-item-active"),i.removeAttr("hidden").slideDown(t))}),this.elements.$title.on("keydown"+this.eventNamespace,e=>{var t,a=this.elements.$title.toArray(),n=a.indexOf(e.currentTarget);"ArrowDown"===e.key||"Down"===e.key?(e.preventDefault(),t=(n+1)%a.length,l(a[t]).focus()):"ArrowUp"===e.key||"Up"===e.key?(e.preventDefault(),t=(n-1+a.length)%a.length,l(a[t]).focus()):"Home"===e.key?(e.preventDefault(),l(a[0]).focus()):"End"===e.key&&(e.preventDefault(),l(a[a.length-1]).focus())}),this.onHashchange(),l(window).off("hashchange"+this.eventNamespace).on("hashchange"+this.eventNamespace,this.onHashchange.bind(this))}unbindEvents(){this.eventNamespace&&(l(window).off("hashchange"+this.eventNamespace),this.elements)&&this.elements.$title&&this.elements.$title.off(this.eventNamespace)}onHashchange(){var e,t=this.getSettings("selectors");let a;if(location.hash){try{a=l(location.hash+t.title)}catch(n){return}a.length&&(e=a.closest(t.item)).length&&(window.history&&window.history.replaceState&&window.history.replaceState(null,"",window.location.pathname+window.location.search),t=this.prefersReducedMotion()?0:500,l("html, body").animate({scrollTop:e.offset().top-50+"px"},t,function(){e.hasClass("pp-accordion-item-active")||a.trigger("click"),a.trigger("focus")}))}}}elementorFrontend.elementsHandler.attachHandler("pp-advanced-accordion",e),elementorFrontend.elementsHandler.attachHandler("pp-faq",e)})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.