Last active
March 4, 2020 13:50
Revisions
-
joahg revised this gist
Feb 11, 2014 . 2 changed files with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ body.style.cursor = 'initial'; e.preventDefault(); e.target.parentNode.removeChild(e.target); body.removeEventListener('click', snipe, false); }; body.addEventListener('click', snipe, false); body.style.cursor = 'crosshair'; })(); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ (function(){var body=document.body,snipe=function(a){body.style.cursor="initial",a.preventDefault(),a.target.parentNode.removeChild(a.target),body.removeEventListener("click",snipe,!1)};body.addEventListener("click",snipe,!1),body.style.cursor="crosshair";})() -
joahg revised this gist
Feb 11, 2014 . 2 changed files with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ (function(){ var body = document.body; var snipe = function(e) { body.style.cursor = 'initial'; e.preventDefault(); e.target.parentNode.removeChild(e.target); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ (function(){var body=document.body,snipe=function(a){body.style.cursor="initial",a.preventDefault(),a.target.parentNode.removeChild(a.target),document.removeEventListener("click",snipe,!1)};document.addEventListener("click",snipe,!1),body.style.cursor="crosshair";})() -
joahg created this gist
Feb 11, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ (function(){ var body = document.body; var snipe = function(e) { clicked = true; body.style.cursor = 'initial'; e.preventDefault(); e.target.parentNode.removeChild(e.target); document.removeEventListener('click', snipe, false); }; document.addEventListener('click', snipe, false); body.style.cursor = 'crosshair'; })(); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ (function(){var body=document.body,snipe=function(a){clicked=!0,body.style.cursor="initial",a.preventDefault(),a.target.parentNode.removeChild(a.target),document.removeEventListener("click",snipe,!1)};document.addEventListener("click",snipe,!1),body.style.cursor="crosshair";})()