this repo has no description

just a lil thing nothing much

+25 -1
+2 -1
index.html
··· 9 <link rel="stylesheet" href="/index.css"> 10 <script defer data-domain="nelind.dk" src="https://plausible.nelind.dk/js/script.js"></script> 11 <script defer src="oneko.js"></script> 12 </head> 13 <body> 14 <div id="oneko"></div> ··· 22 23 <main class="page-main"> 24 25 - <img class="pfp" src="pretty_nelly.png" alt="nel profile picture"> 26 <p class="credits">picture by the wonderful <a href="https://www.instagram.com/draco_draws/">dracodraws</a></p> 27 <h2>Nel / Nelind<br>(She/They)</h2> 28 <p>Self Hosting • Rust • Web Dev</p>
··· 9 <link rel="stylesheet" href="/index.css"> 10 <script defer data-domain="nelind.dk" src="https://plausible.nelind.dk/js/script.js"></script> 11 <script defer src="oneko.js"></script> 12 + <script defer src="yougonnabenoseyhuh.js"></script> 13 </head> 14 <body> 15 <div id="oneko"></div> ··· 23 24 <main class="page-main"> 25 26 + <img class="pfp" alt="nel profile picture"> 27 <p class="credits">picture by the wonderful <a href="https://www.instagram.com/draco_draws/">dracodraws</a></p> 28 <h2>Nel / Nelind<br>(She/They)</h2> 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 + })()