Created
December 16, 2014 15:59
-
-
Save ludo6577/07fc6ac9750606f3ee79 to your computer and use it in GitHub Desktop.
Tricks: Disable F5, resizing, scrollbars
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
//Disable F5 | |
$(document).on("keydown", function disableF5(e) { | |
if ((e.which || e.keyCode) == 116) e.preventDefault(); | |
}); | |
//Disable resizing | |
var size = [window.outerWidth, window.outerHeight]; | |
$(window).resize(function () { | |
window.resizeTo(size[0], size[1]); | |
}); | |
//Remove scroll bars | |
$("body").css("overflow", "hidden"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment