-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
81 lines (61 loc) · 3.17 KB
/
Copy pathmain.html
File metadata and controls
81 lines (61 loc) · 3.17 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./public/main.css">
<title>etahn.dev</title>
<link rel="icon" href="./public/icons/icon.png">
<script src="https://kit.fontawesome.com/c294db302f.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- <script src="./public/script.js"></script> -->
<div class="socials">
<div><button class="button-style"><a href="https://discords.com/bio/p/etahn-dev" target="_blank"><i class="fa-solid fa-brands fa-discord icon"></i></a></button></div>
<div><button class="button-style"><a href="https://github.com/etahn-git" target="_blank"><i class="fa-solid fa-brands fa-github icon"></i></a></button></div>
<div><button class="button-style"><a href="./instagram" target="_blank"><i class="fa-solid fa-brands fa-instagram icon"></i></a></button></div>
<div><button class="button-style"><a href="./404.html" target="_blank"><i class="fa-solid fa-brands fa-linkedin icon"></i></a></button></div>
</div>
<!-- <button onclick="topFunction()" id="topbutton" title="Go to top" style="display: block;">↑</button> -->
<div class="main">
<div>
<h1 class="maintext">Ethan - <a id="result"></a> year old developer</h1>
</div>
<div class="break-flexbox buttons">
<div><button class="button-style"><a class="button" href="https://github.com/etahn-git">Portforlio</a></button></div>
<div><button class="button-style"><a class="button" href="https://github.com/etahn-git?tab=repositories">Projects</a></button></div>
<!--<div><button class="button-style"><a class="button" href="https://linktr.ee/etahn">Linktree</a></button></div> -->
</div>
</div>
<!-- <svg class="arrows">
<path class="a1" d="M0 0 L30 32 L60 0"></path>
<path class="a2" d="M0 20 L30 52 L60 20"></path>
<path class="a3" d="M0 40 L30 72 L60 40"></path>
</svg> -->
<div class="sections">
</div>
<script>
let mybutton = document.getElementById("topbutton");
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
var startDate = new Date("2009-08-17T00:00:00Z");
function calculateYearsElapsed() {
var currentTime = new Date();
var yearsDifference = currentTime.getFullYear() - startDate.getFullYear();
if (currentTime.getMonth() < startDate.getMonth() || (currentTime.getMonth() === startDate.getMonth() && currentTime.getDate() < startDate.getDate())) {
yearsDifference--;
}
var resultElement = document.getElementById("result");
resultElement.textContent = yearsDifference;
}
calculateYearsElapsed();
</script>
</body>