Add an ad for an ad blocker, for the lolz
This commit is contained in:
@@ -4,15 +4,18 @@ import { onMount } from "svelte"
|
|||||||
let ad_type = ""
|
let ad_type = ""
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
// 20% pixeldrain socials
|
// 30% pixeldrain socials
|
||||||
// 20% reviews
|
// 20% reviews
|
||||||
// 60% patreon
|
// 10% ad block promo
|
||||||
|
// 40% patreon
|
||||||
|
|
||||||
let rand = Math.random()
|
let rand = Math.random()
|
||||||
if (rand < 0.3) {
|
if (rand < 0.3) {
|
||||||
ad_type = "socials"
|
ad_type = "socials"
|
||||||
} else if (rand < 0.5) {
|
} else if (rand < 0.5) {
|
||||||
ad_type = "reviews"
|
ad_type = "reviews"
|
||||||
|
} else if (rand < 0.6) {
|
||||||
|
ad_type = "ad_block"
|
||||||
} else {
|
} else {
|
||||||
ad_type = "patreon_support"
|
ad_type = "patreon_support"
|
||||||
}
|
}
|
||||||
@@ -89,17 +92,19 @@ onMount(() => {
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{:else if ad_type === "slava_ukraini"}
|
{:else if ad_type === "ad_block"}
|
||||||
|
|
||||||
<a href="https://en.wikipedia.org/wiki/War_crimes_in_the_Russian_invasion_of_Ukraine" class="banner flag" target="_blank" rel="noreferrer">
|
<div class="banner support_banner">
|
||||||
<div class="flag_top">
|
<span style="display: block; margin-bottom: 2px;">
|
||||||
We do not forget
|
Protect your privacy, protect your sanity. Get an ad blocker!
|
||||||
</div>
|
</span>
|
||||||
<div class="flag_bottom">
|
<a href="https://ublockorigin.com/"
|
||||||
Slava Ukraini!
|
rel="noreferrer" class="button" target="_blank" style="background-color: #800000; color: #FFFFFF; font-weight: bold;"
|
||||||
</div>
|
>
|
||||||
|
<i class="icon">security</i>
|
||||||
|
Get uBlock Origin
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -132,30 +137,4 @@ onMount(() => {
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.flag {
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
padding: 4px;
|
|
||||||
overflow: hidden;
|
|
||||||
text-decoration: none;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 1.1em;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 400px;
|
|
||||||
}
|
|
||||||
.flag_top {
|
|
||||||
background-color: #0057b7;
|
|
||||||
color: #ffd700;
|
|
||||||
padding: 2px;
|
|
||||||
border-top-left-radius: 10px;
|
|
||||||
border-top-right-radius: 10px;
|
|
||||||
}
|
|
||||||
.flag_bottom {
|
|
||||||
background-color: #ffd700;
|
|
||||||
color: #0057b7;
|
|
||||||
padding: 2px;
|
|
||||||
border-bottom-left-radius: 10px;
|
|
||||||
border-bottom-right-radius: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user