mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
25 lines
642 B
HTML
25 lines
642 B
HTML
|
<html>
|
||
|
<head>
|
||
|
<title>Front Panel</title>
|
||
|
</head>
|
||
|
<body onload="prepare();" bgcolor="black" class="notranslate"">
|
||
|
|
||
|
</body>
|
||
|
|
||
|
<script language="javascript" src="FrontPanel.js"></script>
|
||
|
<script language="javascript">
|
||
|
function wsroot() {
|
||
|
var l = window.location.href;
|
||
|
return (l.startsWith("https") ? "wss" : "ws") + l.substring(l.indexOf(':'), l.lastIndexOf('/')) + "/socket";
|
||
|
}
|
||
|
|
||
|
function prepare() {
|
||
|
var panelUrl = wsroot();
|
||
|
var panel = new fp.Panel(panelUrl, '$keyboard$', $version$);
|
||
|
document.body.appendChild(panel.container);
|
||
|
panel.display.clear();
|
||
|
panel.display.showString(0, 0, "Waiting to connect...");
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</html>
|