Adjust ad positioning
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
font-size: 0;
|
font-size: 0;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
.file_viewer > .sponsors > * {
|
.file_viewer > .sponsors > .sponsors_banner {
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
|
@@ -112,7 +112,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ else if eq .Other.AdBannerType 15 }}
|
{{ else if eq .Other.AdBannerType 15 }}
|
||||||
<!-- AuctionX Display platform tag START -->
|
<!-- 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>
|
<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 -->
|
<!-- AuctionX Display platform tag END -->
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -93,8 +93,8 @@ func (vd *viewerData) adType(files []pixelapi.ListFile) {
|
|||||||
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
|
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the file is larger than 10 MB we enable floating popups
|
// If the file is larger than 50 MB we enable floating popups
|
||||||
if avgSize > 10e6 {
|
if avgSize > 50e6 {
|
||||||
vd.AdFloaterType = propellerFloat
|
vd.AdFloaterType = propellerFloat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user