Skip to content

Instantly share code, notes, and snippets.

@wartron
wartron / click_hide.js
Created August 6, 2017 04:36
javscript console snippet to quickly hide dom stuff (useful for screenshots)
window.click_hide = true
window.click_hide_last = false
document.addEventListener("click", function( e ) {
if(window.click_hide){
console.log(e.target);
window.click_hide_last = e.target;
window.click_hide_last.style.display = "none";
e.preventDefault();
@wartron
wartron / index.html
Created November 4, 2013 00:09
A Pen by Will Wharton.
<canvas id="can" width="800" height="600"/>
<img id="bg" src="http://i.imgur.com/fPH6QI7.png">
<img id="cards" src="http://i.imgur.com/XZlSH3r.png">
<img id="spot" src="http://i.imgur.com/LP5T0IN.png">