tangled
alpha
login
or
join now
nel.pet
/
www.nelind.dk
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
just a lil thing nothing much
nel.pet
9 months ago
6ab08907
0d0e89d7
+25
-1
2 changed files
expand all
collapse all
unified
split
index.html
yougonnabenoseyhuh.js
+2
-1
index.html
···
9
9
<link rel="stylesheet" href="/index.css">
10
10
<script defer data-domain="nelind.dk" src="https://plausible.nelind.dk/js/script.js"></script>
11
11
<script defer src="oneko.js"></script>
12
12
+
<script defer src="yougonnabenoseyhuh.js"></script>
12
13
</head>
13
14
<body>
14
15
<div id="oneko"></div>
···
22
23
23
24
<main class="page-main">
24
25
25
25
-
<img class="pfp" src="pretty_nelly.png" alt="nel profile picture">
26
26
+
<img class="pfp" alt="nel profile picture">
26
27
<p class="credits">picture by the wonderful <a href="https://www.instagram.com/draco_draws/">dracodraws</a></p>
27
28
<h2>Nel / Nelind<br>(She/They)</h2>
28
29
<p>Self Hosting • Rust • Web Dev</p>
+23
yougonnabenoseyhuh.js
···
1
1
+
let howmanytimesyoudidthethingverycool = 0;
2
2
+
3
3
+
(() => {
4
4
+
let localStorage = window.localStorage;
5
5
+
let pfpElem = document.getElementsByClassName("pfp")[0];
6
6
+
7
7
+
if (localStorage.getItem("youdidthethingitwasverycool")) {
8
8
+
pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`);
9
9
+
return;
10
10
+
} else {
11
11
+
pfpElem.setAttribute("src", "pretty_nelly.png");
12
12
+
}
13
13
+
14
14
+
pfpElem.addEventListener("click", (e) => {
15
15
+
howmanytimesyoudidthethingverycool++;
16
16
+
if (howmanytimesyoudidthethingverycool >= 3) {
17
17
+
localStorage.setItem("youdidthethingitwasverycool", true);
18
18
+
if (pfpElem.getAttribute("src") === "pretty_nelly.png") {
19
19
+
pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`);
20
20
+
}
21
21
+
}
22
22
+
});
23
23
+
})()