Fix pixfuture skyscraper

This commit is contained in:
2021-10-19 12:07:04 +02:00
parent fc8a9fe9d1
commit 21cd1ddd01
7 changed files with 55 additions and 23 deletions

View File

@@ -29,8 +29,24 @@ Skyscraper.prototype.open = function () {
this.divAdSpace.innerHTML = `<iframe
data-aa="1811738"
src="//ad.a-ads.com/1811738?size=160x600${adsColours}"
style="width:160px; height:600px; border:0px; padding:0; overflow:hidden; background-color: transparent;" >
style="width:160px; height:600px; border:0px; padding:0; overflow:hidden; background-color: transparent;">
</iframe>`
} else if (skyscraperType === "pixfuture") {
let div = document.createElement("div")
div.id = "27513x160x600x4605x_ADSLOT1"
div.setAttribute("clickTrack", "%%CLICK_URL_ESC%%")
this.divAdSpace.appendChild(div)
let script = document.createElement("script")
script.async = "async"
script.type = "text/javascript"
script.src = "https:\/\/served-by.pixfuture.com/www/delivery/headerbid.js"
script.setAttribute("slotId", "27513x160x600x4605x_ADSLOT1")
script.setAttribute("refreshTime", "5")
script.setAttribute("refreshInterval", "60")
document.head.appendChild(script)
} else {
return
}

View File

@@ -27,8 +27,8 @@ VideoViewer.prototype.render = function (parent) {
parent.appendChild(vidContainer)
// Possible fix for ios 15 video bug?
this.videoSource.src = this.file.get_href
this.videoSource.type = this.file.mime_type
videoSource.src = this.file.get_href
videoSource.type = this.file.mime_type
} else {
let container = document.createElement("div")
container.classList = "image-container"

View File

@@ -180,6 +180,11 @@
transition: right 0.5s;
background-color: var(--layer_2_color);
}
.file_viewer > .file_viewer_window > .skyscraper > .skyscraper_ad_space {
width: 100%;
height: 100%;
}
/* =====================
== FILE CONTAINERS ==

View File

@@ -150,7 +150,7 @@
<button id="btn_skyscraper_close" class="round">
<i class="icon">close</i> Close ad
</button>
<div id="skyscraper_ad_space"></div>
<div id="skyscraper_ad_space" class="skyscraper_ad_space"></div>
</div>
</div>