Update script.js

Added reference to original source code author  Gabriele Corti  https://codepen.io/borntofrappe/pen/GXLWzP
This commit is contained in:
Kozuki 2022-03-03 20:51:09 -08:00 committed by GitHub
parent 8b2051c464
commit 43e6b1d4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/* Original Author >> Gabriele Corti : https://codepen.io/borntofrappe/pen/GXLWzP */
// 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
window.removeEventListener("mousemove", updateKeyPosition);
keyhole.removeEventListener("mouseover", grantAccess);
};
};