blob: 90d013a646d8ec28e3b46cd94f847a10a7081945 (
plain) (
blame)
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>MAME</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<link rel="shortcut icon" href="favicon.ico">
<link href="css/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<script language="javascript" type="text/javascript">
var writeToScreen = function(message) {
var div = document.createElement('div');
div.innerHTML = message;
document.getElementById('output').appendChild(div);
};
window.onload = function() {
var url = 'ws://localhost:8080/foo';
websocket = new WebSocket(url);
websocket.onopen = function(ev) {
writeToScreen('<span style="color: green;">CONNECTED</span>');
};
websocket.onclose = function(ev) {
writeToScreen('<span style="color: white;">DISCONNECTED</span>');
};
websocket.onmessage = function(ev) {
writeToScreen('<span style="color: blue;">RESPONSE: ' + ev.data +
' </span>');
};
websocket.onerror = function(ev) {
writeToScreen('<span style="color: red; ">ERROR: </span> ' + ev.data);
};
};
</script>
<div data-role="page">
<div data-role="header">
<img src="images/logo-mame-small.png"/>
</div>
<ul id="nav" class="dropdown dropdown-horizontal">
<li id="n-home"><a href="./">Home</a></li>
<li id="n-logs"><a href="./" class="dir">Logs</a>
<ul>
<li class="first"><a href="./"><strong>OS log</strong></a></li>
<li><a href="./">Verbose</a></li>
<li><a href="./">Driver log</a></li>
</ul>
</li>
<li id="n-options"><a href="./" class="dir">Options</a>
<ul>
<li class="first"><span class="dir">Video</span>
<ul>
<li class="first"><a href="./">Option 1</a></li>
<li><a href="./">Option 2</a></li>
<li><a href="./">Option 3</a></li>
<li><a href="./">Option 4</a></li>
<li><a href="./">Option 5</a></li>
</ul>
</li>
<li><span class="dir">Sound</span>
<ul>
<li class="first"><a href="./">Option 1</a></li>
<li><a href="./">Option 2</a></li>
</ul>
</li>
</ul>
</li>
<li id="n-debugger"><a href="./">Debugger</a></li>
</ul>
<br/><br/><div id="output"></div>
</div>
</body>
</html>
|