Ad-Maven
This commit is contained in:
@@ -135,7 +135,7 @@
|
|||||||
{{else if eq .Other.AdType 2}}
|
{{else if eq .Other.AdType 2}}
|
||||||
<div style="text-align: center; line-height: 22px; font-size: 18px;">
|
<div style="text-align: center; line-height: 22px; font-size: 18px;">
|
||||||
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
||||||
Pixeldrain needs money to survive!<br/>
|
Pixeldrain needs money to survive<br/>
|
||||||
<a href="/click/7wy9gg2J?target=%2Fsubscribe" class="button button_highlight">
|
<a href="/click/7wy9gg2J?target=%2Fsubscribe" class="button button_highlight">
|
||||||
Support me on Patreon and get some neat perks
|
Support me on Patreon and get some neat perks
|
||||||
</a>
|
</a>
|
||||||
@@ -247,6 +247,10 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{template "analytics"}}
|
{{template "analytics"}}
|
||||||
|
|
||||||
|
{{ if .Other.ShowAds }}{{ if eq .Other.AdType 5 }}
|
||||||
|
<script data-cfasync="false" defer src="//d227cncaprzd7y.cloudfront.net/?acncd=905608"></script>
|
||||||
|
{{ end }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@@ -41,12 +41,18 @@ func adType() (i int) {
|
|||||||
// 2: Patreon
|
// 2: Patreon
|
||||||
// 3: Soul Studio Yoga
|
// 3: Soul Studio Yoga
|
||||||
// 4: Amarula Solutions
|
// 4: Amarula Solutions
|
||||||
|
// 5: Ad-Maven
|
||||||
|
|
||||||
switch i {
|
switch i {
|
||||||
case 0, 1, 2, 3, 4: // 5/8 of the traffic
|
case 0, 1, 2: // 3/8 of the traffic
|
||||||
return 4
|
return 4 // Amarula solutions
|
||||||
case 5, 6, 7: // 3/8 of traffic
|
|
||||||
return 2
|
case 3, 4, 5, 6: // 4/8 of the traffic
|
||||||
|
return 5 // Ad-Maven
|
||||||
|
|
||||||
|
case 7: // 1/8 of traffic
|
||||||
|
return 2 // Patreon
|
||||||
|
|
||||||
default:
|
default:
|
||||||
panic(fmt.Errorf(
|
panic(fmt.Errorf(
|
||||||
"random number generator returned unrecognised number: %d", i),
|
"random number generator returned unrecognised number: %d", i),
|
||||||
|
Reference in New Issue
Block a user