Created
September 25, 2015 15:38
-
-
Save markusvonplunkett/2ad99528778255f74f59 to your computer and use it in GitHub Desktop.
IE10-11-12 Detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var useragent = navigator.userAgent; | |
var result; | |
//run regex test for rv:11 or like Gecko | |
// | |
switch (result) | |
{ | |
case 'ie10': $('html').addClass('ie10'); | |
break; | |
case 'ie11': $('html').addClass('ie11'); | |
break; | |
default: break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment