-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (103 loc) · 2.68 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>is milkyway@home down?</title>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAXC0m8HOJIB3u7h81RUNg5BTOJSRIOk7Euuko4yvX-qvJ0VqwUhQ8UDMtoCMaxs6C7da2o2D-2oyobw"></script>
<script type="text/javascript">
//<![CDATA[
google.load("jquery", "1.4.2");
function onLoad()
{
$.post('http://ismilkywaydown.com/output.json',
{},
function(data, textStatus, XHR)
{
jsondata = jQuery.parseJSON(data);
$('#statustext').html(jsondata["projects"]["milkyway@home"]["ping_hosts"][0][2] ? "NO" : "YES");
$('#datetext').html("Last updated " + jsondata["date"]);
}
)
}
google.setOnLoadCallback(onLoad);
//]]>
</script>
<style type="text/css" media="screen">
/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td
{
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body
{
line-height: 1;
}
ol, ul
{
list-style: none;
}
blockquote, q
{
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after
{
content: '';
content: none;
}
table
{
border-collapse: collapse;
border-spacing: 0;
}
/* Style */
body
{
font-family: "Helvetica", sans-serif;
}
#status
{
font-size: 8em;
text-align: center;
color: #fff;
text-shadow: -2px 2px 2px #444;
position:absolute;
top: 50%;
width: 100%;
height: 1em;
margin-top: -0.5em;
background-color: #666;
-moz-box-shadow: 0px 0px 25px #333;
-webkit-box-shadow: 0px 0px 25px #333;
box-shadow: 0px 0px 25px #333;
}
#date
{
font-size: 1.0em;
text-align: center;
position: absolute;
width: 100%;
bottom: 1.0em;
color: #aaa;
}
</style>
</head>
<body id="index" onload="">
<div id="status"><p id="statustext">DUNNO</p></div>
<div id="date"><span id="datetext">Last updated at some point in the past</p></div>
</body>
</html>