From 0ffaff01d40ba97ec09e0c113887eb7dc2bb5218 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 29 Apr 2024 00:31:06 +0200 Subject: more ads --- src/layout.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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") } } } } -- cgit v1.2.3-70-g09d2