CINXE.COM
Redirection Page
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.3.min.js"></script> <title>Redirection Page</title> <script> var PartnerCode; function getQryStrParamValues(param) { var url = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < url.length; i++) { var urlparam = url[i].split('='); if (urlparam[0].toLowerCase() == param.toLowerCase()) { return urlparam[1].toLowerCase(); } } } function getRandomPartnerCode_W069() { var partnerCodes = ["W188", "W190", "W191", "W192"]; return partnerCodes[Math.floor(Math.random() * partnerCodes.length)]; } function getRandomPartnerCode_W099() { var partnerCodes = ["W226", "W227"]; return partnerCodes[Math.floor(Math.random() * partnerCodes.length)]; } function CheckQueryString(PartnerCode, Market, src, rl) { var link = "https://bingwallpaper.microsoft.com/api/BWC/updateReferenceLinkBing"; var queryString = ""; if (PartnerCode != undefined && PartnerCode != "") { queryString += "pc=" + PartnerCode.toUpperCase() + "&"; } if (Market != undefined && Market != "") { queryString += "mkt=" + Market + "&"; } if (src != undefined && src != "") { queryString += "src=" + src + "&"; } if (rl != undefined && rl != "") { queryString += "rl=" + rl; } if (queryString.substring(queryString.length - 1, queryString.length) == "&") { queryString = queryString.substring(0, queryString.length - 1); } if (queryString != "") { link += "?" + queryString; } return link; } function getOS() { let userAgent = window.navigator.userAgent; if (userAgent.indexOf("Windows NT") !== -1) { return "Windows"; } else if (userAgent.indexOf("Mac OS X") !== -1) { return "Mac"; } return "Unknown"; } $(document).ready(function () { PartnerCode = getQryStrParamValues('pc'); //Start: Amplify Tracking Script if (PartnerCode == "w147") { (function (w, d, t, r, u) { var f, n, i; w[u] = w[u] || [], f = function () { var o = { ti: "149014669" }; o.q = w[u], w[u] = new UET(o), w[u].push("pageLoad") }, n = d.createElement(t), n.src = r, n.async = 1, n.onload = n.onreadystatechange = function () { var s = this.readyState; s && s !== "loaded" && s !== "complete" || (f(), n.onload = n.onreadystatechange = null) }, i = d.getElementsByTagName(t)[0], i.parentNode.insertBefore(n, i) })(window, document, "script", "//bat.bing.com/bat.js", "uetq"); } // End: Amplify Tracking Script var Brand = getQryStrParamValues('brand'); var Market = getQryStrParamValues('mkt'); var rl = getQryStrParamValues('rl'); var src = getQryStrParamValues('source'); if (PartnerCode == "w099") { PartnerCode = getRandomPartnerCode_W099(); if (PartnerCode != "W189") { Brand = "bing"; } } var apiURL = "https://bingwallpaper.microsoft.com/api/BWC/getPackageURL?brand=" + Brand + "&pc=" + PartnerCode; if (Market != undefined) { apiURL += "&mkt=" + Market; } if (document.referrer != "") { rl = document.referrer; } var apiUpdateURL = CheckQueryString(PartnerCode, Market, src, rl); $.ajax({ url: apiUpdateURL, type: "GET", success: function (resultData) { }, error: function (textStatus, errorThrown) { } }); var userLanguage = navigator.language.toLowerCase() || navigator.userLanguage.toLowerCase() || "en-us"; var os = getOS(); // API Call to get Download URL if (os === "Windows") { $.ajax({ url: apiURL, type: "GET", success: function (resultData) { // console.log("strRedirectionURL:" + strRedirectionURL); window.location = resultData; var timeOutValue = 1000; var supportedPartnerCodes = ["W022", "W133", "W134", "W135", "W151", "W155"]; // Internet Explorer 6-11 var isIE = /*@cc_on!@*/ false || !!document.documentMode; if (isIE) { timeOutValue = 5000; } setTimeout(function () { //var strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper/index.html"; var strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper/index.html"; if (Brand == "bing") { if (userLanguage == 'am-et' || userLanguage == 'ar-sa' || userLanguage == 'bg-bg' || userLanguage == 'bs-latn-ba' || userLanguage == 'cs-cz' || userLanguage == 'da-dk' || userLanguage == 'de-at' || userLanguage == 'de-ch' || userLanguage == 'de-de' || userLanguage == 'el-gr' || userLanguage == 'en-au' || userLanguage == 'en-ca' || userLanguage == 'en-gb' || userLanguage == 'en-id' || userLanguage == 'en-ie' || userLanguage == 'en-in' || userLanguage == 'en-my' || userLanguage == 'en-nz' || userLanguage == 'en-ph' || userLanguage == 'en-sg' || userLanguage == 'en-us' || userLanguage == 'en-za' || userLanguage == 'es-ar' || userLanguage == 'es-es' || userLanguage == 'es-mx' || userLanguage == 'et-ee' || userLanguage == 'fa-ir' || userLanguage == 'fi-fi' || userLanguage == 'fr-be' || userLanguage == 'fr-ca' || userLanguage == 'fr-fr' || userLanguage == 'he-il' || userLanguage == 'hr-hr' || userLanguage == 'hu-hu' || userLanguage == 'it-it' || userLanguage == 'ja-jp' || userLanguage == 'kk-kz' || userLanguage == 'ko-kr' || userLanguage == 'lt-lt' || userLanguage == 'lv-lv' || userLanguage == 'nb-no' || userLanguage == 'nl-be' || userLanguage == 'nl-nl' || userLanguage == 'pl-pl' || userLanguage == 'pt-br' || userLanguage == 'pt-pt' || userLanguage == 'ro-ro' || userLanguage == 'ru-ru' || userLanguage == 'sk-sk' || userLanguage == 'sl-si' || userLanguage == 'sq-al' || userLanguage == 'sr-cyrl-rs' || userLanguage == 'sr-latn-rs' || userLanguage == 'sv-se' || userLanguage == 'th-th' || userLanguage == 'tr-tr' || userLanguage == 'uk-ua' || userLanguage == 'vi-vn' || userLanguage == 'zh-cn' || userLanguage == 'zh-hk' || userLanguage == 'zh-tw') { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper/index.html" + "?pc=" + PartnerCode; } else { if (PartnerCode != undefined) { if (supportedPartnerCodes.includes(PartnerCode.toUpperCase())) { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper/index.html"; } strLandingPage += "?pc=" + PartnerCode; } } } else if (Brand == "msn") { if (userLanguage == 'am-et' || userLanguage == 'ar-sa' || userLanguage == 'bg-bg' || userLanguage == 'bs-latn-ba' || userLanguage == 'cs-cz' || userLanguage == 'da-dk' || userLanguage == 'de-at' || userLanguage == 'de-ch' || userLanguage == 'de-de' || userLanguage == 'el-gr' || userLanguage == 'en-au' || userLanguage == 'en-ca' || userLanguage == 'en-gb' || userLanguage == 'en-id' || userLanguage == 'en-ie' || userLanguage == 'en-in' || userLanguage == 'en-my' || userLanguage == 'en-nz' || userLanguage == 'en-ph' || userLanguage == 'en-sg' || userLanguage == 'en-us' || userLanguage == 'en-za' || userLanguage == 'es-ar' || userLanguage == 'es-es' || userLanguage == 'es-mx' || userLanguage == 'et-ee' || userLanguage == 'fa-ir' || userLanguage == 'fi-fi' || userLanguage == 'fr-be' || userLanguage == 'fr-ca' || userLanguage == 'fr-fr' || userLanguage == 'he-il' || userLanguage == 'hr-hr' || userLanguage == 'hu-hu' || userLanguage == 'it-it' || userLanguage == 'ja-jp' || userLanguage == 'kk-kz' || userLanguage == 'ko-kr' || userLanguage == 'lt-lt' || userLanguage == 'lv-lv' || userLanguage == 'nb-no' || userLanguage == 'nl-be' || userLanguage == 'nl-nl' || userLanguage == 'pl-pl' || userLanguage == 'pt-br' || userLanguage == 'pt-pt' || userLanguage == 'ro-ro' || userLanguage == 'ru-ru' || userLanguage == 'sk-sk' || userLanguage == 'sl-si' || userLanguage == 'sq-al' || userLanguage == 'sr-cyrl-rs' || userLanguage == 'sr-latn-rs' || userLanguage == 'sv-se' || userLanguage == 'th-th' || userLanguage == 'tr-tr' || userLanguage == 'uk-ua' || userLanguage == 'vi-vn' || userLanguage == 'zh-cn' || userLanguage == 'zh-hk' || userLanguage == 'zh-tw') { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper-msn/" + "?pc=" + PartnerCode; } else { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper-msn/"; if (PartnerCode != undefined) { strLandingPage += "?pc=" + PartnerCode; } } } else if (Brand == "msnews") { if (userLanguage == 'am-et' || userLanguage == 'ar-sa' || userLanguage == 'bg-bg' || userLanguage == 'bs-latn-ba' || userLanguage == 'cs-cz' || userLanguage == 'da-dk' || userLanguage == 'de-at' || userLanguage == 'de-ch' || userLanguage == 'de-de' || userLanguage == 'el-gr' || userLanguage == 'en-au' || userLanguage == 'en-ca' || userLanguage == 'en-gb' || userLanguage == 'en-id' || userLanguage == 'en-ie' || userLanguage == 'en-in' || userLanguage == 'en-my' || userLanguage == 'en-nz' || userLanguage == 'en-ph' || userLanguage == 'en-sg' || userLanguage == 'en-us' || userLanguage == 'en-za' || userLanguage == 'es-ar' || userLanguage == 'es-es' || userLanguage == 'es-mx' || userLanguage == 'et-ee' || userLanguage == 'fa-ir' || userLanguage == 'fi-fi' || userLanguage == 'fr-be' || userLanguage == 'fr-ca' || userLanguage == 'fr-fr' || userLanguage == 'he-il' || userLanguage == 'hr-hr' || userLanguage == 'hu-hu' || userLanguage == 'it-it' || userLanguage == 'ja-jp' || userLanguage == 'kk-kz' || userLanguage == 'ko-kr' || userLanguage == 'lt-lt' || userLanguage == 'lv-lv' || userLanguage == 'nb-no' || userLanguage == 'nl-be' || userLanguage == 'nl-nl' || userLanguage == 'pl-pl' || userLanguage == 'pt-br' || userLanguage == 'pt-pt' || userLanguage == 'ro-ro' || userLanguage == 'ru-ru' || userLanguage == 'sk-sk' || userLanguage == 'sl-si' || userLanguage == 'sq-al' || userLanguage == 'sr-cyrl-rs' || userLanguage == 'sr-latn-rs' || userLanguage == 'sv-se' || userLanguage == 'th-th' || userLanguage == 'tr-tr' || userLanguage == 'uk-ua' || userLanguage == 'vi-vn' || userLanguage == 'zh-cn' || userLanguage == 'zh-hk' || userLanguage == 'zh-tw') { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper-msn/" + "?pc=" + PartnerCode; } else { strLandingPage = "https://bingwallpaper.microsoft.com/Windows/bing/bing-wallpaper-msn/"; if (PartnerCode != undefined) { strLandingPage += "?pc=" + PartnerCode; } } } if (strLandingPage != "") { window.location = strLandingPage; } }, timeOutValue); }, error: function (textStatus, errorThrown) { } }); } else if (os === "Mac") { var macPC = "mw011"; if (PartnerCode == "w197") { macPC = "mw018" } //var macLandingPage = "https://bingwallpaper.microsoft.com/mac/en/bing/bing-wallpaper/index.html"; var macLandingPage = "https://bingwallpaper.microsoft.com/mac/en/bing/bing-wallpaper/index.html"; macLandingPage += "?pc=" + macPC; window.location = macLandingPage; } else { console.log("Unsupported OS") } }); </script> </head> <body> </body> </html>