|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<title>Magnum Info</title>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<link rel="stylesheet" href="WebApplication.css" />
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
#module {
|
|
|
|
|
position: absolute;
|
|
|
|
|
visibility: hidden; /* The module doesn't display anything */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#info {
|
|
|
|
|
width: 640px;
|
|
|
|
|
height: 480px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
font-family: monospace;
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<h1>Magnum Info</h1>
|
|
|
|
|
<div id="listener">
|
|
|
|
|
<embed id="module" type="application/x-nacl" src="magnum-info.nmf" />
|
|
|
|
|
<div id="status">Initialization...</div>
|
|
|
|
|
<div id="statusDescription" />
|
|
|
|
|
<div id="info" />
|
|
|
|
|
<script src="NaClApplication.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function messageReceived(message) {
|
|
|
|
|
var info = document.getElementById('info');
|
|
|
|
|
info.innerHTML += message.data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var listener = document.getElementById('listener');
|
|
|
|
|
listener.addEventListener('message', messageReceived, true);
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|