-
Notifications
You must be signed in to change notification settings - Fork 47
/
log_template.html
45 lines (44 loc) · 982 Bytes
/
log_template.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
<!DOCTYPE HTML>
<html>
<head>
<style>
p {
text-align: center;
font-size: 30px;
}
<!--
img {
width="300px";
height="400px";
}-->
div {
text-align: center;
}
</style>
</head>
<body>
<p id="text1">AI trading .....</P>
<div><h3 id="gain"></h3></div>
<div><img id="image" ></div>
<div><h3><a href="%s">CSV log</a></h3></div>
<script>
var index = 0
// Example:
// var listImage = ['temp_pic/BBL_0.png', 'temp_pic/BBL_1.png', 'temp_pic/BBL_2.png'];
var listImage = %s;
var x = setInterval(function() {
var gain = document.getElementById('gain');
var img = document.getElementById('image');
if (index < listImage.length){
img.src = listImage[index];
document.getElementById('text1').innerHTML = 'Iterator: ' + (index+1)
//document.getElementById('gain').innerHTML = 'Capital gain = ' + listGain[index];
index++
} else {
clearInterval(x);
document.getElementById('text1').innerHTML = 'Run on the best action';
}
}, 1000);
</script>
</body>
</html>