-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.html
More file actions
29 lines (27 loc) · 763 Bytes
/
progress.html
File metadata and controls
29 lines (27 loc) · 763 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Progress Bar</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="bootstrap.min.css">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
</head>
<body>
<div class="progress">
<div id="analysis-progress" class="progress-bar"></div>
</div>
<script>
//Set progress every 1 second
$(document).ready(function(){
setInterval(function(){
$.get("progress.txt", function(progress) {
p = parseInt(progress);
$("#analysis-progress").width(p + "%");
});
}, 1000);
});
</script>
</body>
</html>