1(function (e) { 2 "use strict"; 3 var n = window.AFTHRAMPES_JS || {}; 4 n.lightDarkToggle = function () { 5 jQuery('#aft-dark-light-mode-btn').on('click', function (event) { 6 event.preventDefault(); 7 var DefaultSiteModeAttr = e(this).data('site-mode'); 8 var DefaultSiteModeCls = e(this).attr('class'); 9 if (DefaultSiteModeAttr === DefaultSiteModeCls) { 10 n.lightDarkToggleFunction(DefaultSiteModeAttr); 11 } else { 12 n.lightDarkToggleFunction(DefaultSiteModeCls); 13 14 } 15 }); 16 }, 17 18 n.lightDarkToggleFunction = function (DefaultSiteModeAttr) { 19 jQuery.removeCookie('stored-site-mode', { expires: 7, path: '/' }); 20 var actualSiteModeAttr = e('#aft-dark-light-mode-btn').data('site-mode'); 21 var switchSiteModeAttr = ''; 22 if (DefaultSiteModeAttr === 'aft-dark-mode') { 23 switchSiteModeAttr = 'aft-light-mode'; 24 } else { 25 switchSiteModeAttr = 'aft-dark-mode'; 26 } 27 e('body').removeClass(DefaultSiteModeAttr); 28 e('body').addClass(switchSiteModeAttr); 29 e('#aft-dark-light-mode-btn').removeClass(DefaultSiteModeAttr); 30 e('#aft-dark-light-mode-btn').addClass(switchSiteModeAttr); 31 jQuery.cookie('stored-site-mode', switchSiteModeAttr, { expires: 7, path: '/' }); 32 33 34 }, 35 36 e(document).ready(function () { 37 n.lightDarkToggle(); 38 39 }); 40 41})(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.