Skip to content

Instantly share code, notes, and snippets.

@ng-the-engineer
Created April 28, 2021 13:11
Show Gist options
  • Save ng-the-engineer/ec8cf48c7192a0f6dbe48c797dec6ff3 to your computer and use it in GitHub Desktop.
Save ng-the-engineer/ec8cf48c7192a0f6dbe48c797dec6ff3 to your computer and use it in GitHub Desktop.
code snippet of CV2
// IJK
const popupIJK = document.getElementById("popupIJK");
document.getElementById("prjIJK").onclick = () => show(popupIJK);
document.getElementById("closePopupIJK").onclick = () => close(popupIJK);
window.onclick = (event) => {
switch (event.target) {
...
case popupIJK:
close(popupIJK);
...
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment