diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/layout.rs | 7 |
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") } } } } |