Skip to content

Instantly share code, notes, and snippets.

@owldesign
Created Mar 14, 2016
Embed
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