I noticed these two lines in the initOverlay function, and it seems that you're using calc that doesn't calc anything. From experience I noticed that calc doesn't work in some cases, especially Safari. Which could cause the width and height to break. Is there any reason to why you use calc here? If not you should consider removing it to minimise the risk of it breaking cross browser.
I noticed these two lines in the
initOverlay
function, and it seems that you're using calc that doesn't calc anything. From experience I noticed that calc doesn't work in some cases, especially Safari. Which could cause the width and height to break. Is there any reason to why you use calc here? If not you should consider removing it to minimise the risk of it breaking cross browser.