-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
42 lines (31 loc) · 1.13 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const showPopupButton = document.getElementById('showPopup');
const popupContainer = document.getElementById('popupContainer');
showPopupButton.addEventListener('click', () => {
popupContainer.style.display = 'block'; // Show the popup
// Hide the popup after 5 seconds
setTimeout(() => {
popupContainer.style.display = 'none';
}, 5000);
} );
function showPopupButton() {
popupContainer.style.display = 'block'; // Show the popup
// Hide the popup after 5 seconds
setTimeout(() => {
popupContainer.style.display = 'none';
}, 5000);
};
function CopyEmail() {
// Get the text field
var copyText = "[email protected]";
// Select the text field
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices
// Copy the text inside the text field
navigator.clipboard.writeText(copyText.value);
// Alert the copied text
alert("Copied the text: " + copyText.value);
}
function OpenLinkedIn() {
const url = 'https://www.linkedin.com/in/joel-van-herwaarden/'; // Replace with your desired URL
window.open(url, '_blank');
}