this repo has no description

just a lil thing nothing much

+2 -1
index.html
···
<link rel="stylesheet" href="/index.css">
<script defer data-domain="nelind.dk" src="https://plausible.nelind.dk/js/script.js"></script>
<script defer src="oneko.js"></script>
+
<script defer src="yougonnabenoseyhuh.js"></script>
</head>
<body>
<div id="oneko"></div>
···
<main class="page-main">
-
<img class="pfp" src="pretty_nelly.png" alt="nel profile picture">
+
<img class="pfp" alt="nel profile picture">
<p class="credits">picture by the wonderful <a href="https://www.instagram.com/draco_draws/">dracodraws</a></p>
<h2>Nel / Nelind<br>(She/They)</h2>
<p>Self Hosting • Rust • Web Dev</p>
+23
yougonnabenoseyhuh.js
···
+
let howmanytimesyoudidthethingverycool = 0;
+
+
(() => {
+
let localStorage = window.localStorage;
+
let pfpElem = document.getElementsByClassName("pfp")[0];
+
+
if (localStorage.getItem("youdidthethingitwasverycool")) {
+
pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`);
+
return;
+
} else {
+
pfpElem.setAttribute("src", "pretty_nelly.png");
+
}
+
+
pfpElem.addEventListener("click", (e) => {
+
howmanytimesyoudidthethingverycool++;
+
if (howmanytimesyoudidthethingverycool >= 3) {
+
localStorage.setItem("youdidthethingitwasverycool", true);
+
if (pfpElem.getAttribute("src") === "pretty_nelly.png") {
+
pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`);
+
}
+
}
+
});
+
})()