-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (35 loc) · 1.05 KB
/
index.html
File metadata and controls
40 lines (35 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SomethingNice</title>
<script src="./adjectives.js"></script>
<style>
div.main { padding: 1em; font-family: sans-serif; }
span#adjective { color: blue; }
div.footer {
font-family: sans-serif; font-style: italic;
position: fixed; left: 0; bottom: 0; width: 100%; padding: 1em;
}
</style>
</head>
<body>
<div class="main">
<h1>
world's filled with enough hatred as it is. Say nice things like:
<span id="adjective">adorable</span>
</h1>
</div>
<div class="footer">
Add more adjectives <a target="_blank"
href="https://github.com/comentarinformal/SomethingNice">here</a>.
</div>
<script>
setInterval(function() {
document.querySelector('span#adjective').innerText =
adjectives[Math.floor(adjectives.length * Math.random())];
}, 1000);
</script>
</body>
</html>