-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwowchemy-init.min.9e4214442a7711d35691acd58f6f6361.js
6 lines (5 loc) · 1.55 KB
/
wowchemy-init.min.9e4214442a7711d35691acd58f6f6361.js
1
2
3
4
5
6
/*! Hugo Blox Builder v5.9.7 | https://hugoblox.com/ */
/*! Copyright 2016-present George Cushen (https://georgecushen.com/) */
/*! License: https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md */
;
(()=>{(()=>{var t,n,e=document.body;function s(){return parseInt(localStorage.getItem("wcTheme")||2)}function o(){return Boolean(window.wc.darkLightEnabled)}function i(){if(!o())return console.debug("User theming disabled."),{isDarkTheme:window.wc.isSiteThemeDark,themeMode:window.wc.isSiteThemeDark?1:0};console.debug("User theming enabled.");let t,n=s();switch(console.debug(`User's theme variation: ${n}`),n){case 0:t=!1;break;case 1:t=!0;break;default:window.matchMedia("(prefers-color-scheme: dark)").matches?t=!0:window.matchMedia("(prefers-color-scheme: light)").matches?t=!1:t=window.wc.isSiteThemeDark;break}return t&&!e.classList.contains("dark")?(console.debug("Applying Hugo Blox Builder dark theme"),document.body.classList.add("dark")):!t&&e.classList.contains("dark")&&(console.debug("Applying Hugo Blox Builder light theme"),document.body.classList.remove("dark")),{isDarkTheme:t,themeMode:n}}t="minimal",n=!1,window.wc={darkLightEnabled:t,isSiteThemeDark:n},window.netlifyIdentity&&window.netlifyIdentity.on("init",e=>{e||window.netlifyIdentity.on("login",()=>{document.location.href="/admin/"})}),i(),window.PlotlyConfig={MathJaxConfig:"local"},Object.keys(localStorage).forEach(function(e){/^wc-announcement-/.test(e)&&(document.documentElement.setAttribute("data-wc-announcement-status","dismissed"),console.debug("Hiding announcement..."))})})()})()