-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (48 loc) · 1.59 KB
/
Copy pathindex.html
File metadata and controls
49 lines (48 loc) · 1.59 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
<html>
<head>
<title>tkcloud</title></head>
<script src="./axios.min.js" type="text/javascript" charset="utf-8"></script>
<body>
<div id="ip"></div>
<h3>tkcloud</h3>
<ul>
<li><a href="javascript:void(0)" onclick="o(this)">feeder</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">tkblog</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">hippo </a></li>
<li><a href="javascript:void(0)" onclick="o(this)">jobd </a></li>
<li><a href="javascript:void(0)" onclick="o(this)">jobd/log/all</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">droppy</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">doudou</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">static</a></li>
<li><a href="javascript:void(0)" onclick="o(this)">static/incr/2018/pub-shudu.mp4</a></li>
</ul>
<img src="nerdy.png" style="max-height: 256px; float:right"/>
<pre style="background-color: black; color: grey" id="matrix"></pre>
<script>
var IP = '108.61.210.134';
document.getElementById('ip').innerHTML = IP;
function o(obj) {
var name = obj.innerHTML;
window.open("http://" + IP + '/' + name, "_blank");
}
var itv = setInterval(() => {
axios({
method: 'get',
url: 'https://cors.io/?' + 'http://' + IP + '/jobd/log/all'
}).then(function (res) {
const arr = res['data'].split('\n')
const N = 30 // print last L lines
const l = arr.length
var wr = ''
if (l > N)
wr = arr.slice(l - N, l).join('\n');
else
wr = res['data']
document.getElementById("matrix").innerHTML = wr
}).catch(function (err) {
clearInterval(itv)
})
}, 5000)
</script>
</body>
</html>