Created
March 26, 2014 09:14
-
-
Save jbeee/9779417 to your computer and use it in GitHub Desktop.
Terminal Commands for Smusher, Include in GEMfile google rails debugger, and JS toggle fullscreen
This file contains 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
IMG optimization | |
smusher /apps/x/public/images [options] | |
smusher /apps/x/public/images/x.png [options] | |
smusher /apps/x/public/images/*.png [options] | |
/////////////////////////////////////////////// | |
#GOOGLE RAILS DEBUGGER | |
add to gemfile | |
group :development do | |
gem 'meta_request' | |
end | |
////////////////////////////////////// FULL PAGE SCREENS | |
https://github.com/sindresorhus/screenfull.js | |
function toggleFullScreen() { | |
var doc = window.document; | |
var docEl = doc.documentElement; | |
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen; | |
var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen; | |
if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { | |
requestFullScreen.call(docEl); | |
} | |
else { | |
cancelFullScreen.call(doc); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment