summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-29 00:31:06 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-29 00:31:06 +0200
commit0ffaff01d40ba97ec09e0c113887eb7dc2bb5218 (patch)
tree3ff239f46449957b51ff197a03b2a2a5b2a66b2a
parent0a8515ee43e5cbbe23827b27460822ee3cdbc686 (diff)
downloadmetamuffin-website-0ffaff01d40ba97ec09e0c113887eb7dc2bb5218.tar
metamuffin-website-0ffaff01d40ba97ec09e0c113887eb7dc2bb5218.tar.bz2
metamuffin-website-0ffaff01d40ba97ec09e0c113887eb7dc2bb5218.tar.zst
more ads
-rw-r--r--src/layout.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 359670d..2c601a6 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -64,10 +64,13 @@ markup::define! {
}
}
hr;
+ details.ad { summary { "Advertisement by a first-party" }
+ iframe[loading="lazy", src="https://adservices.metamuffin.org/v1/embed?s=metamuffin.org", style="width:732px;height:94px;border:none;"] {}
+ }
details.ad { summary { "Advertisement by a third-party" }
- script { @raw("document.querySelector(\".ad\").open = true; // evil js enables ads hehe") }
- iframe[loading="lazy", src="https://john.citrons.xyz/embed?ref=metamuffin.org", style="width:732px;height:94px;border:none;"];
+ iframe[loading="lazy", src="https://john.citrons.xyz/embed?ref=metamuffin.org", style="width:732px;height:94px;border:none;"] {}
}
+ script { @raw("document.querySelectorAll(\".ad\").forEach(e=>e.open=true) // evil js enables ads hehe") }
}
}
}