Remove unreliable fullscreen button

And update ads.txt
This commit is contained in:
2022-11-15 15:52:51 +01:00
parent 1661a2fab1
commit 9c7b16b2bc
2 changed files with 16 additions and 29 deletions

View File

@@ -1,11 +1,14 @@
#pixfuture START updated Oct-17-2022
#pixfuture START updated Nov-3-2022
#4605 has to be changed to a dedicated site ID
pixfuture.com, 4605, DIRECT
google.com, pub-1575911585432548, DIRECT, f08c47fec0942fa0
yahoo.com, 57758, RESELLER, e1a5b5b6e3255540
pubmatic.com, 156078, RESELLER, 5d62403b186f2ace
appnexus.com, 11664, RESELLER, f5ab79cb980f11d1
openx.com, 544096208, RESELLER, 6a698e2ec38604c6
media.net, 8CUIUMTP7, DIRECT
google.com, pub-7439041255533808, RESELLER, f08c47fec0942fa0
google.com, pub-1575911585432548, DIRECT, f08c47fec0942fa0
google.com, pub-4377140038207096, DIRECT, f08c47fec0942fa0
indexexchange.com, 183875, RESELLER, 50b1c356f2c5c8fc
sovrn.com, 378732, RESELLER, fafdf38b16bf6b2b
emxdgt.com, 273, RESELLER, 1e1d41537f7cad7f
@@ -132,4 +135,5 @@ appnexus.com, 13099, RESELLER, f5ab79cb980f11d1
yahoo.com, 58905, RESELLER, e1a5b5b6e3255540
pubmatic.com, 161593, RESELLER, 5d62403b186f2ace
opera.com, pub7733135167424, DIRECT, 55a0c5fd61378de3
#pixfuture END updated Oct-17-2022
google.com, pub-2205121062140812, RESELLER, f08c47fec0942fa0
#pixfuture END updated Nov-3-2022

View File

@@ -257,20 +257,6 @@ const apply_customizations = file => {
}
}
let supports_fullscreen = !!document.documentElement.requestFullscreen
let fullscreen = false
const toggle_fullscreen = () => {
if (!fullscreen) {
document.documentElement.requestFullscreen()
document.getElementById("btn_fullscreen_icon").innerText = "fullscreen_exit"
fullscreen = true
} else {
document.exitFullscreen()
document.getElementById("btn_fullscreen_icon").innerText = "fullscreen"
fullscreen = false
}
}
let copy_url_status = "" // empty, copied, or error
const copy_url = () => {
if (copy_text(window.location.href)) {
@@ -374,13 +360,13 @@ const keyboard_event = evt => {
<svelte:window on:keydown={keyboard_event} on:hashchange={hash_change}/>
<div id="file_viewer" class="file_viewer">
<div class="file_viewer">
<!-- Head elements for the ads -->
<AdHead></AdHead>
<LoadingIndicator loading={loading}/>
<div id="headerbar" class="headerbar">
<div class="headerbar">
<button
on:click={toolbar_toggle}
class="button_toggle_toolbar round"
@@ -398,17 +384,14 @@ const keyboard_event = evt => {
<PixeldrainLogo style="height: 1.6em; width: 1.6em; margin: 0 4px 0 0;"></PixeldrainLogo>
</a>
<div id="file_viewer_headerbar_title" class="file_viewer_headerbar_title">
<div class="file_viewer_headerbar_title">
{#if list.title !== ""}{list.title}<br/>{/if}
{#if file.name !== ""}{file.name}{/if}
</div>
{#if embedded && supports_fullscreen}
<button
class="round"
on:click={toggle_fullscreen}
title="Open this page in full-screen mode">
<i class="icon" id="btn_fullscreen_icon">fullscreen</i>
</button>
{#if embedded}
<a href={window.location.pathname} target="_blank" class="button round" title="Open this page in a new tab">
<i class="icon" id="btn_fullscreen_icon">open_in_new</i>
</a>
{/if}
</div>
@@ -426,7 +409,7 @@ const keyboard_event = evt => {
<CustomBanner src={custom_header} link={custom_header_link} border_top={true}></CustomBanner>
<div class="file_preview_row">
<div id="toolbar" class="toolbar" class:toolbar_visible>
<div class="toolbar" class:toolbar_visible>
{#if view === "file"}
<FileStats file={file}></FileStats>
<div class="separator"></div>