add soul studio banner

This commit is contained in:
2020-09-02 20:18:52 +02:00
parent f88dc0cd14
commit b01531cd77
5 changed files with 9 additions and 5 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

View File

@@ -129,7 +129,7 @@
scrolling="no">
</iframe>
{{else if eq .Other.AdType 1}}
<a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarula-electronics.com/?v=79cba1185463">
<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%" />
</a>
{{else if eq .Other.AdType 2}}
@@ -146,7 +146,10 @@
Longer file retention<br/>
</div>
<div>
{{else if eq .Other.AdType 3}}
<a class="sponsors_banner" style="display: inline-block; width: 842px; height: 125px;" href="/click/RJRbh7Tn?target=https%3A%2F%2Fsoulstudio.nl%2Fonline-y">
<img src="/res/img/misc/banner_soul_studio.png" style="width: 100%; height: 100%" />
</a>
{{end}}
</div>
{{end}}

View File

@@ -39,11 +39,12 @@ func adType() (i int) {
// 0: A-ads
// 1: Amarulasolutions
// 2: Patreon
// 3: Soul Studio Yoga
switch i {
case 0, 1, 2, 3: // 50% of the traffic
return 1
case 4, 5, 6, 7: // 50%
case 0, 1, 2, 3, 4: // 5/8 of the traffic
return 3
case 5, 6, 7: // 3/8 of traffic
return 2
default:
panic(fmt.Errorf(