summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-30 19:23:31 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-30 19:23:31 +0200
commit67d97d5c17fb27f496a0b1d8d6ca429cf942bb93 (patch)
treecbf1e59bdaca3bd55dea49f0665bd0a35140cf1e
parent761c0dc54e26181116479be2f4cb5c26c8e6130d (diff)
downloadmetamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar
metamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar.bz2
metamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar.zst
use noimg for ads
-rw-r--r--src/layout.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 6c4b002..637e2fc 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -64,13 +64,15 @@ 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:728px;height:90px;border:none;"] {}
- }
- details.ad { summary { "Advertisement by a third-party" }
- iframe[loading="lazy", src="https://john.citrons.xyz/embed?ref=metamuffin.org", style="width:732px;height:94px;border:none;"] {}
+ @if !noimg {
+ details.ad { summary { "Advertisement by a first-party" }
+ iframe[loading="lazy", src="https://adservices.metamuffin.org/v1/embed?s=metamuffin.org", style="width:728px;height:90px;border:none;"] {}
+ }
+ details.ad { summary { "Advertisement by a third-party" }
+ 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") }
}
- script { @raw("document.querySelectorAll(\".ad\").forEach(e=>e.open=true) // evil js enables ads hehe") }
}
}
}