-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (46 loc) · 2.56 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>AWS ECS Placeholder</title>
</head>
<body>
<div class="container d-flex flex-column min-vh-100 justify-content-center align-items-center">
<figure class="text-center">
<blockquote class="blockquote">
<h3 id="quote">A well-known quote, contained in a blockquote element.</h3>
</blockquote>
<figcaption class="blockquote-footer">
<cite id="source">Foobar</cite>
</figcaption>
</figure>
</div>
<script>
const quotes = [
["Any fool can write code that a computer can understand. Good programmers write code that humans can understand.", "Martin Fowler"],
["First, solve the problem. Then, write the code.", "John Johnson"],
["Experience is the name everyone gives to their mistakes.", "Oscar Wilde"],
["In order to be irreplaceable, one must always be different", "Coco Chanel"],
["Java is to JavaScript what car is to Carpet.", "Chris Heilmann"],
["Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday's code.", "Dan Salomon"],
["Perfection is achieved not when there is nothing more to add, but rather when there is nothing more to take away.", "Antoine de Saint-Exupery"],
["Code is like humor. When you have to explain it, it's bad.", "Cory House"],
["Simplicity is the soul of efficiency.", "Austin Freeman"],
["Before software can be reusable it first has to be usable.", "Ralph Johnson"],
["Make it work, make it right, make it fast.", "Kent Beck"],
["Don't comment bad code - rewrite it.", "Brian Kernighan"],
["If debugging is the process of removing software bugs, then programming must be the process of putting them in.", "Edsger W. Dijkstra"],
];
function updateQuote() {
const [quote, source] = quotes[Math.floor(Math.random() * quotes.length)];
document.getElementById("quote").innerHTML = quote;
document.getElementById("source").innerHTML = source;
}
updateQuote();
setInterval(updateQuote, 7500);
</script>
</body>
</html>