forked from soxfox42/typit
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug.htm
More file actions
31 lines (22 loc) · 749 Bytes
/
debug.htm
File metadata and controls
31 lines (22 loc) · 749 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
</head>
<body>
<span id=debug></span>
<script>
let text = "";
text = "<h3>Local Storage</h3>\n";
for (let i = 0; i < localStorage.length; i++) {
text = text + " - " + localStorage.key(i) + " = " + localStorage.getItem(localStorage.key(i)) + "<br>\n";
}
let now = new Date();
let timestamp = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0).getTime()/1000;
text = text + "<h3>Client:</h3>\n";
text = text + " - time: " + timestamp + " (" + now + ")<br>\n";
text = text + " - ua: " + navigator.userAgent;
document.getElementById("debug").innerHTML = text;
</script>
</body>
</html>