diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
| commit | eb61c1bae2ffad114e17393d91d86fb00d7ac8cd (patch) | |
| tree | 4f997d73e0843dab760e5d988679a1a86b76f5da /old/1/tueaday.js | |
| parent | 4b9500ddeedbea21f80f41dfe4149cf3bf9be4c3 (diff) | |
Initialer commit
Just remade the repo because I don't *need* need a comprehensive source history for my personal website and this is easier than getting filter-repo to work good
Diffstat (limited to 'old/1/tueaday.js')
| -rw-r--r-- | old/1/tueaday.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/old/1/tueaday.js b/old/1/tueaday.js new file mode 100644 index 0000000..b0f342b --- /dev/null +++ b/old/1/tueaday.js @@ -0,0 +1,62 @@ +function tueaday() { + var dateObj = new Date() + var weekday = dateObj.toLocaleString("default", { weekday: "short" }).replace('.','') + switch(weekday) { + case "Sun": + return "suday"; + break; + case "Mon": + return "moday"; + break; + case "Tue": + return "tueaday"; + break; + case "Wed": + return "weaday"; + break; + case "Thu": + return "thuday"; + break; + case "Fri": + return "friaday"; + break; + case "Sat": + return "satuaday"; + break; + default: + return dateObj.toLocaleString("default", { weekday: "short" }); + break; + } +} + +function waititsfucking() { + var s = tueaday(); + document.getElementById("tueaday").innerHTML = "wait".concat(' its fucking <a class="tueaday" href="images/', s, '.png">', s, '</a>. god.'); +} + +function funnytitle() { + const titles = [ + "Voted Only Page on the Internet in 2022", + "Willy's Epic Website", + "Will's Cool Webpage", + "Welcome to my page :)", + "đ", + "Hi!", + "Over Construction", + "mySite.html", + "<span style='animation-name: rainbowtext;animation-duration: 2.5s;animation-iteration-count: infinite;'>RGB Gaming Webpage</span>", + "Stream deep twisty", + "I programmed this feature instead of sleeping", + "I didn't want a .carrd.co URL", + "I use Arch btw", + "Bruh moment", + "Supports VPNs", + "You should try reloading" + ] + document.getElementById("Header").innerHTML = "<h1 id='headertext'>".concat(titles[Math.floor(Math.random() * titles.length)], "</h1>"); +} + +function load() { + funnytitle(); + waititsfucking(); +}
\ No newline at end of file |
