-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (33 loc) · 914 Bytes
/
index.html
File metadata and controls
34 lines (33 loc) · 914 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
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Strategy Status</title>
<style>
*, *::before, *::after { box-sizing: border-box;}
* { margin: 2px; }
html { font-size: 80% }
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h4 { font-size: 120% }
</style>
<script>
function fetchFileContent() {
fetch('read_file.php')
.then(response => response.text())
.then(data => {
document.getElementById('fileContent').innerHTML = data;
})
.catch(error => console.error('Error fetching file content:', error));
}
setInterval(fetchFileContent, 30000); // Fetch content every second
</script>
</head>
<body>
<h4>Strategy status</h4>
<div id="fileContent">Loading...</div>
</body>
</html>