File Editor
Directories:
.. (Back)
admin
app
commerce
v2
Files:
accordion.js
accordion.min.js
move-tickets-dialog.js
move-tickets-dialog.min.js
rsvp-block.js
rsvp-block.min.js
rsvp.js
rsvp.min.js
ticket-details.js
ticket-details.min.js
tickets-attendees.js
tickets-attendees.min.js
tickets-block.js
tickets-block.min.js
tickets-provider.js
tickets-provider.min.js
tickets-registration-page.js
tickets-registration-page.min.js
tickets.js
tickets.min.js
tpp-admin.js
tpp-admin.min.js
Create New File
Create
Edit File: accordion.min.js
/** * This JS file was auto-generated via Terser. * * Contributors should avoid editing this file, but instead edit the associated * non minified file file. For more information, check out our engineering docs * on how we handle JS minification in our engineering docs. * * @see: https://evnt.is/dev-docs-minification */ !function(){"use strict";var topIndex=0;window.MTAccordion=function(options,callback){if(void 0===options.target)return!1;var accordion=document.querySelector(options.target);if(accordion){var forEach=function(array,callback,scope){for(var i=0,imax=array.length;i<imax;i++)callback.call(scope,i,array[i])};accordion.setAttribute("role","tablist");var accordionContent=accordion.getElementsByClassName("accordion-content"),accordionHeader=accordion.getElementsByClassName("accordion-header");topIndex++,forEach(accordionHeader,(function(index,value){var head=value;index++,"tab"!==head.getAttribute("role")&&(head.setAttribute("id","tab"+topIndex+"-"+index),head.setAttribute("aria-selected","false"),head.setAttribute("aria-expanded","false"),head.setAttribute("aria-controls","panel"+topIndex+"-"+index),head.setAttribute("role","tab"),head.addEventListener("click",(function accordionHandle(event){var nextPanel=value.nextElementSibling,nextPanelLabel=nextPanel.getElementsByClassName("accordion-label")[0];value.classList.toggle("is-active"),nextPanel.classList.toggle("is-active"),nextPanelLabel.setAttribute("tabindex",-1),nextPanelLabel.focus(),nextPanel.classList.contains("is-active")?(head.setAttribute("aria-selected","true"),head.setAttribute("aria-expanded","true"),nextPanel.setAttribute("aria-hidden","false")):(head.setAttribute("aria-selected","false"),head.setAttribute("aria-expanded","false"),nextPanel.setAttribute("aria-hidden","true"));event.preventDefault()})))})),forEach(accordionContent,(function(index,value){var content=value;index++,"tabpanel"!==content.getAttribute("role")&&(content.setAttribute("id","panel"+topIndex+"-"+index),content.setAttribute("aria-hidden","true"),content.setAttribute("aria-labelledby","tab"+topIndex+"-"+index),content.setAttribute("role","tabpanel"))})),"function"==typeof callback&&callback.call()}},document.onreadystatechange=function(){"interactive"===document.readyState&&window.MTAccordion({target:".accordion"})}}();
Save Changes
Rename File
Rename