-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
52 lines (47 loc) · 2.53 KB
/
Copy pathapp.js
File metadata and controls
52 lines (47 loc) · 2.53 KB
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
const excuses = [
"I’m mid-argument with my cat about who gets the Zoom background.",
"My headphones filed for divorce after the last quick call.",
"I’m training my goldfish to swim—catch me later!",
"I’m on the run from my own to-do list—catch me later!",
"I’d join, but my cat’s judging me too hard right now.",
"I’m too deep in a snack heist to talk right now.",
"I’m busy curating my playlist of fake static noises.",
"I’m too busy perfecting my TikTok dance for the team meeting.",
"My dog ate my headset, and now he’s barking at Teams.",
"I’m in a heated debate with Siri about pineapple on pizza.",
"My horoscope said ‘avoid quick chats’—blame the stars.",
"My keyboard’s on strike, and I’m negotiating its demands.",
"I’d join, but I’m mid-argument with my Wi-Fi about life choices.",
"I’d join, but I’m teaching my goldfish to tap dance right now.",
"Quick calls? Nope, I’m busy knitting socks for my pet rock.",
"I’m mid-conversation with my fridge—it’s got cooler ideas.",
"My rubber chicken just challenged me to a duel—can’t miss it.",
"I’m too busy trying to convince my lamp it’s not a disco ball.",
"Sorry, I’m mid-negotiation with my ceiling fan for world peace.",
"I’m too busy teaching my pencil to whistle—priorities, man.",
"I’m in the middle of a dramatic breakup with my inbox.",
"My mirror just told me I’m too fabulous for quick chats.",
"I'm trying to break my personal record for avoiding calls.",
"My coffee is getting cold, and that’s a crisis I need to address immediately.",
"I'm practicing my telepathy skills—can you hear me thinking 'no'?",
"My plant is wilting, and it needs emotional support right now.",
"I'm currently negotiating peace talks between my keyboard and mouse."
];
document.addEventListener('DOMContentLoaded', () => {
let display = document.getElementById("display");
let displayValue = "Hate those quick calls?\n\nStep #1: Hit 'GENERATE AN EXCUSE'\nStep #2: Share it with your colleague";
let generate = document.getElementById("generate");
display.innerText = displayValue
function getRndIndex() {
const min = 0;
const max = excuses.length;
return Math.floor(Math.random() * (max - min) ) + min;
};
function displayExcuse() {
displayValue = excuses[getRndIndex()];
display.innerText = '"' + displayValue + '"';
};
generate.onclick = () => {
displayExcuse()
};
});