Fix some typing errors

This commit is contained in:
Fornax committed 2021-09-03 17:41:32 +02:00
1 parent b15ea41481
commit 53fcdaaa61
3 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ function IntroPopup() {
// Sometimes the layout is not correctly calculated yet when this script
// runs. We adjust the values later
setTimeout(() => { this.moveToElement(btnHome) }, 100)
setTimeout(() => { this.moveToElement(btnHome) }, 400)
}
IntroPopup.prototype.moveToElement = function (el) {
+1 -1
View File
@@ -202,7 +202,7 @@ Viewer.prototype.renderSponsors = function () {
// Because of the scale transformation the automatic margins don't work
// anymore. So we have to manually calculate the margin. Here we take the
// width of the viewport - the width of the ad to calculate the amount of
// pixels around the ad. We multiply the ad size by the scale we calcualted
// pixels around the ad. We multiply the ad size by the scale we calculated
// to account for the smaller size.
let offset = (window.innerWidth - (bannerWidth * scale)) / 2