-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
66 lines (56 loc) · 1.73 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
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>Ist Heute Plenum?</title>
<meta charset="utf-8" />
<meta name="viewport" content="user-scalable=no, width=device-width">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" charset="utf-8">
function plenum()
{
var d = new Date();
var thursday = new Date( d.getTime() + ( 3 - ( ( d.getDay() + 6 ) % 7)) * 86400000 );
var weekYear = thursday.getFullYear();
var thursdayWeekNum =
new Date(
new Date( weekYear, 0, 4 ).getTime() +
( 3 - ( ( new Date( weekYear, 0, 4 ).getDay() + 6 ) % 7) ) * 86400000
);
var weekNum = Math.floor( 1.5 + (thursday.getTime() - thursdayWeekNum.getTime()) / 86400000 / 7 );
return weekNum % 3 == 0 && ( new Date() ).getDay() == 3;
}
var isPlenum = plenum();
var headerText = isPlenum ? 'jope' : 'nope';
document.title = headerText;
</script>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.tappable.js" type="text/javascript"></script>
<script src="js/data.js" type="text/javascript"></script>
<script src="js/script.js" type="text/javascript"></script>
<style type="text/css" media="screen">
h1 {
text-align: center;
font-size: 100px;
font-family: helvetica;
}
p {
text-align: center;
font-size: 50px;
}
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="board"></div>
<div id="footer"></div>
</div>
<script type="text/javascript">
if( !isPlenum ) {
document.getElementById( 'board' ).style.display = 'none';
document.getElementById( 'footer' ).style.display = 'none';
}
document.getElementById( 'header' ).style.color = isPlenum ? '#009900' : '#990000';
</script>
</body>
</html>