mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
77 lines
2.5 KiB
HTML
77 lines
2.5 KiB
HTML
<!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> |