this repo has no description

just a lil thing nothing much

+25 -1
+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 + <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 - <img class="pfp" src="pretty_nelly.png" alt="nel profile picture"> 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 + let howmanytimesyoudidthethingverycool = 0; 2 + 3 + (() => { 4 + let localStorage = window.localStorage; 5 + let pfpElem = document.getElementsByClassName("pfp")[0]; 6 + 7 + if (localStorage.getItem("youdidthethingitwasverycool")) { 8 + pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`); 9 + return; 10 + } else { 11 + pfpElem.setAttribute("src", "pretty_nelly.png"); 12 + } 13 + 14 + pfpElem.addEventListener("click", (e) => { 15 + howmanytimesyoudidthethingverycool++; 16 + if (howmanytimesyoudidthethingverycool >= 3) { 17 + localStorage.setItem("youdidthethingitwasverycool", true); 18 + if (pfpElem.getAttribute("src") === "pretty_nelly.png") { 19 + pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`); 20 + } 21 + } 22 + }); 23 + })()