-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.js
60 lines (58 loc) · 1.51 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Script created by Paflo (pawlo1020#6568) Š 2022
// version 1.3
// 18.12.2022 - last update
//
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth();
const about = {
yearOfStartProgramming: 2006
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
};
// Sowwyz#1337
document.getElementById("age-p-correct").innerText = (year - about.yearOfStartProgramming);
document.getElementById("cp").innerHTML = "Copyright © <b>Sowwyz</b> 2023" + year;
// Sowwyz#1337
const aboutme = document.getElementById("aboutme");
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
window.addEventListener("scroll", function () {
let pos = aboutme.getBoundingClientRect();
(pos.top >= 0 && pos.bottom <= window.innerHeight) ? aboutme.classList.add("focus") : aboutme.classList.remove("focus");
});
// Sowwyz#1337
const support = () => {
return window.location.href = "https://github.com/Sowwyz";
}
// Sowwyz#1337
// Sowwyz#1337
const discord = () => {
alert("!");
return window.location.href = "https://discord.com/users/394251966571872256";
}// Sowwyz#1337
// Sowwyz#1337
window.onbeforeunload = () => {
window.scrollTo(0, 0);
}
// Sowwyz#1337
// Sowwyz#1337
window.onload = () => {
$(".loader").fadeOut("fast");
document.body.style = null;
}
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337
// Sowwyz#1337