-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·61 lines (54 loc) · 1.4 KB
/
index.php
File metadata and controls
executable file
·61 lines (54 loc) · 1.4 KB
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
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="main StyleSheet" charset="utf-8" />
<?php
$view = $_GET['view'];
if (isset($view) && !empty($view)) {
echo ' <link rel="stylesheet" href="' . "$view.css" . '" type="text/css" media="screen" title="main StyleSheet" charset="utf-8" />';
}
?>
<title>buildiator</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script>
var lastdata;
function updateJobs(){
$.getJSON('getBuilds.php?view=<?php echo $_GET['view']; ?>', function(data){
if (data.content != lastdata){
lastdata = data.content;
$('#jobs').html(data.content);
}
setTimeout('updateJobs()', 5000);
});
}
$(document).ajaxError(function() {
//if there was an error updating, wait a bit longer and try again
setTimeout('updateJobs()', 10000);
});
$(document).ready(function(){
updateJobs();
var count = 0;
setInterval(function() {
count++;
var time = new Date().getTime();
op = (count%2 +0.25).toFixed(2);
if (op>1) {
op = 1;
}
$('.building').animate({
opacity: op,
easing: 'swing'
},1000)
},
1000
);
});
</script>
<ul id="jobs">
<!--this is where the jobs go-->
</ul>
</body>
</html>