Adjust ad positioning

This commit is contained in:
2021-09-04 11:20:32 +02:00
parent ec639d9518
commit ebc7bc34e4
3 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@
font-size: 0;
line-height: 0;
}
.file_viewer > .sponsors > * {
.file_viewer > .sponsors > .sponsors_banner {
display: block;
margin: auto;
transform-origin: 0 0;

View File

@@ -112,7 +112,7 @@
</div>
{{ else if eq .Other.AdBannerType 15 }}
<!-- AuctionX Display platform tag START -->
<div id="27517x728x90x4605x_ADSLOT1" clickTrack="%%CLICK_URL_ESC%%" class="sponsors_banner" style="width: 728px; height: 90px;"></div>
<div id="27517x728x90x4605x_ADSLOT1" clickTrack="%%CLICK_URL_ESC%%" style="display: block; margin: auto;"></div>
<script type="text/javascript" async src="https://served-by.pixfuture.com/www/delivery/headerbid.js" slotId="27517x728x90x4605x_ADSLOT1" refreshTime="5" refreshInterval="60"></script>
<!-- AuctionX Display platform tag END -->
{{ end }}

View File

@@ -93,8 +93,8 @@ func (vd *viewerData) adType(files []pixelapi.ListFile) {
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
}
// If the file is larger than 10 MB we enable floating popups
if avgSize > 10e6 {
// If the file is larger than 50 MB we enable floating popups
if avgSize > 50e6 {
vd.AdFloaterType = propellerFloat
}
}