Created
March 15, 2019 06:05
-
-
Save mimonelu/a34bf6d1bf31744ad9c7805df3eb88b1 to your computer and use it in GitHub Desktop.
π¨ γγ©γΌγγγ―γγΌγ―γ¬γγ
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 characters
javascript: (() => { let enabled = true, target = null; window.addEventListener('mouseover', (e) => { if (!enabled) return; target = e.target; target.style.outline = '4px solid #ff0000'; }); window.addEventListener('mouseout', (e) => { if (!enabled) return; target.style.outline = 'none'; target = null; }); window.addEventListener('click', (e) => { if (!enabled) return; e.preventDefault(); if (target) { const isBlur = target.getAttribute('data-is-blur'); if (!isBlur) { target.setAttribute('data-is-blur', true); target.style.filter = 'blur(8px)'; } else { target.removeAttribute('data-is-blur'); target.style.filter = 'none'; } } }); window.addEventListener('keyup', (e) => { if (!enabled) return; if (e.keyCode === 27) { enabled = false; if (target) { target.style.outline = 'none'; } } }); })(); void 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.