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
</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
</li>
</ul>

View File

@@ -156,13 +156,18 @@
</div>
<div>
<div class="feat_label">
<a href="javascript:void(0);" onclick="return explainFileExpiry();">File expiry</a>
File expiry
</div>
<div class="feat_normal">
30 days after the last time it is viewed
</div>
<div class="feat_pro">
<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>
@@ -192,9 +197,7 @@
</div>
<div>
<div class="feat_label">
<a href="javascript:void(0);" onclick="return explainDirectLinking();">
Hotlinking
</a>
Hotlinking
</div>
<div class="feat_normal">
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:
set_ad_type("publisherrest_1")
break
case 1:
set_ad_type("brave")
break
case 2:
case 1:
set_ad_type("aads1")
break
case 3:
case 2:
set_ad_type("ads.plus")
break
case 4:
case 3:
set_ad_type("pixfuture")
break
case 5:
case 4:
set_ad_type("adaround")
break
}
@@ -88,13 +85,13 @@ const resize = () => {
adsplus_loaded.subscribe(v => {
if (v) {
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/21673142571/299__pixeldrain.com__default__728x90_1', [728, 90], 'div-gpt-ad-pixeldraincom728x90_1').addService(googletag.pubads());
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
googletag.cmd.push(function() { googletag.display('div-gpt-ad-pixeldraincom728x90_1'); });
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/21673142571/299__pixeldrain.com__default__728x90_1', [728, 90], 'div-gpt-ad-pixeldraincom728x90_1').addService(googletag.pubads());
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
googletag.cmd.push(function() { googletag.display('div-gpt-ad-pixeldraincom728x90_1'); });
}
})
</script>

View File

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

View File

@@ -211,7 +211,7 @@ function downloadFiles() {
}
// Create a list of file ID's separated by commas
let ids = selected.reduce((acc, curr) => acc + curr.id + ",", "")
let ids = selected.reduce((acc, curr) => acc + curr.id + ",", "")
// Remove the last comma
ids = ids.slice(0, -1)