Air Canada – The Official Website


0) { if ((/Edge/12./i.test(navigator.userAgent)) || (/Edge/.test(navigator.userAgent))) { isMSSurface = true; } } function getImageHtmlCode() { var dataIndex = Math.floor(Math.random() * imageUrls.length); var bannerInnerHtml = “”; if(imageUrls[dataIndex].img.imageLink){ if(imageUrls[dataIndex].img.trackcode) { bannerInnerHtml += ““; } if(coreViewportWidth >= 768){ if(imageUrls[dataIndex].img.src.newGenImg) { bannerInnerHtml += ““; } else { bannerInnerHtml += ““; } if(imageUrls[dataIndex].img.imageLink){ bannerInnerHtml += “”; } bannerInnerHtml += “]]>“; if(document.getElementById(‘pagePromoBanner-wrapper’)){ document.getElementById(‘pagePromoBanner-wrapper’).innerHTML = bannerInnerHtml; } } } getImageHtmlCode(); if(window.attachEvent) { window.attachEvent(‘onresize’, function() { coreViewportWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); getImageHtmlCode(); }); } else if(window.addEventListener) { window.addEventListener(‘resize’, function() { coreViewportWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); getImageHtmlCode(); }, true); } })();

Source

Leave a Reply

Your email address will not be published. Required fields are marked *