forked from karlbaumhauer/DoWeHaveACoffeeCallToday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (25 loc) · 1.01 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Do we have a coffee call today?</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript">
function changeText() {
setTimeout(() => {
const answers = [ 'Nope...', 'Yep...', 'How many coffees did you have today...?'];
const sublines = ['Go back to work', 'Stop working, get coffee and start the call (IN THE CHANNEL!!!! @Eddi, not the chat...)', 'Ahhh... fuck it... lets do it!']
let random = Math.floor(Math.random() * 3)
document.querySelector('.answer').innerHTML = answers[random];
setTimeout(() => { document.querySelector('.subline').innerHTML = sublines[random];}, 2000);
}, 2000);
};
</script>
</head>
<body onload="changeText()">
<h2 class="answer">Do we have a coffee call today?</h2>
<h3 class="subline"></h3>
</body>
</html>