Compare commits
2 Commits
cbe900a8e4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
a44155d87d
|
|||
|
e41c15c47e
|
@@ -5,3 +5,11 @@
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
<img
|
||||
src="https://analytics.mifi.holdings/p/wQ9GYnLIg"
|
||||
alt=""
|
||||
width="1"
|
||||
height="1"
|
||||
role="presentation"
|
||||
loading="eager"
|
||||
/>
|
||||
|
||||
@@ -3,7 +3,10 @@ const saved = window?.localStorage?.getItem('theme');
|
||||
|
||||
// Umami: safe track (no-op if script blocked or not loaded)
|
||||
function umamiTrack(name, data) {
|
||||
if (typeof window.umami !== 'undefined' && typeof window.umami.track === 'function') {
|
||||
if (
|
||||
typeof window.umami !== 'undefined' &&
|
||||
typeof window.umami.track === 'function'
|
||||
) {
|
||||
if (data != null) window.umami.track(name, data);
|
||||
else window.umami.track(name);
|
||||
}
|
||||
@@ -40,7 +43,8 @@ const scrollMilestones = new Set();
|
||||
function onScroll() {
|
||||
const doc = document.documentElement;
|
||||
const scrollTop = doc.scrollTop || document.body.scrollTop;
|
||||
const scrollHeight = (doc.scrollHeight || document.body.scrollHeight) - window.innerHeight;
|
||||
const scrollHeight =
|
||||
(doc.scrollHeight || document.body.scrollHeight) - window.innerHeight;
|
||||
if (scrollHeight <= 0) return;
|
||||
const pct = Math.round((scrollTop / scrollHeight) * 100);
|
||||
for (const m of [25, 50, 75, 100]) {
|
||||
|
||||
Reference in New Issue
Block a user