Skip to content

Commit 15abf33

Browse files
committed
status
1 parent 303cf1f commit 15abf33

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

assets/js/script.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,12 @@ $(document).ready(function() {
7979
});
8080

8181
if (issue.state == 'open') {
82-
$('#panel').data('incident', 'true');
83-
$('#panel').attr('class', (status === 'operational' ? 'panel-success' : 'panel-warn') );
84-
$('#paneltitle').html('<a href="#incidents">' + issue.title + '</a>');
82+
$('#incidentpanel').data('incident', 'true');
83+
$('#incidentpanel').attr('class', (status === 'operational' ? 'panel-success' : 'panel-warn') );
84+
$('#incidentpaneltitle').html('<a href="#incidents">' + issue.title + '</a>');
85+
$('#incidentpanel').show();
86+
}else{
87+
$('#incidentpanel').hide();
8588
}
8689

8790
var html = '<div class="list-group-item">\n';

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ <h1>Status Page</h1>
1919
<h3 class="panel-title" id="paneltitle"></h3>
2020
</div>
2121
</div>
22+
<div class="panel" id="incidentpanel" style="display:none;">
23+
<div class="panel-heading">
24+
<h3 class="panel-title" id="incidentpaneltitle"></h3>
25+
</div>
26+
</div>
2227
<h4 class="page-header">Systems</h4>
2328
<div class="list-group" id="services"></div>
2429
<h4 class="page-header">Incidents</h4>
2530
<div class="list-group" id="incidents"></div>
2631
<script src="//code.jquery.com/jquery.min.js"></script>
2732
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
28-
<script src="assets/js/script.js?v=c2d"></script>
33+
<script src="assets/js/script.js?v=d.2"></script>
2934
</body>
3035
</html>

0 commit comments

Comments
 (0)