mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 13:41:51 +00:00
2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
(()=>{var e,t={4:()=>{const e=document.getElementById("themeToggleDarkIcon"),t=document.getElementById("themeToggleLightIcon");e&&t&&("dark"===localStorage.getItem("color-theme")||!("color-theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?t.classList.remove("hidden"):e.classList.remove("hidden"));const o=document.getElementById("themeToggle");let n=new Event("dark-mode");o&&o.addEventListener("click",(function(){e.classList.toggle("hidden"),t.classList.toggle("hidden"),localStorage.getItem("color-theme")?"light"===localStorage.getItem("color-theme")?(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark")),document.dispatchEvent(n)}))},127:(e,t,o)=>{"use strict";o(315),o(4),o(756),o(391),o(935),o(762)},391:()=>{document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("currentYear");e&&(e.textContent=(new Date).getFullYear())}))},756:()=>{function e(){window.scrollY>0?t.setAttribute("data-sticky","true"):t.setAttribute("data-sticky","false")}const t=document.querySelector("#mainNavbar");t&&(e(),window.addEventListener("scroll",(function(){e()})))},762:()=>{window.addEventListener("load",(function(){var e=document.getElementById("plausible-switch"),t=window.localStorage.getItem("plausible_ignore");e.checked=null==t||!1===t})),window.addEventListener("load",(function(){var e=window.localStorage.getItem("hidePlausibleBanner"),t=document.getElementById("plausible-banner");e?t.classList.add("hidden"):t.classList.remove("hidden")})),document.getElementById("plausible-switch").addEventListener("change",(function(){this.checked?window.localStorage.removeItem("plausible_ignore"):window.localStorage.setItem("plausible_ignore","true")})),document.getElementById("plausible-ok").addEventListener("click",(function(){var e=document.getElementById("plausible-banner");window.localStorage.setItem("hidePlausibleBanner","true"),e.classList.add("hidden")}))},935:()=>{window.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("subject")||!1,t=new URLSearchParams(window.location.search).get("topic")||!1;!1!==e&&!1!==t&&(e.value=t)}))}},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,o,a,l)=>{if(!o){var r=1/0;for(s=0;s<e.length;s++){for(var[o,a,l]=e[s],d=!0,c=0;c<o.length;c++)(!1&l||r>=l)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(d=!1,l<r&&(r=l));if(d){e.splice(s--,1);var i=a();void 0!==i&&(t=i)}}return t}l=l||0;for(var s=e.length;s>0&&e[s-1][2]>l;s--)e[s]=e[s-1];e[s]=[o,a,l]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={524:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var a,l,[r,d,c]=o,i=0;if(r.some((t=>0!==e[t]))){for(a in d)n.o(d,a)&&(n.m[a]=d[a]);if(c)var s=c(n)}for(t&&t(o);i<r.length;i++)l=r[i],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(s)},o=self.webpackChunkflowbite_pro_marketing_ui_pages=self.webpackChunkflowbite_pro_marketing_ui_pages||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=n.O(void 0,[96],(()=>n(127)));a=n.O(a)})();
|
|
//# sourceMappingURL=app.bundle.js.map
|