diff options
author | metamuffin <metamuffin@disroot.org> | 2024-04-30 19:23:31 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-04-30 19:23:31 +0200 |
commit | 67d97d5c17fb27f496a0b1d8d6ca429cf942bb93 (patch) | |
tree | cbf1e59bdaca3bd55dea49f0665bd0a35140cf1e | |
parent | 761c0dc54e26181116479be2f4cb5c26c8e6130d (diff) | |
download | metamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar metamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar.bz2 metamuffin-website-67d97d5c17fb27f496a0b1d8d6ca429cf942bb93.tar.zst |
use noimg for ads
-rw-r--r-- | src/layout.rs | 14 |
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") } } } } |