1(function () { 2 'use strict'; 3 4 window.addEventListener('DOMContentLoaded', ev => { 5 $ = jQuery.noConflict(); 6 7 // for (const key in JEBlocks) { 8 // if (JEBlocks.hasOwnProperty(key)) { 9 // const block = JEBlocks[key]; 10 // block.init(); 11 // } 12 // } 13 14 for (const key in JEModules) { 15 if (JEModules.hasOwnProperty(key)) { 16 const block = JEModules[key]; 17 block.init(); 18 } 19 } 20 if (undefined !== window.JECustomBlocks && window.acf) { 21 window.JECustomBlocks.forEach(b => { 22 let camelCasedName = 'JE' + b.name.split('-').map(el => el.charAt(0).toUpperCase() + el.slice(1)).join(''); 23 window.acf.addAction(`render_block_preview/type=${b.name}`, JEBlocks[camelCasedName].init); 24 }); 25 } 26 }); 27 window.onload = function () { 28 const tabButtons = document.querySelectorAll('.tabs__button'); 29 const tabPanels = document.querySelectorAll('.tabs__panel'); 30 function changeTab(selectedIndex) { 31 tabButtons.forEach((button, index) => { 32 if (index === selectedIndex) { 33 button.setAttribute('aria-selected', 'true'); 34 } else { 35 button.setAttribute('aria-selected', 'false'); 36 } 37 }); 38 tabPanels.forEach((panel, index) => { 39 if (index === selectedIndex) { 40 panel.removeAttribute('hidden'); 41 } else { 42 panel.setAttribute('hidden', 'hidden'); 43 } 44 }); 45 } 46 tabButtons.forEach((button, index) => { 47 button.addEventListener('click', () => { 48 changeTab(index); 49 }); 50 }); 51 changeTab(0); 52 }; 53 54})(); 55//# sourceMappingURL=app.js.map
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.