-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathplugins.min.js
More file actions
executable file
·3 lines (3 loc) · 1.36 KB
/
Copy pathplugins.min.js
File metadata and controls
executable file
·3 lines (3 loc) · 1.36 KB
1
2
3
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var e=[].slice.call(arguments);typeof console.log=="object"?log.apply.call(console.log,console,e):console.log.apply(console,e)}};(function(e){function t(){}for(var n="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),r;r=n.pop();)e[r]=e[r]||t})(function(){try{console.log();return window.console}catch(e){return window.console={}}}());(function(e){e.fn.deviceHooks=function(){function n(){return"ontouchstart"in window}var t=function(){e(window).width()>319&&e("html").removeClass("dumb").removeClass("lap").addClass("palm");e(window).width()>719&&e("html").removeClass("palm").removeClass("portable").addClass("lap");e(window).width()>991&&e("html").removeClass("lap").removeClass("desk").addClass("portable");e(window).width()>1439&&e("html").removeClass("portable").removeClass("desk-wide").addClass("desk");e(window).width()>1919&&e("html").removeClass("desk").addClass("desk-wide")};t();n()?e("html").addClass("touch"):e("html").addClass("no-touch");e(window).on("resize",t)}})(jQuery);