Add clickadu banner ads

This commit is contained in:
2021-06-08 16:43:20 +02:00
parent 74defb0cf0
commit d14b05a9c5
2 changed files with 9 additions and 11 deletions

View File

@@ -87,6 +87,10 @@
<a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a> <a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a>
</div> </div>
</div> </div>
{{ else if eq .Other.AdBannerType 12 }}
<div class="sponsors_banner" style="display: inline-block; width: 300px; height: 100px;">
<script data-cfasync="false" type="text/javascript" src="//myolnyr5bsk18.com/lv/esnk/1846778/code.js" async id="__clb-1846778"></script>
</div>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -43,6 +43,7 @@ func adType() (banner, floater int) {
pdpro2 = 9 pdpro2 = 9
pdpro3 = 10 pdpro3 = 10
pdpro4 = 11 pdpro4 = 11
clickAduBanner = 12
// Floaters // Floaters
none = 0 none = 0
@@ -55,9 +56,9 @@ func adType() (banner, floater int) {
// or 1 we need to give it n=2. We can use this function to make other // or 1 we need to give it n=2. We can use this function to make other
// splits like 1/3 1/4, etc // splits like 1/3 1/4, etc
switch i := rand.Intn(10); i { switch i := rand.Intn(10); i {
case 0: // 10% case 0, 1: // 20%
banner = amarulaSolutions banner = clickAduBanner
case 1, 2, 3, 4, 5: // 50% case 2, 3, 4, 5: // 40%
banner = brave banner = brave
case 6, 7, 8, 9: // 40% case 6, 7, 8, 9: // 40%
banner = aAds banner = aAds
@@ -65,14 +66,7 @@ func adType() (banner, floater int) {
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i)) panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
} }
switch i := rand.Intn(3); i { floater = propellerFloat
case 0, 1: // 66%
floater = propellerFloat
case 2: // 33%
floater = adSterraFloat
default:
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
}
return banner, floater return banner, floater
} }