Pixeldrain Pro ads
This commit is contained in:
@@ -83,14 +83,14 @@
|
|||||||
<hr/>
|
<hr/>
|
||||||
Tired of ads?<br/>
|
Tired of ads?<br/>
|
||||||
Files expiring too soon?<br/>
|
Files expiring too soon?<br/>
|
||||||
<a class="button button_highlight" href="/click/7wy9gg2J?target=%2Fsubscribe">
|
<a class="button button_highlight" href="/click/7wy9gg2J?target=%2F%23pro">
|
||||||
<svg style="float: left; width: 2em; height: 2em; fill: currentColor;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
<svg style="float: left; width: 2em; height: 2em; fill: currentColor;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||||
<g fill-rule="evenodd">
|
<g fill-rule="evenodd">
|
||||||
<path d="M64.1102,0.1004 C44.259,0.1004 28.1086,16.2486 28.1086,36.0986 C28.1086,55.8884 44.259,71.989 64.1102,71.989 C83.9,71.989 100,55.8884 100,36.0986 C100,16.2486 83.9,0.1004 64.1102,0.1004"/>
|
<path d="M64.1102,0.1004 C44.259,0.1004 28.1086,16.2486 28.1086,36.0986 C28.1086,55.8884 44.259,71.989 64.1102,71.989 C83.9,71.989 100,55.8884 100,36.0986 C100,16.2486 83.9,0.1004 64.1102,0.1004"/>
|
||||||
<polygon points=".012 95.988 17.59 95.988 17.59 .1 .012 .1"/>
|
<polygon points=".012 95.988 17.59 95.988 17.59 .1 .012 .1"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
Become a Patron!
|
Get Pro!
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -154,11 +154,38 @@
|
|||||||
<a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarulasolutions.com/jobs">
|
<a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarulasolutions.com/jobs">
|
||||||
<img src="/res/img/misc/banner_amarula_jobs.png" style="width: 100%; height: 100%" />
|
<img src="/res/img/misc/banner_amarula_jobs.png" style="width: 100%; height: 100%" />
|
||||||
</a>
|
</a>
|
||||||
{{ else if eq .Other.AdType 8}}
|
{{ else if eq .Other.AdType 8 }}
|
||||||
<!-- Brave -->
|
<div style="text-align: center; line-height: 1.2em; font-size: 26px;">
|
||||||
<a class="sponsors_banner" style="display: inline-block; width: 728px; height: 90px;" href="https://brave.com/pix009">
|
<img src="/res/img/pixeldrain_128.png" style="height: 2em; vertical-align: middle;"/>
|
||||||
<img src="/res/img/misc/brave-728x90.png" style="width: 100%; height: 100%" />
|
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
||||||
</a>
|
Are your files expiring too quickly?<br/>
|
||||||
|
<a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ else if eq .Other.AdType 9 }}
|
||||||
|
<div style="text-align: center; line-height: 1.2em; font-size: 26px;">
|
||||||
|
<img src="/res/img/pixeldrain_128.png" style="height: 2em; vertical-align: middle;"/>
|
||||||
|
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
||||||
|
Are your files too large to share?<br/>
|
||||||
|
<a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ else if eq .Other.AdType 10 }}
|
||||||
|
<div style="text-align: center; line-height: 1.2em; font-size: 26px;">
|
||||||
|
<img src="/res/img/pixeldrain_128.png" style="height: 2em; vertical-align: middle;"/>
|
||||||
|
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
||||||
|
Are you tired of the advertisements?<br/>
|
||||||
|
<a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ else if eq .Other.AdType 11 }}
|
||||||
|
<div style="text-align: center; line-height: 1.2em; font-size: 26px;">
|
||||||
|
<img src="/res/img/pixeldrain_128.png" style="height: 2em; vertical-align: middle;"/>
|
||||||
|
<div style="margin: 4px 8px; display: inline-block; vertical-align: middle;">
|
||||||
|
Concerned about your online privacy?<br/>
|
||||||
|
<a href="/click/7wy9gg2J?target=%2F%23pro" class="button button_highlight">Pixeldrain Pro: Only €2 per month</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{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;">
|
||||||
|
@@ -218,10 +218,6 @@
|
|||||||
the window you can also find a link to the list at the
|
the window you can also find a link to the list at the
|
||||||
bottom of your uploaded files.
|
bottom of your uploaded files.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
For more information about pixeldrain see the
|
|
||||||
<a href="/about">about</a> page.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2 id="pro">Getting more out of pixeldrain</h2>
|
<h2 id="pro">Getting more out of pixeldrain</h2>
|
||||||
<p>
|
<p>
|
||||||
|
@@ -38,16 +38,27 @@ func adType() int {
|
|||||||
amarulaSolutions = 4
|
amarulaSolutions = 4
|
||||||
adMaven = 5
|
adMaven = 5
|
||||||
propellerAds = 7
|
propellerAds = 7
|
||||||
brave = 8
|
pdpro1 = 8
|
||||||
|
pdpro2 = 9
|
||||||
|
pdpro3 = 10
|
||||||
|
pdpro4 = 11
|
||||||
)
|
)
|
||||||
|
|
||||||
// Intn returns a number up to n, but never n itself. So to get a random 0
|
// Intn returns a number up to n, but never n itself. So to get a random 0
|
||||||
// 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(5); i {
|
switch i := rand.Intn(15); i {
|
||||||
case 0:
|
case 0, 1, 2:
|
||||||
return amarulaSolutions
|
return amarulaSolutions
|
||||||
case 1, 2, 3, 4:
|
case 3:
|
||||||
|
return pdpro1
|
||||||
|
case 4:
|
||||||
|
return pdpro2
|
||||||
|
case 5:
|
||||||
|
return pdpro3
|
||||||
|
case 6:
|
||||||
|
return pdpro4
|
||||||
|
case 7, 8, 9, 10, 11, 12, 13, 14:
|
||||||
return propellerAds
|
return propellerAds
|
||||||
default:
|
default:
|
||||||
panic(fmt.Errorf(
|
panic(fmt.Errorf(
|
||||||
|
Reference in New Issue
Block a user