-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
169 lines (144 loc) · 8.02 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<title>GovUptime</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="/css/bootstrap-responsive.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="/css/custom.min.css" media="all" rel="stylesheet" type="text/css" />
<meta property="og:title" content="Is the Federal Government Operational?" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://govuptime.com/" />
<meta property="og:site_name" content="Government Uptime Calculation #govuptime" />
<meta property="og:description" content="A realtime calculation of the Federal Government's service level." />
</head>
<body data-spy="scroll" data-target=".navbar">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=120110554729003";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="wrap">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">US Government Uptime</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#downtime">Downtime Tracker</a></li>
<li class="divider"></li>
<li><a href="#furloughed_employees">Furloughed Employees</a></li>
<li class="divider"></li>
<li><a href="#department_sizes">Department Sizes</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container" style="text-align:center;">
<div id="downtime" class="section" style="padding-top:40px">
<h1>Is the federal government operational?</h1>
<p class="lead text-success">Yes!</p>
<p class="lead" style="padding-top:10px;font-weight: bold;">Government has been fully functional for:</p>
<p id="up_time" class="lead"> </p>
<p class="lead" style="padding-top:10px;font-weight: bold;">Total time government was last down:</p>
<p id="down_time" class="lead">16 Days, 0 Hours, 0 Minutes, 0 Seconds</p>
<p class="lead" style="font-weight: bold;">Labor time lost during last downtime:</p><p>(assuming 800,000 employees)</p>
<p id="hours_lost" class="lead">70,400,000 Hours</p>
<p class="lead" style="font-weight: bold;">Weeks of PTO for affected government employees during this period:</p><p>(not counting those that worked through it without pay):</p>
<p id="time_off" class="lead">1,760,000 Weeks</p>
<p class="lead" style="font-weight: bold;">Service level low for the last year:</p>
<p id="service_level" class="lead">95.616438356164%</p>
<p style="padding-top:20px;"><i>A SysAdmin would be <strike>pissed</strike> fired.</i></p>
<div id="share_this">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://govuptime.com" data-text="Government Uptime Calculation" data-via="govuptime" data-size="large" data-related="govuptime" data-hashtags="govuptime">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
<div style="width: 190px;margin:0 auto;display:block;">
<div class="fb-like" data-href="http://facebook.com/govuptime" data-width="The pixel width of the plugin" data-height="The pixel height of the plugin" data-colorscheme="light" data-layout="standard" data-action="like" data-show-faces="true" data-send="false"></div></div>
</div>
<div id="furloughed_employees" class="section" style="padding-top:40px" >
<h2 class="document-description">Effect on different departments</h2>
<iframe sandbox="allow-same-origin allow-scripts" src="http://vida.io/embed/WgBMc4zDWF7YpqXGR" style="border: 0; width:800; height:600;" width="800" height="600"></iframe>
</div>
<div id="department_sizes" class="section" style="padding-top:40px">
<h2>Department sizes</h2>
<div id="employees_chart"></div>
</div>
</div>
</div>
<div id="footer" style="text-align: center; margin-top: 10px">
<div class="container">
<table align="center" style="margin-top:10px;">
<tr>
<th style="text-align:center;">Authors</th>
<th style="text-align:center;">Contributors</th>
</tr>
<tr>
<td style="vertical-align:top;text-align:left;padding:10px;">
<ul style="list-style-type: none;">
<li><a href="https://twitter.com/GSMcNamara">G. S. McNamara</a></li>
<li><a href="https://twitter.com/JustinRaine5">Justin Raines</a></li>
<li><a href="https://twitter.com/thatrailsguy">Clinton Cecil</a></li>
</ul>
</td>
<td style="vertical-align:top;text-align:left;padding:10px;">
<ul style="list-style-type: none;">
<li><a href="https://twitter.com/DoPhuoc">Phuoc Do</a></li>
<li><a href="https://twitter.com/DArchAngels13">Michael Weston</a></li>
<li><a href="https://twitter.com/gesa">Aki</a></li>
</ul>
</td>
</tr>
</table>
</div>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(function(){
//the following date, as well as calculations, will be done in UTC.
var shutdown_end = new Date(2013, 9, 17, 4, 0, 0, 0);
setInterval(function(){
var today = new Date();
var today_as_UTC = today.getTime() + (today.getTimezoneOffset() * 60000); //in UTC
today = new Date(today_as_UTC);
var a_year_ago_today = new Date();
var a_year_ago_today_as_UTC = a_year_ago_today.getTime() + (a_year_ago_today.getTimezoneOffset() * 60000); //in UTC
a_year_ago_today = new Date(a_year_ago_today_as_UTC);
var a_year_in_milliseconds = (24*60*60*1000) * 365;
a_year_ago_today.setTime(a_year_ago_today.getTime() - a_year_in_milliseconds)
var a_year_in_seconds = (today - a_year_ago_today) / 1000;
var uptime_length_in_seconds = (today - shutdown_end) / 1000;
var days = Math.floor(uptime_length_in_seconds / 86400);
var hours = Math.floor(uptime_length_in_seconds / 3600) % 24;
var minutes = Math.floor(uptime_length_in_seconds / 60) % 60;
var seconds = uptime_length_in_seconds % 60;
$("#up_time").text(days + " Days, " + hours + " Hours, " + minutes + " Minutes, " + Math.round(seconds) + " Seconds");
// $("#hours_lost").text("" + getHoursLost().toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " Hours");
},1000);
});
</script>
<script src="js/underscore.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script src="js/main.min.js"></script>
<!-- Google Analytics: -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-7635850-20', 'govuptime.com');
ga('send', 'pageview');
</script>
</body>
</html>