Small fixes and ad rotation

This commit is contained in:
2021-11-15 23:57:52 +01:00
parent 98c1ec4042
commit 28492d6bac
5 changed files with 22 additions and 22 deletions

View File

@@ -25,7 +25,7 @@
file to be temporarily unavailable file to be temporarily unavailable
</li> </li>
<li> <li>
File file has been lost due to a problem with the storage The file has been lost due to a problem with the storage
system system
</li> </li>
</ul> </ul>

View File

@@ -156,13 +156,18 @@
</div> </div>
<div> <div>
<div class="feat_label"> <div class="feat_label">
<a href="javascript:void(0);" onclick="return explainFileExpiry();">File expiry</a> File expiry
</div> </div>
<div class="feat_normal"> <div class="feat_normal">
30 days after the last time it is viewed 30 days after the last time it is viewed
</div> </div>
<div class="feat_pro"> <div class="feat_pro">
<span class="text_highlight">90 days</span> after the last time it is viewed <span class="text_highlight">90 days</span> after the last time it is viewed
<br/>
<button class="round" onclick="return explainFileExpiry()">
<i class="icon">info</i>
More information
</button>
</div> </div>
</div> </div>
<div> <div>
@@ -192,9 +197,7 @@
</div> </div>
<div> <div>
<div class="feat_label"> <div class="feat_label">
<a href="javascript:void(0);" onclick="return explainDirectLinking();">
Hotlinking Hotlinking
</a>
</div> </div>
<div class="feat_normal"> <div class="feat_normal">
Rate limiting mode will be enabled when a file has 3 Rate limiting mode will be enabled when a file has 3

View File

@@ -26,23 +26,20 @@ onMount(() => {
} }
} }
switch (Math.floor(Math.random() * 6)) { switch (Math.floor(Math.random() * 5)) {
case 0: case 0:
set_ad_type("publisherrest_1")
break
case 1:
set_ad_type("brave") set_ad_type("brave")
break break
case 2: case 1:
set_ad_type("aads1") set_ad_type("aads1")
break break
case 3: case 2:
set_ad_type("ads.plus") set_ad_type("ads.plus")
break break
case 4: case 3:
set_ad_type("pixfuture") set_ad_type("pixfuture")
break break
case 5: case 4:
set_ad_type("adaround") set_ad_type("adaround")
break break
} }

View File

@@ -29,7 +29,7 @@ onMount(async () => {
} }
} }
if (document.body.clientWidth < 800) { if (document.body.clientWidth < 700) {
visible = false visible = false
dispatch("visibility", false) dispatch("visibility", false)
return return