Add anti-bot email stuff
This commit is contained in:
parent
c74a9bbbdd
commit
44ff39d987
2 changed files with 22 additions and 1 deletions
BIN
src/img/email.png
Normal file
BIN
src/img/email.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
|
@ -23,11 +23,32 @@
|
||||||
__name.textContent = "Nexus";
|
__name.textContent = "Nexus";
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
const email = document.querySelector("img[src='img/email.png']");
|
||||||
|
const emailImages = document.querySelectorAll("img[src='img/gmail-color.svg']");
|
||||||
|
if(email && emailImages.length > 0) {
|
||||||
|
for (let emailImg of emailImages) {
|
||||||
|
emailImg.addEventListener(
|
||||||
|
"click",
|
||||||
|
() => {
|
||||||
|
email.hidden = !email.hidden;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
emailImg.style.cursor = "pointer";
|
||||||
|
}
|
||||||
|
email.addEventListener(
|
||||||
|
"click",
|
||||||
|
() => {
|
||||||
|
email.hidden = !email.hidden;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
email.style.cursor = "pointer";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<img style="z-index: 100;width:auto;height: auto;margin:200px auto;background-color: rgba(0, 0, 0, 0.5);position:absolute" src="img/email.png" width="1366px" height="768px" alt="oh" hidden/>
|
||||||
<div class="mainBody">
|
<div class="mainBody">
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
|
@ -90,7 +111,7 @@
|
||||||
</a>
|
</a>
|
||||||
<img src="img/signal-color.svg" alt="Signal" title="Signal" width="32px" height="32px" class="icon">
|
<img src="img/signal-color.svg" alt="Signal" title="Signal" width="32px" height="32px" class="icon">
|
||||||
<img src="img/imessage-color.svg" alt="iMessage" title="iMessage" width="32px" height="32px" class="icon">
|
<img src="img/imessage-color.svg" alt="iMessage" title="iMessage" width="32px" height="32px" class="icon">
|
||||||
<a href="mailto:contact@nexy7574.co.uk" rel="noopener" target="_blank" class="icon">
|
<a rel="noopener" target="_blank" class="icon">
|
||||||
<img src="img/gmail-color.svg" alt="Email" title="Email (very slow)" width="32px" height="32px" class="icon">
|
<img src="img/gmail-color.svg" alt="Email" title="Email (very slow)" width="32px" height="32px" class="icon">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue