-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (32 loc) · 1.17 KB
/
index.html
File metadata and controls
37 lines (32 loc) · 1.17 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
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="cstyle.css">
</head>
<body>
<div>
<br /><br />
<span class="prompt">C:\> </span> date<br />
UTC time is <span id="timestamp" class="txt"></span><br />
Your local time is <span id="localtime" class="txt"></span>
<br /><br />
<span class="prompt">C:\> </span> ip<br />
Your IP address is <span id="ipaddr" class="txt"></span>
<br /><br />
<span class="prompt">C:\> </span> cat init.txt<br />
<span class="txt">it little profits that an idle site...</span>
<br /><br />
<span class="prompt">C:\> </span><span class="blink">█</span>
</div>
<script>
var date = new Date();
document.getElementById("timestamp").innerHTML = date.toUTCString()
document.getElementById("localtime").innerHTML = date.toString()
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$.getJSON("https://api64.ipify.org?format=json",
function(data) {
$("#ipaddr").html(data.ip);
})
</script>
</body>