-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.html
77 lines (54 loc) · 1.71 KB
/
log.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<!-- Tuliana 2 iconset
from http://www.iconarchive.com/category/system/tulliana-2-icons-by-umut-pulat.html
released under GLGPL
-->
<title>Message Console::Highland Dots</title>
<style>
/* classes*/
.sectionHeader {
width:100%;
height:20px;
background-image:url('ui/images/bg-header.png');
background-repeat:repeat-x;
border-bottom: 1px solid #cccccc;
font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
font-weight:bold;
font-size: 14px;
}
</style>
<body>
<div id="status_div" style="width:600px; height:400px; border:solid black 1px;">
<div class="sectionHeader">
<span style="float:left;">
STATUS: <span id="timeinfo">Time: Not yet rendered.</span>
</span>
<span class="sectionViewControls" style="float:right;">
<img src="ui/images/tuliana/cancel.png" onclick="alert('Not yet implemented');"
style="float:right; height:15px;width:15px;text-align:center" />
</span>
</div>
<div id="log_div" style="overflow:auto; width:600px; height:400px;">
<pre id="log"> </pre>
</div>
</div>
<script src="mylib.js"></script>
<script>
API.attachListener(window, 'message', logMessageHandler);
//window.addEventListener('message', logMessageHandler, false);
function logMessageHandler(e) {
// if (e.origin == 'http://highlanddots.com') {
// if (typeof e.data == string) {
var e1 = document.createElement("div");
var t = document.createTextNode(e.data);
e1.setAttribute("style", "border: solid 1px black;");
e1.appendChild(t);
document.getElementById("log").appendChild(e1);
// }
// }
}
</script>
</body>
</html>