-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
41 lines (35 loc) · 1.27 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
document.getElementById("socialsBtn").addEventListener("click", function() {
const link = "https://augystudios.com/links";
const newWindow = window.open(link, "_self");
if (!newWindow) {
window.location.href = link;
}
});
document.getElementById("docsBtn").addEventListener("click", function() {
const link = "https://docs.augystudios.com/";
const newWindow = window.open(link, "_blank");
if (!newWindow) {
window.location.href = link;
}
});
document.getElementById("expBtn").addEventListener("click", function() {
const link = "https://test.augy.xyz/";
const newWindow = window.open(link, "_blank");
if (!newWindow) {
window.location.href = link;
}
});
document.getElementById("contactBtn").addEventListener("click", function() {
const link = "https://augystudios.com/contact-us";
const newWindow = window.open(link, "_self");
if (!newWindow) {
window.location.href = link;
}
});
// Get the current year
let currentDate = new Date();
let currentYear = currentDate.getFullYear();
// Find the element with the id "currentYear"
let currentYearElement = document.getElementById("currentYear");
// Update the content of the element with the current year
currentYearElement.textContent = currentYear;