Skip to content

Instantly share code, notes, and snippets.

Created March 14, 2016 21:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Web Detection Tools
if (!!window.MSInputMethodContext && !!document.documentMode) {document.documentElement.className+=' ie11';}
<!--[if !IE]><!--><script>if(/*@cc_on!@*/false){document.documentElement.className+=' ie10';}</script><!--<![endif]-->
!function(){var t=function(){var t=function(){var t=window.orientation;switch(t){case 90:case-90:t="landscape";break;default:t="portrait"}document.documentElement.setAttribute("data-orientation",t)};window.addEventListener("orientationchange",t,!1),t()};window.addEventListener("DOMContentLoaded",t,!1)}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment