Skip to content

Instantly share code, notes, and snippets.

@craig-ludington
Created October 14, 2015 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craig-ludington/b60501a1780a913fe129 to your computer and use it in GitHub Desktop.
Save craig-ludington/b60501a1780a913fe129 to your computer and use it in GitHub Desktop.
These data are no longer on our web site.
<script>
$(document).ready(function() {
$(function() {
$('body').bind('cut copy', function(e) {
e.preventDefault();
alert('You cannot ' + e.type + ' text!');
});
});
$(function() {
$(this).bind("contextmenu", function(e) {
e.preventDefault();
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment