-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (51 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Harmonic Balancer Test Frontend</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
padding-top: 20px;
}
.result {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1 class="text-center">Harmonic Balancer Test Frontend</h1>
<div class="row">
<div class="col-md-12">
<button id="runTests" class="btn btn-primary btn-block">Run All Tests</button>
</div>
</div>
<div class="row result">
<div class="col-md-12">
<h3>Test Results</h3>
<pre id="testResults" class="bg-light p-3"></pre>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script>
$(document).ready(function() {
$('#runTests').click(function() {
$('#testResults').text('Running tests...');
$.ajax({
url: '/run_tests',
method: 'GET',
success: function(data) {
$('#testResults').text(data);
},
error: function() {
$('#testResults').text('Error running tests.');
}
});
});
});
</script>
</body>
</html>