myPay Web Site

May 3, 2021


myPay Web Site “); WindowObject.document.writeln(“Smart LES”); WindowObject.document.writeln(document.getElementById(modalId).innerHTML); WindowObject.document.close(); setTimeout(function () { WindowObject.focus(); WindowObject.print(); WindowObject.close(); }, 6000); } var navUserAgent = navigator.userAgent; //console.log(navUserAgent); //window.alert(navUserAgent); var browserName = navigator.appName; var browserVersion = ” + parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion, 10); var tempNameOffset, tempVersionOffset, tempVersion; if ((tempVersionOffset = navUserAgent.indexOf(“Opera”)) != -1) { browserName = “Opera”; browserVersion = navUserAgent.substring(tempVersionOffset + 6); if ((tempVersionOffset = navUserAgent.indexOf(“Version”)) != -1) browserVersion = navUserAgent.substring(tempVersionOffset + 8); } else if ((tempVersionOffset = navUserAgent.indexOf(“MSIE”)) != -1) { browserName = “Microsoft Internet Explorer”; browserVersion = navUserAgent.substring(tempVersionOffset + 5); } else if ((tempVersionOffset = navUserAgent.indexOf(“Trident”)) != -1) { browserName = “Microsoft Internet Explorer”; tempVersionOffset = navUserAgent.indexOf(“rv”); browserVersion = navUserAgent.substring(tempVersionOffset + 3); } else if ((tempVersionOffset = navUserAgent.indexOf(“Edge”)) != -1) { browserName = “Edge”; browserVersion = navUserAgent.substring(tempVersionOffset + 5); } else if ((tempVersionOffset = navUserAgent.indexOf(“Chrome”)) != -1) { browserName = “Chrome”; browserVersion = navUserAgent.substring(tempVersionOffset + 7); } else if ((tempVersionOffset = navUserAgent.indexOf(“CriOS”)) != -1) { browserName = “Chrome”; browserVersion = navUserAgent.substring(tempVersionOffset + 6); } else if ((tempVersionOffset = navUserAgent.indexOf(“Safari”)) != -1) { browserName = “Safari”; browserVersion = navUserAgent.substring(tempVersionOffset + 7); if ((tempVersionOffset = navUserAgent.indexOf(“Version”)) != -1) browserVersion = navUserAgent.substring(tempVersionOffset + 8); } else if ((tempVersionOffset = navUserAgent.indexOf(“Firefox”)) != -1) { browserName = “Firefox”; browserVersion = navUserAgent.substring(tempVersionOffset + 8); } else if ((tempNameOffset = navUserAgent.lastIndexOf(‘ ‘) + 1) < (tempVersionOffset = navUserAgent.lastIndexOf('/'))) { browserName = navUserAgent.substring(tempNameOffset, tempVersionOffset); browserVersion = navUserAgent.substring(tempVersionOffset + 1); if (browserName.toLowerCase() == browserName.toUpperCase()) { browserName = navigator.appName; } } // trim version if ((tempVersion = browserVersion.indexOf(";")) != -1) browserVersion = browserVersion.substring(0, tempVersion); if ((tempVersion = browserVersion.indexOf(" ")) != -1) browserVersion = browserVersion.substring(0, tempVersion); if ((tempVersion = browserVersion.indexOf(".")) != -1) browserVersion = browserVersion.substring(0, tempVersion); //window.alert("BrowserName = " + browserName + "n" + "Version = " + browserVersion); var supportedBrowsers = [ { Browser: "Chrome", Version: 72 }, { Browser: "Microsoft Internet Explorer", Version: 11 }, { Browser: "Edge", Version: 80 } ]; var acceptedBrowsers = [ { Browser: "Safari", Version: 12 }, { Browser: "Firefox", Version: 65 } ]; var browserIndex; var alertMessage = "Our website has detected that you are using an unsupported browser that will prevent you from accessing certain features. An update is not required, but it is strongly recommended to improve your myPay experience. nnThe current list of browsers supported by myPay includes:n"; var bulletChar = "•"; for (var i = 0; i < supportedBrowsers.length; i++) { alertMessage += bulletChar + " " + supportedBrowsers[i].Browser + " " + supportedBrowsers[i].Version + " or latern"; } var browserNameList = []; for (var i = 0; i < supportedBrowsers.length; i++) { browserNameList.push(supportedBrowsers[i].Browser); } var isSupported = false; for (var i = 0; i = supportedBrowsers[i].Version) { isSupported = true; break; } } if (!isSupported) { window.alert(alertMessage); } window.addEventListener('load', function () { //alert('Index Load'); }); ]]> Loading…

Source