Replace a-ads with brave

This commit is contained in:
2021-03-27 17:21:37 +01:00
parent 80cbfbafb7
commit 58636057d2
2 changed files with 16 additions and 19 deletions

View File

@@ -14,10 +14,10 @@ running. Brave tries to solve this by giving users the choice if they want to
see ads. If you opt in to seeing ads from Brave you will receive notifications see ads. If you opt in to seeing ads from Brave you will receive notifications
with promotional offers once in a while. Brave protects your privacy by putting with promotional offers once in a while. Brave protects your privacy by putting
the logic for showing relevant ads directly in the browser itself. This way your the logic for showing relevant ads directly in the browser itself. This way your
browser history never leaves your computer and Google can't follow you around browser history never leaves your computer and the tech giants can't follow you
the web. The earnings from these ads are distributed between the websites which around the web. The earnings from these ads are distributed between the websites
you love most, a small cut goes to Brave itself for developing the browser, and which you love most, a small cut goes to Brave itself for developing the
some of it goes to you. That's right, you get paid for viewing ads! browser, and some of it goes to you. That's right, you get paid for viewing ads!
## <img src="/res/img/bat_full_color.svg" style="height: 0.8em;"/> Basic attention tokens ## <img src="/res/img/bat_full_color.svg" style="height: 0.8em;"/> Basic attention tokens
@@ -33,13 +33,6 @@ convert the money to your own currency and deposit it to your bank account.
Of course I would really appreciate it if you tipped some coins to pixeldrain Of course I would really appreciate it if you tipped some coins to pixeldrain
once in a while ;-) once in a while ;-)
<br style="clear: right;"/>
When you install the Brave browser and use it for 30 days they will make a
contribution of around 5$ to pixeldrain. This is currently the site's
biggest source of income. It allows me to get faster servers in more places and
spend more time working on the site. So, if you're ready:
<div style="text-align: center;"> <div style="text-align: center;">
<a class="button button_highlight" style="font-size: 1.5em;" href="https://brave.com/pix009"> <a class="button button_highlight" style="font-size: 1.5em;" href="https://brave.com/pix009">
<img src="/res/img/brave_lion.svg" style="height: 1.5em; vertical-align: middle;"/> <img src="/res/img/brave_lion.svg" style="height: 1.5em; vertical-align: middle;"/>

View File

@@ -137,7 +137,15 @@
<div id="sponsors" class="sponsors"> <div id="sponsors" class="sponsors">
{{ if and .Other.FileAdsEnabled .Other.UserAdsEnabled }} {{ if and .Other.FileAdsEnabled .Other.UserAdsEnabled }}
{{if eq .Other.AdType 1}} {{ if eq .Other.AdType 0 }}
<!-- scrolling="no" is not allowed by the W3C, but overflow: hidden doesn't work in chrome, so I have no choice -->
<iframe class="sponsors_banner"
data-aa="73974"
src="//ad.a-ads.com/73974?size=728x90&background_color={{.Style.Layer1Color.RGB}}&text_color={{.Style.TextColor.RGB}}&title_color={{.Style.HighlightColor.RGB}}&title_hover_color={{.Style.HighlightColor.RGB}}&link_color={{.Style.HighlightColor.RGB}}&link_hover_color={{.Style.HighlightColor.RGB}}"
style="width:728px; height:90px; border:none; padding:0; overflow:hidden;"
scrolling="no">
</iframe>
{{ else if eq .Other.AdType 1 }}
<!-- Amarula electronics --> <!-- Amarula electronics -->
<a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarula-electronics.com"> <a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarula-electronics.com">
<img src="/res/img/misc/banner_as.png" style="width: 100%; height: 100%" /> <img src="/res/img/misc/banner_as.png" style="width: 100%; height: 100%" />
@@ -200,13 +208,9 @@
</div> </div>
</div> </div>
{{ else }} {{ else }}
<!-- scrolling="no" is not allowed by the W3C, but overflow: hidden doesn't work in chrome, so I have no choice --> <a class="sponsors_banner" style="display: inline-block; width: 728px; height: 90px;" href="https://brave.com/pix009">
<iframe class="sponsors_banner" <img src="/res/img/misc/brave-728x90.png" style="width: 100%; height: 100%" />
data-aa="73974" </a>
src="//ad.a-ads.com/73974?size=728x90&background_color={{.Style.Layer1Color.RGB}}&text_color={{.Style.TextColor.RGB}}&title_color={{.Style.HighlightColor.RGB}}&title_hover_color={{.Style.HighlightColor.RGB}}&link_color={{.Style.HighlightColor.RGB}}&link_hover_color={{.Style.HighlightColor.RGB}}"
style="width:728px; height:90px; border:none; padding:0; overflow:hidden;"
scrolling="no">
</iframe>
{{ end }} {{ end }}
{{ else if not .Other.UserAdsEnabled }} {{ else if not .Other.UserAdsEnabled }}
<div style="text-align: center; line-height: 1.3em; font-size: 13px;"> <div style="text-align: center; line-height: 1.3em; font-size: 13px;">