aboutsummaryrefslogtreecommitdiff
path: root/old/1/tueaday.js
blob: b0f342b6af9e92117e255ef0e518d36efa141863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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();
}