-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
68 lines (68 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<title>Aerobatic Deploy Speed Test</title>
<link rel="stylesheet"
href="//aui-cdn.atlassian.com/aui-adg/5.8.9/css/aui.css" media="all">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//aui-cdn.atlassian.com/aui-adg/5.8.9/js/aui.js"></script>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-atlassian"><a
href="https://run-bucket-run.aerobatic.io"><span
class="aui-header-logo-device">Atlassian</span></a></h1>
</div>
</div>
</nav>
</header>
<section id="content" role="main">
<header class="aui-page-header">
<div class="aui-page-header-inner">
<div class="aui-page-header-main">
<h1>Aerobatic Speed Test</h1>
</div>
</div>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<section class="aui-page-panel-content">
<h1 class="test-target">Awaiting deployment...<h1>
</section>
</div>
</div>
</section>
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>Developed with ❤ and ☕ by <a href="https://twitter.com/kannonboy">@kannonboy</a>
</li>
</ul>
<div id="footer-logo"><a href="http://www.atlassian.com/" target="_blank">Atlassian</a>
</div>
</section>
</footer>
</div>
<script>
function poll() {
fetch('test.json?ts=' + new Date().getTime()).then(function(response) {
return response.json();
}).then(function(json) {
if (json.deployed) {
$(".test-target").css("color", "#14892c").text('Deployed!');
} else {
$(".test-target").css("color", "#707070").text('Awaiting deployment...');
}
window.setTimeout(poll, 300);
});
}
poll();
</script>
</body>
</html>