Created
January 22, 2015 13:29
-
-
Save yratof/c0346890206c2644022d to your computer and use it in GitHub Desktop.
Three Finger Tap on Android Device to see Modernizr Classes
This file contains hidden or 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
<script type="text/javascript">/* Three Finger Tap on Android to see <html> Classes. Perfect for Modernizr */if(/android/gi.test(navigator.appVersion)){console={_log:[],log:function(){var e=[];for(var t=0;t<arguments.length;t++){e.push(arguments[t])}this._log.push(e.join(", "))},trace:function(){var e;try{throw new Error}catch(t){e=t.stack}console.log("console.trace()\n"+e.split("\n").slice(2).join(" \n"))},dir:function(e){console.log("Content of "+e);for(var t in e){var n=typeof e[t]==="function"?"function":e[t];console.log(' -"'+t+'" -> "'+n+'"')}},show:function(){alert(this._log.join("\n"));this._log=[]}};window.onerror=function(e,t,n){console.log('ERROR: "'+e+'" at "'+'", line '+n)};window.addEventListener("touchstart",function(e){if(e.touches.length===3){console.log($("html").attr("class"));console.show()}})}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment