mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
Modify cookie banner update javascript bundle with webpack
This commit is contained in:
@@ -1,21 +1,75 @@
|
||||
|
||||
|
||||
<div id="plausible-banner" tabindex="-1" class="hidden fixed bottom-0 right-0 z-50 flex justify-end w-full p-4 pb-8 border-b border-gray-200 dark:border-gray-600">
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center justify-end">
|
||||
|
||||
<div class="relative bg-white shadow-lg shadow-black dark:bg-gray-600 rounded-lg text-sm text-gray-500 dark:text-white lg:mb-0">
|
||||
<div class="cookie-banner relative bg-white shadow-lg dark:bg-gray-700 dark:border-gray-600 rounded-lg shadow-xl text-sm text-gray-500 dark:text-white lg:mb-0">
|
||||
<div class="justify-between items-center p-5 lg:flex">
|
||||
<p class="mb-4">
|
||||
|
||||
</p>
|
||||
<div class="items-center space-y-4 sm:space-y-0 sm:space-x-4 sm:flex lg:pl-10 shrink-0 px-2">
|
||||
We use Plausible Analytics, a privacy first web analytics tool that does not use cookies.
|
||||
<span class="text-sm px-1"><a class="cursor-pointer font-sm text-gray-900 hover:underline dark:text-white" onclick="disablePlausible();">Disable Plausible</a></span>
|
||||
<span class="text-sm px-1"><a href="/cookies/" class="font-sm text-gray-900 hover:underline dark:text-white">Cookie Policy</a></span>
|
||||
<button id="close-modal" onclick="enablePlausible();" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">OK</button>
|
||||
<div class="items-center space-y-4 sm:space-y-0 sm:space-x-4 sm:flex lg:pl-10 shrink-0 px-2 w-full">
|
||||
<div>
|
||||
<div class="mx-2">
|
||||
We use <a href="https://plausible.io">Plausible Analytics</a>, a privacy first web analytics tool.<br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="h-full">
|
||||
<button id="plausible-configure" data-modal-target="popup-modal" data-modal-toggle="popup-modal"type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">Configure</button>
|
||||
</div>
|
||||
<div class="align-bottom h-full">
|
||||
<button id="plausible-ok" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">Accept</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button data-modal-target="popup-modal" data-modal-toggle="popup-modal" class="block text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800" type="button">
|
||||
Toggle modal
|
||||
</button>
|
||||
|
||||
<div id="popup-modal" tabindex="-1" class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
||||
<div class="relative p-4 w-full max-w-md max-h-full">
|
||||
<div class="relative bg-white rounded-lg shadow-sm dark:bg-gray-700 border-1 format dark:format-invert ">
|
||||
<button type="button" class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="popup-modal">
|
||||
<svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
|
||||
</svg>
|
||||
<span class="sr-only">Close modal</span>
|
||||
</button>
|
||||
<div class="py-8 px-4 md:py-8 text-balance">
|
||||
<div class="pb-4">
|
||||
<h1 class="mb-5 font-normal text-gray-500 dark:text-gray-400 text-center">Plausible Analytics</h1>
|
||||
|
||||
<p>
|
||||
We use Plausible Analytics Community Edition hosted on this server to gather <strong>anonymous</strong> statistics about our website traffic that:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Does <strong>not</strong> use cookies</li>
|
||||
<li>Does <strong>not</strong> track you across websites</li>
|
||||
<li>Does <strong>not</strong> collect any personal data</li>
|
||||
</ul>
|
||||
<p>
|
||||
All data is <strong>aggregated and anonymized</strong> and stored <strong>on this server</strong> to help us understand general website usage, such as page view and referrers.
|
||||
</p>
|
||||
<p>
|
||||
Because we respect your choice to privacy, we offer the ability to disable Plausible analytics by storing "false" in your browser's <span class="courier-prime-regular">'localStorage'</span> under the variable name <span class="courier-prime-regular">'plausible_ignore'</span>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<div class="flex justify-end pt-2">
|
||||
<span class="px-2">Enable Plausible Analytics</span>
|
||||
<label class="switch">
|
||||
<input id="plausible-switch" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex justify-end pt-4">
|
||||
<button data-modal-hide="popup-modal" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">OK</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
<script src="{{ .Site.BaseURL }}/js/vendors.bundle.js"></script>
|
||||
<script defer data-domain="beardedtek.com" src="https://plausible.beardedtek.org/js/script.file-downloads.hash.outbound-links.pageview-props.revenue.tagged-events.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
<script src="{{ .Site.BaseURL }}/js/plausible-exclude.js"></script>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/app.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/custom.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/fonts.css">
|
||||
@@ -5,3 +5,5 @@ import './dark-mode';
|
||||
import './navbar';
|
||||
import './current-year';
|
||||
import './contact-form';
|
||||
import './plausible-banner';
|
||||
import './set-dark-mode';
|
||||
36
src/plausible-banner.js
Normal file
36
src/plausible-banner.js
Normal file
@@ -0,0 +1,36 @@
|
||||
// Plausible Exclude
|
||||
window.addEventListener('load', function(){
|
||||
var plausibleSwitch = document.getElementById('plausible-switch');
|
||||
var plausibleStatus = window.localStorage.getItem('plausible_ignore');
|
||||
if (plausibleStatus === null || plausibleStatus === undefined || plausibleStatus === false ){
|
||||
plausibleSwitch.checked = true;
|
||||
} else {
|
||||
plausibleSwitch.checked = false;
|
||||
}
|
||||
})
|
||||
|
||||
window.addEventListener('load', function(){
|
||||
var hidePlausibleBanner = window.localStorage.getItem('hidePlausibleBanner');
|
||||
var bannerEl = document.getElementById('plausible-banner');
|
||||
|
||||
if ( hidePlausibleBanner ){
|
||||
bannerEl.classList.add('hidden');
|
||||
} else {
|
||||
bannerEl.classList.remove('hidden');
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
document.getElementById('plausible-switch').addEventListener('change', function(){
|
||||
if (this.checked) {
|
||||
window.localStorage.removeItem('plausible_ignore');
|
||||
} else {
|
||||
window.localStorage.setItem('plausible_ignore', 'true');
|
||||
}
|
||||
})
|
||||
|
||||
document.getElementById('plausible-ok').addEventListener('click', function() {
|
||||
var bannerEl = document.getElementById('plausible-banner');
|
||||
window.localStorage.setItem('hidePlausibleBanner', 'true');
|
||||
bannerEl.classList.add('hidden');
|
||||
})
|
||||
4
src/set-dark-mode.js
Normal file
4
src/set-dark-mode.js
Normal file
@@ -0,0 +1,4 @@
|
||||
colorTheme = window.localStorage.getItem('color-theme');
|
||||
if (!colorTheme){
|
||||
window.localStorage.setItem('color-theme', 'dark');
|
||||
}
|
||||
@@ -127,3 +127,64 @@
|
||||
font-weight: 900;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.cookie-banner{
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.switch {
|
||||
--secondary-container: #101828;
|
||||
--primary: #00ff00;
|
||||
font-size: 17px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 2.4em;
|
||||
height: 1.3em;
|
||||
}
|
||||
|
||||
.switch input {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #101828;
|
||||
transition: .2s;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 0.9em;
|
||||
width: 0.9em;
|
||||
border-radius: 20px;
|
||||
left: 0.2em;
|
||||
bottom: 0.2em;
|
||||
background-color: #ff4c4c;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
input:checked + .slider::before {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
|
||||
input:checked + .slider {
|
||||
background-color: var(--secondary-container);
|
||||
}
|
||||
|
||||
input:focus + .slider {
|
||||
box-shadow: 0 0 1px var(--secondary-container);
|
||||
}
|
||||
|
||||
input:checked + .slider:before {
|
||||
transform: translateX(1em);
|
||||
}
|
||||
131
static/css/fonts.css
Normal file
131
static/css/fonts.css
Normal file
@@ -0,0 +1,131 @@
|
||||
.courier-prime-regular {
|
||||
font-family: "Courier Prime", monospace;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.courier-prime-bold {
|
||||
font-family: "Courier Prime", monospace;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.courier-prime-regular-italic {
|
||||
font-family: "Courier Prime", monospace;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.courier-prime-bold-italic {
|
||||
font-family: "Courier Prime", monospace;
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-thin {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-extralight {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 200;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-light {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-regular {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-medium {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-semibold {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-bold {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-extrabold {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 800;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-black {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.kanit-thin-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 100;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-extralight-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 200;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-light-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 300;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-regular-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-medium-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-semibold-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-bold-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-extrabold-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 800;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.kanit-black-italic {
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-weight: 900;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
(()=>{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)},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()})))},935:(e,t,o)=>{window.addEventListener("DOMContentLoaded",(async function(){const e=await o.e(96).then(o.bind(o,339)),t=await o.e(96).then(o.bind(o,239)),n=e.Filter;if("function"!=typeof n)return;const r=new n,a=document.querySelector("form[name='contact'] input[name='subject']");if(!a)return;const c=new URLSearchParams(window.location.search).get("topic")||"none";if("none"===c)return;const l=r.clean(c).substring(0,30),i=t.default.titleCase(l),d=a.value||"none";a.value=d.concat(" - ",i)}))}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,o,r,a)=>{if(!o){var c=1/0;for(s=0;s<e.length;s++){for(var[o,r,a]=e[s],l=!0,i=0;i<o.length;i++)(!1&a||c>=a)&&Object.keys(n.O).every((e=>n.O[e](o[i])))?o.splice(i--,1):(l=!1,a<c&&(c=a));if(l){e.splice(s--,1);var d=r();void 0!==d&&(t=d)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[o,r,a]},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.e=()=>Promise.resolve(),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={524:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[c,l,i]=o,d=0;if(c.some((t=>0!==e[t]))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(i)var s=i(n)}for(t&&t(o);d<c.length;d++)a=c[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=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 r=n.O(void 0,[96],(()=>n(127)));r=n.O(r)})();
|
||||
(()=>{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)}))},5:()=>{colorTheme=window.localStorage.getItem("color-theme"),colorTheme||window.localStorage.setItem("color-theme","dark")},127:(e,t,o)=>{"use strict";o(315),o(4),o(756),o(391),o(935),o(762),o(5)},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:(e,t,o)=>{window.addEventListener("DOMContentLoaded",(async function(){const e=await o.e(96).then(o.bind(o,339)),t=await o.e(96).then(o.bind(o,239)),n=e.Filter;if("function"!=typeof n)return;const r=new n,a=document.querySelector("form[name='contact'] input[name='subject']");if(!a)return;const l=new URLSearchParams(window.location.search).get("topic")||"none";if("none"===l)return;const i=r.clean(l).substring(0,30),c=t.default.titleCase(i),d=a.value||"none";a.value=d.concat(" - ",c)}))}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,o,r,a)=>{if(!o){var l=1/0;for(s=0;s<e.length;s++){for(var[o,r,a]=e[s],i=!0,c=0;c<o.length;c++)(!1&a||l>=a)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(i=!1,a<l&&(l=a));if(i){e.splice(s--,1);var d=r();void 0!==d&&(t=d)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[o,r,a]},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.e=()=>Promise.resolve(),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={524:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[l,i,c]=o,d=0;if(l.some((t=>0!==e[t]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(c)var s=c(n)}for(t&&t(o);d<l.length;d++)a=l[d],n.o(e,a)&&e[a]&&e[a][0](),e[a]=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 r=n.O(void 0,[96],(()=>n(127)));r=n.O(r)})();
|
||||
//# sourceMappingURL=app.bundle.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,22 +0,0 @@
|
||||
// Plausible Exclude
|
||||
const plausibleBanner = document.getElementById('plausible-banner');
|
||||
var hidePlausibleBanner = window.localStorage.getItem('hidePlausibleBanner');
|
||||
|
||||
function disablePlausible(e) {
|
||||
window.localStorage.setItem('plausible_ignore', 'true');
|
||||
window.localStorage.setItem('hidePlausibleBanner','true');
|
||||
plausibleBanner.classList.add('hidden');
|
||||
}
|
||||
|
||||
function enablePlausible(e) {
|
||||
window.localStorage.removeItem('plausible_ignore');
|
||||
window.localStorage.setItem('hidePlausibleBanner','true');
|
||||
plausibleBanner.classList.add('hidden');
|
||||
}
|
||||
|
||||
|
||||
if ( hidePlausibleBanner){
|
||||
plausibleBanner.classList.add('hidden');
|
||||
} else {
|
||||
plausibleBanner.classList.remove('hidden');
|
||||
}
|
||||
Reference in New Issue
Block a user