change banner to amarulasolutions

This commit is contained in:
2020-09-18 00:34:00 +02:00
parent 2176d93ae8
commit 5a1de7c67c
7 changed files with 10 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

View File

@@ -19,9 +19,9 @@ Keep in mind that these are maximums, you are allowed to go lower.
|--------------------------|--------------|-------------|
| Storage price per month | € 1.50 / TB | {{ div 1.50 $price | formatSC }} / TB |
| Download price | € 1.00 / TB | {{ div 1 $price | formatSC }} / TB |
| Upload price | € 0.50 / TB | {{ div 0.50 $price | formatSC }} / TB |
| Upload price | € 0.50 / TB | {{ div 1 $price | formatSC }} / TB |
| Collateral per month | € 5.00 / TB | {{ div 5 $price | formatSC }} / TB |
| Contract formation price | € 0.01 | {{ div 0.01 $price | formatSC }} |
| Contract formation price | € 0.01 | {{ div 0.05 $price | formatSC }} |
<sup>
Based on exchange rates from Kraken.

View File

@@ -214,7 +214,7 @@ function getStats(order) {
<td>${formatDataVolume(v.free_space, 3)}</td>
<td>${formatDataVolume(v.min_free_space, 3)}</td>`
if (v.free_space < v.min_free_space/2) {
if (v.free_space < v.min_free_space/2 || !v.reachable) {
row.classList.add("highlight_red")
} else if (v.free_space < v.min_free_space) {
row.classList.add("highlight_blue")

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -150,6 +150,10 @@
<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>
{{else if eq .Other.AdType 4}}
<a class="sponsors_banner" style="display: inline-block; width: 576px; height: 96px;" href="/click/DtZ3hHT9?target=https%3A%2F%2Fwww.amarulasolutions.com">
<img src="/res/img/misc/banner_amarulasolutions.png" style="width: 100%; height: 100%" />
</a>
{{end}}
</div>
{{end}}

View File

@@ -37,13 +37,14 @@ func adType() (i int) {
// The return value corresponds to the type of ad shown:
// 0: A-ads
// 1: Amarulasolutions
// 1: Amarula Electronics
// 2: Patreon
// 3: Soul Studio Yoga
// 4: Amarula Solutions
switch i {
case 0, 1, 2, 3, 4: // 5/8 of the traffic
return 3
return 4
case 5, 6, 7: // 3/8 of traffic
return 2
default: