Skip to content

Instantly share code, notes, and snippets.

@zaus
Last active August 29, 2015 14:00
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 zaus/8a91e69eaf4fa5ce7ff4 to your computer and use it in GitHub Desktop.
Save zaus/8a91e69eaf4fa5ce7ff4 to your computer and use it in GitHub Desktop.
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