Skip to content

Instantly share code, notes, and snippets.

@zaus zaus/copied-js.md
Last active Aug 29, 2015

Embed
What would you like to do?
Testing Syntax Highlighting Error

// Disable Context Menu document.oncontextmenu = function () { return false };

// Disable dragging of HTML elements document.ondragstart = function () { return false };

// Break out of frames function bust() { document.write = ""; window.top.location = window.self.location; setTimeout(function () { document.body.innerHTML = '' }, 0); window.self.onload = function (evt) { document.body.innerHTML = '' } } if (window.top !== window.self) { try { if (window.top.location.host) {} else { bust() } } catch (ex) { bust() } }

(function($){ var $input = $('input'); })(jQuery);

// inline comment window.document.body.style.height = 100;

var s = "a string"; var n = 32; // a number

n *= 4;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.