X-Git-Url: https://scm.cri.mines-paristech.fr/git/Epoz.git/blobdiff_plain/38932404cd4009792b5064f360cdd101e455064f..e12f4a95372036c721467827829f60a68ef92048:/epoz/epoz_core/epoz_script_detect.js.dtml diff --git a/epoz/epoz_core/epoz_script_detect.js.dtml b/epoz/epoz_core/epoz_script_detect.js.dtml old mode 100755 new mode 100644 index 816a0a5..3d9216d --- a/epoz/epoz_core/epoz_script_detect.js.dtml +++ b/epoz/epoz_core/epoz_script_detect.js.dtml @@ -82,6 +82,7 @@ function BrowserDetect() { this.isMac = (ua.indexOf('mac') != -1); this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1) this.isLinux = (ua.indexOf('linux') != -1); + this.isMobile = (ua.indexOf('mobile') != -1); // specific browser shortcuts this.isNS4x = (this.isNS && this.versionMajor == 4); @@ -100,8 +101,10 @@ function BrowserDetect() { this.isIE5up = (this.isIE && this.versionMajor >= 5); this.isIE6x = (this.isIE && this.versionMajor == 6); this.isIE6up = (this.isIE && this.versionMajor >= 6); + this.isIE7max = (this.isIE && this.versionMajor <= 7); this.isIE8max = (this.isIE && this.versionMajor <= 8); this.isIE10 = (this.isIE && this.versionMajor == 10); + this.isIE10max = (this.isIE && this.versionMajor <= 10); this.isIE11 = (this.isIE && this.versionMajor == 11); this.isIE4xMac = (this.isIE4x && this.isMac);