bachelorthesis/Webseiten/Thunderbird — Software made.../site-bundle.6009f70fa7b1.js

1 line
3.2 KiB
JavaScript

(function(){"use strict";window.site={getPlatform:function(ua,pf){pf=pf===""?"":pf||navigator.platform;ua=ua||navigator.userAgent;if(/Win(16|9[x58]|NT( [1234]| 5\.0| [^0-9]|[^ -]|$))/.test(ua)||/Windows ([MC]E|9[x58]|3\.1|4\.10|NT( [1234]\D| 5\.0| [^0-9]|[^ ]|$))/.test(ua)||/Windows_95/.test(ua)){return"oldwin"}if(pf.indexOf("Win32")!==-1||pf.indexOf("Win64")!==-1){return"windows"}if(/android/i.test(ua)){return"android"}if(/linux/i.test(pf)||/linux/i.test(ua)){return"linux"}if(pf.indexOf("MacPPC")!==-1){return"oldmac"}if(/Mac OS X 10.[0-5]\D/.test(ua)){return"oldmac"}if(pf.indexOf("iPhone")!==-1||pf.indexOf("iPad")!==-1||pf.indexOf("iPod")!==-1){return"ios"}if(ua.indexOf("Mac OS X")!==-1){return"osx"}if(ua.indexOf("MSIE 5.2")!==-1){return"oldmac"}if(pf.indexOf("Mac")!==-1){return"oldmac"}if(pf===""&&/Firefox/.test(ua)){return"fxos"}return"other"},getPlatformVersion:function(ua){ua=ua||navigator.userAgent;var match=ua.match(/Windows\ NT\ (\d+\.\d+)/)||ua.match(/Mac\ OS\ X\ (\d+[\._]\d+)/)||ua.match(/Android\ (\d+\.\d+)/);return match?match[1].replace("_","."):undefined},getArchType:function(ua,pf){pf=pf===""?"":pf||navigator.platform;ua=ua||navigator.userAgent;var re;if(/Windows/.test(ua)&&/ARM/.test(ua)){return"armv7"}if(navigator.cpuClass){return navigator.cpuClass.toLowerCase()}re=/armv\d+/i;if(re.test(pf)||re.test(ua)){return RegExp.lastMatch.toLowerCase()}if(/aarch64/.test(pf)){return"armv8"}re=/PowerPC|PPC/i;if(re.test(pf)||re.test(ua)){return"ppc"}return"x86"},getArchSize:function(ua,pf){pf=pf===""?"":pf||navigator.platform;ua=ua||navigator.userAgent;var re=/x64|x86_64|Win64|WOW64|aarch64/i;if(re.test(pf)||re.test(ua)){return 64}return 32},platform:"other",platformVersion:undefined,archType:"x64",archSize:32};(function(){var h=document.documentElement;var platform=window.site.platform=window.site.getPlatform();var version=window.site.platformVersion=window.site.getPlatformVersion();if(platform==="windows"){if(version&&parseFloat(version)>=6.1){h.className+=" win7up"}}else{h.className=h.className.replace("windows",platform);if(platform==="android"&&version&&parseFloat(version)===2.3){h.className+=" gingerbread"}}var archType=window.site.archType=window.site.getArchType();var archSize=window.site.archSize=window.site.getArchSize();var isARM=archType.match(/armv(\d+)/);if(archType!=="x86"){h.className=h.className.replace("x86",archType);if(isARM){h.className+=" arm";if(parseFloat(isARM[1])>=7){h.className+=" armv7up"}}}if(archSize===64){h.className+=" x64"}h.className=h.className.replace(/\bno-js\b/,"js")})()})();function _dntEnabled(dnt,ua){"use strict";var dntStatus=dnt||navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack;var ua=ua||navigator.userAgent;var anomalousWinVersions=["Windows NT 6.1","Windows NT 6.2","Windows NT 6.3"];var fxMatch=ua.match(/Firefox\/(\d+)/);var ieRegEx=/MSIE|Trident/i;var isIE=ieRegEx.test(ua);var platform=ua.match(/Windows.+?(?=;)/g);if(isIE&&typeof Array.prototype.indexOf!=="function"){return false}else if(fxMatch&&parseInt(fxMatch[1],10)<32){dntStatus="Unspecified"}else if(isIE&&platform&&anomalousWinVersions.indexOf(platform.toString())!==-1){dntStatus="Unspecified"}else{dntStatus={0:"Disabled",1:"Enabled"}[dntStatus]||"Unspecified"}return dntStatus==="Enabled"?true:false}