Skip to content

Instantly share code, notes, and snippets.

@markusvonplunkett
Created September 25, 2015 15:38
Show Gist options
  • Save markusvonplunkett/2ad99528778255f74f59 to your computer and use it in GitHub Desktop.
Save markusvonplunkett/2ad99528778255f74f59 to your computer and use it in GitHub Desktop.
IE10-11-12 Detection
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