-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (48 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DevOps Weekday</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
<link href='//fonts.googleapis.com/css?family=Fira+Sans' rel='stylesheet' type='text/css'>
<style>
* { font-family: 'Fira Sans', sans-serif; text-align: center; }
body { background-color: black; }
#container { margin: auto; color: white; }
#header { margin-top: 5em; }
h1 { font-size: 96pt; }
h2 { font-size: 24pt; }
h3 { font-size: 14pt; }
</style>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
<div id='container'>
<header id="header"></header>
<div class='pure-g'>
<div class="pure-u-1-1"><h2>Today is</h2></div>
</div>
<div class='pure-g'>
<div class='pure-u-1-1'><h1><span id="name"></span> <span id="day"></span></h1></div>
</div>
<div class='pure-g'>
<div class='pure-u-1-1'><h3><span id="comment"></span></h3></div>
</div>
</div>
<script>
$( document ).ready(function() {
var days = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ];
var names = [ 'Stability', 'Mayhem', 'Testing', 'WTF', 'Try Again', 'Failover', 'Sleepless' ];
var comments = [ 'Enjoy', 'Good luck o_O', 'Keep at it!', "I'm sorry", 'You can do it', 'Be very, very careful...', 'As if' ]
var colours = [ '#27ae60', '#c0392b', '#e67e22', '#2c3e50', '#2980b9', '#8e44ad', '#16a085' ];
var d = new Date();
var day = d.getDay();
$("body").css('background-color', colours[day]);
$("#name").html(names[day]);
$("#day").html(days[day]);
$("#comment").html(comments[day]);
});
</script>
</body>
</html>