Update script.js
Added reference to original source code author Gabriele Corti https://codepen.io/borntofrappe/pen/GXLWzP
This commit is contained in:
parent
8b2051c464
commit
43e6b1d4a5
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* Original Author >> Gabriele Corti : https://codepen.io/borntofrappe/pen/GXLWzP */
|
||||||
|
|
||||||
// target the elements in the DOM used in the project
|
// target the elements in the DOM used in the project
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,4 +78,4 @@ const grantAccess = () => {
|
||||||
// remove the event listeners, most notably the one on the window
|
// remove the event listeners, most notably the one on the window
|
||||||
window.removeEventListener("mousemove", updateKeyPosition);
|
window.removeEventListener("mousemove", updateKeyPosition);
|
||||||
keyhole.removeEventListener("mouseover", grantAccess);
|
keyhole.removeEventListener("mouseover", grantAccess);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue