PageSourceSearch

https://sparkylinux.org/wp-content/cache/wpo-minify/1790583376/assets/wpo-minify-footer-c7881c30.min.js

js sparkylinux.org collected 2026-10-02 05:00:18 UTC 23,615 bytes, 94 lines download raw bytes

1
2function acp_createCookie(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString()}else{expires=""}
3document.cookie=encodeURIComponent(name)+"="+encodeURIComponent(value)+expires+"; path=/; SameSite=Lax"}
4function acp_readCookie(name){var nameEQ=encodeURIComponent(name)+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' ')
5c=c.substring(1,c.length);if(c.indexOf(nameEQ)===0)
6return decodeURIComponent(c.substring(nameEQ.length,c.length));}
7return null}
8function acp_eraseCookie(name){acp_createCookie(name,"",-1)}
9jQuery(document).ready(function($){setTimeout(function(){$('#acwp-toolbar-btn-wrap').addClass('show')},250);const noCookies=acwp_attr.nocookies;const noLineHeight=acwp_attr.fontsizer_nolineheight;const customtags_option=acwp_attr.fontsizer_customtags;const customTags=customtags_option!==''?customtags_option:'p,h1,h2,h3,h4,h5,h6,label';const customexlcude_option=acwp_attr.fontsize_excludetags;const IncreseFont=(toggle)=>{let newSize=acwp_attr.fontsizer_max!=''?parseFloat(acwp_attr.fontsizer_max)/100:1.6;let incCheckbox=document.getElementById('acwp-toggler-incfont');let decCheckbox=document.getElementById('acwp-toggler-decfont');if(decCheckbox.checked==!0)
10decCheckbox.checked=!1;if(toggle){jQuery('#acwp-toolbar').addClass('incresed');jQuery(customTags).not(customexlcude_option).each(function(){let fontSize=jQuery(this).css('font-size');if(!jQuery(this).data('acwp-fontsize'))
11jQuery(this).attr('data-acwp-fontsize',fontSize.substring(0,fontSize.length-2));jQuery(this).css('font-size',parseInt(fontSize)*newSize+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).css('line-height');if(!jQuery(this).data('acwp-lineheight'))
12jQuery(this).attr('data-acwp-lineheight',lineHeight.substring(0,lineHeight.length-2));jQuery(this).css('line-height','normal')}})}else{if(incCheckbox.checked!==!0){jQuery('#acwp-toolbar').addClass('incresed');jQuery(customTags).not(customexlcude_option).each(function(){let fontSize=jQuery(this).css('font-size');if(!jQuery(this).data('acwp-fontsize'))
13jQuery(this).attr('data-acwp-fontsize',fontSize.substring(0,fontSize.length-2));jQuery(this).css('font-size',parseInt(fontSize)*newSize+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).css('line-height');if(!jQuery(this).data('acwp-lineheight'))
14jQuery(this).attr('data-acwp-lineheight',lineHeight.substring(0,lineHeight.length-2));jQuery(this).css('line-height','normal')}})}else{jQuery('#acwp-toolbar').removeClass('incresed');jQuery(customTags).not(customexlcude_option).each(function(){let fontSize=jQuery(this).data('acwp-fontsize');jQuery(this).css('font-size',parseInt(fontSize)+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).data('acwp-lineheight');jQuery(this).css('line-height',parseInt(lineHeight)+'px')}})}}}
15const DecreaseFont=(toggle)=>{let newSize=(acwp_attr.fontsizer_min!=='')?parseFloat(acwp_attr.fontsizer_min)/100:0.8;let incfontCheckbox=document.getElementById('acwp-toggler-incfont');
15if(incfontCheckbox.checked==!0){incfontCheckbox.checked=!1}
16if(toggle){jQuery(customTags).each(function(){let fontSize=jQuery(this).css('font-size');if(!jQuery(this).data('acwp-fontsize'))
17jQuery(this).attr('data-acwp-fontsize',fontSize.substring(0,fontSize.length-2));jQuery(this).css('font-size',parseInt(fontSize)*newSize+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).css('line-height');if(!jQuery(this).data('acwp-lineheight'))
18jQuery(this).attr('data-acwp-lineheight',lineHeight.substring(0,lineHeight.length-2));jQuery(this).css('line-height','normal')}})}else{var checkbox=document.getElementById('acwp-toggler-decfont');if(checkbox.checked!==!0){jQuery(customTags).each(function(){let fontSize=jQuery(this).css('font-size');if(!jQuery(this).data('acwp-fontsize'))
19jQuery(this).attr('data-acwp-fontsize',fontSize.substring(0,fontSize.length-2));jQuery(this).css('font-size',parseInt(fontSize)*newSize+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).css('line-height');if(!jQuery(this).data('acwp-lineheight'))
20jQuery(this).attr('data-acwp-lineheight',lineHeight.substring(0,lineHeight.length-2));jQuery(this).css('line-height','normal')}})}else{jQuery(customTags).each(function(){let fontSize=jQuery(this).data('acwp-fontsize');jQuery(this).css('font-size',parseInt(fontSize)+'px');if(noLineHeight!=='yes'){let lineHeight=jQuery(this).data('acwp-lineheight');jQuery(this).css('line-height',parseInt(lineHeight)+'px')}})}}}
21const ToggleContrast=(toggle)=>{var checkbox=document.getElementById('acwp-toggler-contrast');var exclude=acwp_attr.contrast_exclude;if(toggle){$('body').addClass('acwp-contrast');if($('body').hasClass('acwp-contrast-js')){jQuery('body *').not(exclude).each(function(){if(this.style.backgroundImage!='')
22jQuery(this).attr('data-acwp-bgimage',this.style.backgroundImage);this.style.backgroundImage='none'});jQuery('body *').not(exclude).each(function(){if(this.style.backgroundColor!='')
23jQuery(this).attr('data-acwp-bgcolor',this.style.backgroundColor);this.style.backgroundColor='black'});jQuery('body *').not(exclude).each(function(){if(this.tagName=='A'||this.tagName=='BUTTON'||this.tagName=='LABEL'){if(this.style.color!='')
24jQuery(this).not(exclude).attr('data-acwp-lnkcolor',this.style.color);this.style.color='yellow'}else{if(this.style.color!='')
25jQuery(this).not(exclude).attr('data-acwp-txtcolor',this.style.color);this.style.color='white'}})}}else{if(checkbox.checked!==!0&&!$('body').hasClass('acwp-contrast')){$('body').addClass('acwp-contrast');if($('body').hasClass('acwp-contrast-js')){jQuery('body *').not(exclude).each(function(){if(this.style.backgroundImage!='')
26jQuery(this).attr('data-acwp-bgimage',this.style.backgroundImage);this.style.backgroundImage='none'});jQuery('body *').not(exclude).each(function(){if(this.style.backgroundColor!='')
27jQuery(this).attr('data-acwp-bgcolor',this.style.backgroundColor);this.style.backgroundColor='black'});jQuery('body *').not(exclude).each(function(){if(this.tagName=='A'||this.tagName=='BUTTON'||this.tagName=='LABEL'){if(this.style.color!='')
28jQuery(this).not(exclude).attr('data-acwp-lnkcolor',this.style.color);this.style.color='yellow'}else{if(this.style.color!='')
29jQuery(this).not(exclude).attr('data-acwp-txtcolor',this.style.color);this.style.color='white'}})}}else{jQuery('body *').not(exclude).each(function(){if(this.style.backgroundImage!='')
30this.style.backgroundImage=''});jQuery('body [data-acwp-bgimage]').not(exclude).each(function(){let bg=jQuery(this).attr('data-acwp-bgimage');if(bg!='')
31this.style.backgroundImage=bg});jQuery('body *').not(exclude).each(function(){if(this.style.backgroundColor!='')
32this.style.backgroundColor=''});jQuery('body [data-acwp-bgcolor]').not(exclude).each(function(){let bg=jQuery(this).attr('data-acwp-bgcolor');if(bg!='')
33this.style.backgroundColor=bg});jQuery('body *').not(exclude).each(function(){if(this.tagName=='a'||this.tagName=='button'||this.tagName=='label'){let clr=jQuery(this).not(exclude).attr('data-acwp-lnkcolor');if(clr!='')
34this.style.color=clr;if(this.style.color!='')
35this.style.color=''}else{let clr=jQuery(this).not(exclude).attr('data-acwp-txtcolor');if(this.style.color!='')
36this.style.color='';if(clr&&clr!='')
37this.style.color=clr}});document.body.classList.remove('acwp-contrast')}}}
38if(noCookies!=='yes'){const stored_keyboard=acp_readCookie('keyboard');const stored_animations=acp_readCookie('animations');const stored_contrast=acp_readCookie('contrast');const stored_incfont=acp_readCookie('incfont');const stored_decfont=acp_readCookie('decfont');const stored_readable=acp_readCookie('readable');const stored_marktitles=acp_readCookie('marktitles');const stored_underline=acp_readCookie('underline');if(stored_keyboard==='yes'){var checkbox=document.getElementById('acwp-toggler-keyboard');checkbox.checked=!0;$('body').addClass('acwp-keyboard')}
39if(stored_readable==='yes'){var checkbox=document.getElementById('acwp-toggler-readable');checkbox.checked=!0;$('body').addClass('acwp-readable')}
40if(stored_marktitles==='yes'){var checkbox=document.getElementById('acwp-toggler-marktitles');checkbox.checked=!0;$('body').addClass('acwp-marktitles')}
41if(stored_underline==='yes'){var checkbox=document.getElementById('acwp-toggler-underline');checkbox.checked=!0;$('body').addClass('acwp-underline')}
42if(stored_animations==='yes'){var checkbox=document.getElementById('acwp-toggler-animations');checkbox.checked=!0;$('body').addClass('acwp-animations')}
43if(stored_incfont==='yes'){var checkbox=document.getElementById('acwp-toggler-incfont');checkbox.checked=!0;$('body').addClass('acwp-incfont');IncreseFont(!0)}
44if(stored_decfont==='yes'){var checkbox=document.getElementById('acwp-toggler-decfont');checkbox.checked=!0;$('body').addClass('acwp-decfont');DecreaseFont(!0)}
45if(stored_contrast==='yes'){var checkbox=document.getElementById('acwp-toggler-contrast');checkbox.checked=!0;ToggleContrast(!0)}}
46$('.acwp-toggler label').each(function(){$(this).click(function(e){if(e.target.tagName==='LABEL'){const name=$(this).data('name');if(name!=='contrast'){var checkbox=document.getElementById('acwp-toggler-'+name);if(checkbox.checked!==!0&&!$('body').hasClass('acwp-'+name)){$('body').addClass('acwp-'+name)}else{$('body').removeClass('acwp-'+name)}
47if(name==='incfont'){IncreseFont()}else if(name==='decfont'){DecreaseFont()}}else if(name==='contrast'){ToggleContrast()}
48if(noCookies!=='yes'){const itemCookie=acp_readCookie(name);if(itemCookie)
49acp_eraseCookie(name);else acp_createCookie(name,'yes',1)}}})});jQuery("#acwp-toolbar .acwp-toggler label").keypress(function(event){if(event.which==13){event.preventDefault();jQuery(this).click()}});if(acwp_attr.no_btn_drage!=='yes'){jQuery("#acwp-toolbar-btn-wrap").on('mousedown',function(e){e.preventDefault();window.my_dragging={};my_dragging.pageX0=e.pageX;my_dragging.pageY0=e.pageY;my_dragging.elem=this;my_dragging.offset0=jQuery(this).offset();function handle_dragging(e){var top=my_dragging.offset0.top+(e.pageY-my_dragging.pageY0);$(my_dragging.elem).offset({top:top})}
50function handle_mouseup(e){jQuery('body').off('mousemove',handle_dragging).off('mouseup',handle_mouseup)}
51jQuery('body').on('mouseup',handle_mouseup).on('mousemove',handle_dragging)})}
52$('#acwp-toolbar-btn').click(function(){$('#acwp-toolbar-btn-wrap').removeClass('show');$('.acwp-toolbar').addClass('acwp-toolbar-active');setTimeout(function(){$('.acwp-toolbar').addClass('acwp-toolbar-show')},100)});$('#acwp-close-toolbar').click(function(){$('#acwp-toolbar-btn-wrap').addClass('show');$('.acwp-toolbar').removeClass('acwp-toolbar-show');setTimeout(function(){$('.acwp-toolbar').removeClass('acwp-toolbar-active')},500)})});
53
54
55
56function sendDataAccessibleWP(){const eventData={events:[{"event":"Accessibility-Toolbar-click","content":"user click Accessibility Toolbar button","siteUrl":AccessibleWPData.siteUrl,}]};const jsonData=JSON.stringify(eventData);fetch('https://api.userway.org/api/abn/events',{method:'POST',headers:{'Content-Type':'application/json',},body:jsonData,}).then(response=>{if(!response.ok){throw new Error('An error occurred while executing the request: ${response.statusText}')}
57return response.json()}).then(data=>{console.log('Response from the server:',data)}).catch(error=>{console.error('An error has occurred:',error.message)})}
58document.addEventListener('DOMContentLoaded',(event)=>{const wpButton=document.getElementById('acwp-toolbar-btn');if(wpButton){wpButton.addEventListener('click',sendDataAccessibleWP)}else{console.error('Button with ID "plugin-button-notice" not found.')}});function sendDataPageLoad(){const eventData={events:[{"event":"Accessibility-Page-load","content":"Page load with AccessibleWP widget","siteUrl":AccessibleWPData.siteUrl,}]};const jsonData=JSON.stringify(eventData);
58fetch('https://api.userway.org/api/abn/events',{method:'POST',headers:{'Content-Type':'application/json',},body:jsonData,}).then(response=>{if(!response.ok){throw new Error(`An error occurred while executing the request: ${response.statusText}`)}
59return response.json()}).then(data=>{console.log('Response from the server:',data)}).catch(error=>{console.error('An error has occurred:',error.message)})}
60function checkFirstLoadAndSendData(){if(!sessionStorage.getItem('dataSent')){sendDataPageLoad();sessionStorage.setItem('dataSent','true')}}
61document.addEventListener('DOMContentLoaded',(event)=>{checkFirstLoadAndSendData()});
62
63
64
65(function(){'use strict';function init(){document.addEventListener('click',function(e){var button=e.target.closest?e.target.closest('.wpedon-stripe-button'):null;if(!button)return;e.preventDefault();e.stopPropagation();var form=button.closest('form');var message=form?form.querySelector('.wpedon-stripe-message'):null;if(button.classList.contains('processing'))return!1;button.classList.add('processing');if(message)message.innerHTML='';function setMessage(html){if(message)message.innerHTML=html}
66function failHandler(){setMessage('<span class="stripe-error">An unexpected error occurred. Please try again.</span>');button.classList.remove('processing')}
67var formSerialized=form?new URLSearchParams(new FormData(form)).toString():'';var body=new URLSearchParams({action:'wpedon_stripe_checkout_session',nonce:wpedon.nonce,data:formSerialized,location:window.location.href});fetch(wpedon.ajaxUrl,{method:'POST',credentials:'same-origin',headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','Accept':'application/json, text/javascript, */*; q=0.01','X-Requested-With':'XMLHttpRequest'},body:body.toString()}).then(function(resp){if(!resp.ok){throw new Error('HTTP '+resp.status)}
68return resp.json()}).then(function(response){if(response.success){if(wpedon.opens=='1'){try{var stripe=Stripe(response.data.stripeKey,{stripeAccount:response.data.accountId});stripe.redirectToCheckout({sessionId:response.data.sessionId})}catch(error){setMessage('<span class="stripe-error">'+error+'</span>');button.classList.remove('processing')}}else{button.classList.remove('processing');var siteUrl=location.protocol+'//'+location.host+location.pathname;var params=new URLSearchParams(location.search);params.delete('wpedon_stripe_success');params=params.toString();var url=siteUrl+'?'+new URLSearchParams({'wpedon-stripe-checkout-redirect':1,'sk':response.data.stripeKey,'ai':response.data.accountId,'si':response.data.sessionId,'rf':siteUrl+(params.length?'?'+params:'')});window.open(url,'_blank').focus()}}else{setMessage('<span class="stripe-error">'+response.data.message+'</span>');button.classList.remove('processing')}}).catch(failHandler);return!1})}
69if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}})();
70
71
72
73var hybridmag=hybridmag||{};if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;do{if(el.matches(s)){return el}
74el=el.parentElement||el.parentNode}while(el!==null&&el.nodeType===1);return null}}
75if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=function(callback,thisArg){var i;var len=this.length;thisArg=thisArg||window;for(i=0;i<len;i++){callback.call(thisArg,this[i],i,this)}}}
76hybridmag.menuAccessKeyboard={init:function(){this.focusMenuWithChildren()},focusMenuWithChildren:function(){var links,i,len,menus=document.querySelectorAll('.hm-menu');if(!menus.length){return!1}
77menus.forEach(function(menu){links=menu.getElementsByTagName('a');for(i=0,len=links.length;i<len;i++){links[i].addEventListener('focus',toggleFocus,!0);links[i].addEventListener('blur',toggleFocus,!0)}});function toggleFocus(){var self=this;while(-1===self.className.indexOf('hm-menu')){if('li'===self.tagName.toLowerCase()){if(-1!==self.className.indexOf('focus')){self.className=self.className.replace(' focus','')}else{self.className+=' focus'}}
78self=self.parentElement}}}};hybridmag.searchToggle={init:function(){this.addListener()},toggle:function(element){var searchBoxContainer=element.parentElement,header=document.getElementById('masthead'),searchBoxContainer=searchBoxContainer.querySelector('.hm-search-box'),inputField=searchBoxContainer.querySelector('input.search-field'),srText=element.querySelector('.screen-reader-text'),expanded=element.getAttribute('aria-expanded')==='true';var text=expanded?element.dataset.openText:element.dataset.closeText;element.setAttribute('aria-expanded',!expanded);searchBoxContainer.setAttribute('aria-expanded',!expanded);element.setAttribute('aria-label',text);srText.textContent=text;header.classList.toggle('hide-header-search');searchBoxContainer.classList.toggle('active');if(searchBoxContainer.classList.contains('active')){inputField.focus()}},addListener:function(){var searchButtons=document.querySelectorAll('.hm-search-toggle');
78if(!searchButtons.length){return!1}
79var self=this;searchButtons.forEach(function(button){button.addEventListener('click',function(){self.toggle(this)})})}};hybridmag.slideOutSidebar={init:function(){this.addListeners()},createOverlay:function(maskId){var mask=document.createElement('div');mask.setAttribute('class','hm-overlay-mask');mask.setAttribute('id',maskId);document.body.appendChild(mask)},removeOverlay:function(maskId){var mask=document.getElementById(maskId);mask.parentNode.removeChild(mask)},addListeners:function(){var _doc=document,body=_doc.body,slideOutToggles=_doc.querySelectorAll('.hm-slideout-toggle');if(!slideOutToggles.length){return!1}
80var slideOutSidebar=_doc.getElementById('hm-slideout-sidebar');if(!slideOutSidebar){return!1}
81var closeBtn=slideOutSidebar.querySelector('.hm-slideout-toggle'),header=_doc.getElementById('masthead'),openBtn=header.querySelector('.hm-slideout-toggle'),self=this;function handleSidebarKeydown(e){var focusableElements=slideOutSidebar.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');var firstFocusable=focusableElements[0];var lastFocusable=focusableElements[focusableElements.length-1];if(e.key==='Tab'){if(e.shiftKey&&document.activeElement===firstFocusable){e.preventDefault();lastFocusable.focus()}else if(!e.shiftKey&&document.activeElement===lastFocusable){e.preventDefault();firstFocusaslideOutToggles.forEach(function(button){button.addEventListener('click',function(){if(body.classList.contains('slideout-opened')){body.classList.remove('slideout-opened');openBtn.focus();self.removeOverlay('hm-slideout-mask')}else{body.classList.add('slideout-opened');closeBtn.focus();self.createOverlay('hm-slideout-mask')}})});ble.focus()}}}
82slideOutSidebar.addEventListener('keydown',handleSidebarKeydown);slideOutToggles.forEach(function(button){button.addEventListener('click',function(){if(body.classList.contains('slideout-opened')){body.classList.remove('slideout-opened');openBtn.focus();self.removeOverlay('hm-slideout-mask')}else{body.classList.add('slideout-opened');closeBtn.focus();self.createOverlay('hm-slideout-mask')}})});document.addEventListener('click',function(e){if(e.target&&e.target.className==='hm-overlay-mask'){var maskId=e.target.id;body.classList.remove('slideout-opened');slideOutSidebar.setAttribute('aria-expanded',!1);openBtn.setAttribute('aria-expanded',!1);self.removeOverlay(maskId)}})}};hybridmag.mobileMenu={init:function(){this.addListeners()},createOverlay:function(maskId){var mask=document.createElement('div');mask.setAttribute('class','hm-overlay-mask');mask.setAttribute('id',maskId);document.body.appendChild(mask)},removeOverlay:function(maskId){var mask=document.getElementById(maskId);mask.parentNode.removeChild(mask)},addListeners:function(){var _doc=document,menuToggleButtons=_doc.querySelectorAll('.hm-mobile-menu-toggle'),body=_doc.body,mobileMenuSidebar=_doc.getElementById('hm-mobile-sidebar');if(!mobileMenuSidebar){return!1}
83var mobileMenuSidebarCloseBtn=mobileMenuSidebar.querySelector('.hm-mobile-menu-toggle'),header=_doc.getElementById('masthead'),mobileMenuSidebarOpenBtn=header.querySelector('.hm-mobile-menu-toggle'),self=this;menuToggleButtons.forEach(function(button){button.addEventListener('click',function(){if(body.classList.contains('mobile-menu-opened')){body.classList.remove('mobile-menu-opened');mobileMenuSidebarOpenBtn.focus();self.removeOverlay('hm-mobile-menu-mask')}else{body.classList.add('mobile-menu-opened');mobileMenuSidebarCloseBtn.focus();self.createOverlay('hm-mobile-menu-mask')}})});function handleSidebarKeydown(e){var focusableElements=mobileMenuSidebar.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])');var firstFocusable=focusableElements[0];var lastFocusable=focusableElements[focusableElements.length-1];if(e.key==='Tab'){if(e.shiftKey&&document.activeElement===firstFocusable){e.preventDefault();lastFocusable.focus()}else if(!e.shiftKey&&document.activeElement===lastFocusable){e.preventDefault();firstFocusable.focus()}}}
84mobileMenuSidebar.addEventListener('keydown',handleSidebarKeydown);document.addEventListener('click',function(e){if(e.target&&e.target.className==='hm-overlay-mask'){var maskId=e.target.id;body.classList.remove('mobile-menu-opened');self.removeOverlay(maskId)}})}};hybridmag.mobileMenuToggle={init:function(){this.toggle()},performToggle:function(element){var target=element.dataset.toggleTarget,parentNavContainer=element.closest('.hm-mobile-menu');activeClass='toggled-on';targetElement=parentNavContainer.querySelector(target);element.classList.toggle(activeClass);hybridmagToggleAttribute(element,'aria-expanded','true','false');targetElement.classList.toggle(activeClass)},toggle:function(){var self=this;document.querySelectorAll('*[data-toggle-target]').forEach(function(element){element.addEventListener('click',function(event){event.preventDefault();self.performToggle(element)})})}};hybridmag.darkModeToggle={init:function(){var html=document.documentElement;var darkModeOnLocal=localStorage.getItem('hybridmagDarkMode');if(darkModeOnLocal==='enabled'||(darkModeOnLocal===null&&hybridmagAdminSettings.darkModeDefault)){html.classList.add('hm-dark');document.querySelectorAll('.hm-light-dark-toggle').forEach(function(element){var srText=element.querySelector('.screen-reader-text'),lightModeText=element.dataset.lightText;srText.textContent=lightModeText})}
85this.toggle()},performToggle:function(element){var html=document.documentElement,srText=element.querySelector('.screen-reader-text'),darkModeText=element.dataset.darkText,lightModeText=element.dataset.lightText;if(html.classList.contains('hm-dark')){html.classList.remove('hm-dark');srText.textContent=darkModeText;localStorage.setItem('hybridmagDarkMode','disabled')}else{html.classList.add('hm-dark');srText.textContent=lightModeText;localStorage.setItem('hybridmagDarkMode','enabled')}},toggle:function(){var self=this;document.querySelectorAll('.hm-light-dark-toggle').forEach(function(element){element.addEventListener('click',function(event){event.preventDefault();self.performToggle(element)})})}}
86function hybridmagToggleAttribute(element,attribute,trueVal,falseVal){if(trueVal===undefined){trueVal=!0}
87if(falseVal===undefined){falseVal=!1}
88if(element.getAttribute(attribute)!==trueVal){element.setAttribute(attribute,trueVal)}else{element.setAttribute(attribute,falseVal)}}
89function hybridmagDomReady(fn){if(typeof fn!=='function'){return}
90if(document.readyState==='interactive'||document.readyState==='c
90omplete'){return fn()}
91document.addEventListener('DOMContentLoaded',fn,!1)}
92hybridmagDomReady(function(){hybridmag.menuAccessKeyboard.init();hybridmag.searchToggle.init();hybridmag.mobileMenu.init();hybridmag.mobileMenuToggle.init();hybridmag.slideOutSidebar.init();hybridmag.darkModeToggle.init()});
93
94

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.