Показать сообщение отдельно
  #3 (permalink)  
Старый 29.11.2019, 00:36
Новичок на форуме
Отправить личное сообщение для thegodzila Посмотреть профиль Найти все сообщения от thegodzila
 
Регистрация: 30.09.2019
Сообщений: 7

</script>
<script type="text/javascript">
String.preferredLanguage = "ru-ru";
</script>
<script type="text/javascript">
if (!window.BUILD_INFO) {
BUILD_INFO = {
useRelativeUrls: false,
currentUrl: window.location.pathname
}
}
window.SC = window.SC || {
MODULE_INFO: {},
LAZY_INSTANTIATION: {},
buildMode: BUILD_INFO.buildMode,
buildNumber: BUILD_INFO.buildNumber,
masteringNumber: BUILD_INFO.masteringNumber,
buildLocale: BUILD_INFO.buildLocale
};
window.SC = window.SC || {
MODULE_INFO: {},
LAZY_INSTANTIATION: {}
};
SC._detectBrowser = function(userAgent, language) {
var version, webkitVersion, isEdge, iOSAgent, iOSDevice, iOSMajorVersion, iOSMinorVersion, browser = {};
userAgent = (userAgent || navigator.userAgent).toLowerCase();
language = language || navigator.language || navigator.browserLanguage;
isEdge = /\sedge\//.test(userAgent);
if (isEdge) {
version = (userAgent.match(/(?:edge\/)([\d\.]*)/) || [])[1]
} else {
version = (userAgent.match(/.*(?:rv|chrome|webkit|opera|ie)[\/: ](.+?)([ \);]|$)/) || [])[1]
}
browser.version = version;
webkitVersion = (userAgent.match(/webkit\/(.+?) /) || [])[1];
browser.windows = browser.isWindows = !! /windows/.test(userAgent);
browser.lion = browser.isLion = !! (/mac os x 10[_\.][7-9]/.test(userAgent) && !/like mac os x 10[_\.][7-9]/.test(userAgent));
browser.android = browser.isAndroid = !! /android/.test(userAgent);
browser.silk = browser.isSilk = !! /silk/.test(userAgent);
browser.opera = /opera/.test(userAgent) ? version : 0;
browser.isOpera = !! browser.opera;
browser.msie = /msie \d+\.\d+|trident\/\d+\.\d.*; rv:\d+\.\d+[;\)]/.test(userAgent) && !browser.opera ? version : 0;
browser.isIE = !! browser.msie;
browser.isIE8OrLower = !! (browser.msie && parseInt(browser.msie, 10) <= 8);
browser.isIE9OrLower = !! (browser.msie && parseInt(browser.msie, 10) <= 9);
browser.isIE10OrLower = !! (browser.msie && parseInt(browser.msie, 10) <= 10);
browser.isIE10 = !! (browser.msie && parseInt(browser.msie, 10) === 10);
browser.isIE11 = !! (browser.msie && parseInt(browser.msie, 10) === 11);
browser.edge = isEdge ? version : 0;
browser.isEdge = isEdge;
browser.mozilla = !isEdge && /mozilla/.test(userAgent) && !/(compatible|webkit|msie|trident)/.test(userAgent) ? version : 0;
browser.isMozilla = !! browser.mozilla;
browser.webkit = (!isEdge && /webkit/.test(userAgent)) ? webkitVersion : 0;
browser.isWebkit = !! browser.webkit;
browser.chrome = !isEdge && /chrome/.test(userAgent) ? version : 0;
browser.isChrome = !! browser.chrome;
var probablyMac = !! /macintosh/.test(userAgent) || (/mac os x/.test(userAgent) && !/like mac os x/.test(userAgent));
var supportsTouch = navigator.maxTouchPoints > 0;
var isDesktopClassIpad = probablyMac && supportsTouch && !browser.isChrome;
iOSAgent = userAgent.split(/\s*[(]\s*/) || [];
iOSDevice = iOSAgent[1];
iOSDeviceVersion = iOSAgent[2] ? iOSAgent[2].match(/(\d{1,})_(\d{1,})/i) : null;
if (isDesktopClassIpad) {
iOSMajorVersion = 13;
iOSMinorVersion = 0
} else {
iOSMajorVersion = iOSDeviceVersion ? iOSDeviceVersion[1] : null;
iOSMinorVersion = iOSDeviceVersion ? iOSDeviceVersion[2] : null
}
browser.mac = browser.isMac = probablyMac && !isDesktopClassIpad;
browser.iPhone = browser.isiPhone = (iOSDevice === "iphone");
browser.iPod = browser.isiPod = (iOSDevice && iOSDevice.indexOf("ipod") > -1);
browser.iPad = browser.isiPad = (iOSDevice === "ipad") || isDesktopClassIpad;
browser.iOS = browser.isiOS = browser.iPhone || browser.iPod || browser.iPad;
browser.iOSMajorVersion = browser.iOS ? iOSMajorVersion * 1 : undefined;
browser.iOSMinorVersion = browser.iOS ? iOSMinorVersion * 1 : undefined;
browser.mobileSafari = (/apple.*mobile/.test(userAgent) && browser.iOS ? webkitVersion : 0) || isDesktopClassIpad;
browser.isMobileSafari = !! browser.mobileSafari;
browser.iPadSafari = browser.iPad && browser.isMobileSafari ? webkitVersion : 0;
browser.isiPadSafari = !! browser.iPadSafari;
browser.iPhoneSafari = browser.iPhone && browser.isMobileSafari ? webkitVersion : 0;
browser.isiPhoneSafari = !! browser.iphoneSafari;
browser.iPodSafari = browser.iPod && browser.isMobileSafari ? webkitVersion : 0;
browser.isiPodSafari = !! browser.iPodSafari;
browser.isiOSHomeScreen = browser.isMobileSafari && !/apple.*mobile.*safari/.test(userAgent);
browser.safari = browser.webkit && !browser.chrome && !browser.iOS && !browser.android ? webkitVersion : 0;
browser.isSafari = !! browser.safari;
browser.language = language.split("-", 1)[0];
browser.current = browser.edge ? "edge" : browser.msie ? "msie" : browser.mozilla ? "mozilla" : browser.chrome ? "chrome" : browser.safari ? "safari" : browser.opera ? "opera" : browser.mobileSafari ? "mobile-safari" : browser.android ? "android" : "unknown";
return browser
};
SC.browser = SC._detectBrowser();
if (typeof SC_benchmarkPreloadEvents !== "undefined") {
SC.benchmarkPreloadEvents = SC_benchmarkPreloadEvents;
SC_benchmarkPreloadEvents = undefined
} else {
SC.benchmarkPreloadEvents = {
headStart: new Date().getTime()
}
}
Ответить с цитированием