- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
if (navigator.userAgent.indexOf("Windows NT 5.1") !== -1) {
this.isWinXP = true;
this.detectedPlatform = "Windows XP"
} else {
if (navigator.userAgent.indexOf("Windows NT 6.0") !== -1) {
this.isWinVista = true;
this.detectedPlatform = "Windows Vista"
} else {
if (navigator.userAgent.indexOf("Windows NT 6.1") !== -1) {
this.isWin7 = true;
this.detectedPlatform = "Windows 7"
} else {
if (navigator.userAgent.indexOf("Windows NT 6.2") !== -1) {
this.isWin8 = true;
this.detectedPlatform = "Windows 8"
} else {
if (navigator.userAgent.indexOf("Mac OS X 10_7") !== -1) {
this.isOSX_SnowLeopard = true;
this.detectedPlatform = "OSX 10.7"
} else {
if (navigator.userAgent.indexOf("Mac OS X 10.8") !== -1) {
this.isOSX_MountainLion = true;
this.detectedPlatform = "OSX 10.8"
} else {
if (navigator.userAgent.indexOf("Mac OS X 10_8") !== -1) {
this.isOSX_MountainLion = true;
this.detectedPlatform = "OSX 10.8"
} else {
if(navigator.userAgent.indexOf("Android") !== -1) {
this.isAndroid = true;
this.detectedPlatform = "Android"
if (navigator.userAgent.indexOf("Android 2.3") !== -1) {
this.isAndroid_Gingerbread = true;
this.detectedPlatform = "Android 2.3"
}
else if(navigator.userAgent.indexOf("Android 4.0") !== -1) {
this.isAndroid_IceCream = true;
this.detectedPlatform = "Android 4.0"
}
else if(navigator.userAgent.indexOf("Android 4.1") !== -1) {
this.isAndroid_JellyBean = true;
this.detectedPlatform = "Android 4.1"
}
}
else if (navigator.userAgent.indexOf("Linux") !== -1) {
this.isLinux = true;
this.detectedPlatform = "Linux"
} else {
if (navigator.userAgent.indexOf("Windows Phone 8") !== -1) {
this.isWinPhone8 = true;
this.detectedPlatform = "Windows Phone 8"
} else {
if (navigator.userAgent.match(/OS 7_[0-9_]+ like Mac OS X/i)) {
this.isIOS7 = true;
this.detectedPlatform = "iOS7"
} else {
if (navigator.userAgent.match(/OS 6_[0-9_]+ like Mac OS X/i)) {
this.isIOS6 = true;
this.detectedPlatform = "iOS6"
} else {
if (navigator.userAgent.match(/OS 5_[0-9_]+ like Mac OS X/i)) {
this.isIOS5 = true;
this.detectedPlatform = "iOS5"
} else {
if (navigator.userAgent.match(/OS 4_[0-9_]+ like Mac OS X/i)) {
this.isIOS4 = true;
this.detectedPlatform = "iOS4"
}
}
}
}
}
}
}
}
}
}
}
}
} if (navigator.userAgent.indexOf("iPhone") !== -1) {
this.isIPhone = true;
this.detectedPlatform = "iPhone " + this.detectedPlatform
} else {
if (navigator.userAgent.indexOf("iPad") !== -1) {
this.IsPad = true;
this.detectedPlatform = "iPad " + this.detectedPlatform
} else {
if (navigator.userAgent.indexOf("iPod") !== -1) {
this.IsPod = true;
this.detectedPlatform = "iPod " + this.detectedPlatform
}
}
} if (navigator.userAgent.indexOf("MSIE 10") !== -1) {
this.isIE10 = true;
this.detectedBrowser = "Internet Explorer 10"