Fix some typing errors

This commit is contained in:
2021-09-03 17:41:32 +02:00
parent b15ea41481
commit 53fcdaaa61
3 changed files with 7 additions and 4 deletions

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) {

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