mirror of https://github.com/mosra/magnum.git
Browse Source
Indented and cleaned up cruft from HTML template, renamed NaClApplication.css to WebApplication.css, as it is universal and not tied only to NaCl.pull/23/head
4 changed files with 54 additions and 54 deletions
@ -1,41 +1,41 @@ |
|||||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||||
<html> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||||
<head> |
<head> |
||||||
<title>Magnum Info</title> |
<title>Magnum Info</title> |
||||||
<meta charset="utf-8" /> |
<meta charset="utf-8" /> |
||||||
<link rel="stylesheet" href="NaClApplication.css" /> |
<link rel="stylesheet" href="WebApplication.css" /> |
||||||
<style type="text/css"> |
<style type="text/css"> |
||||||
#module { |
#module { |
||||||
position: absolute; |
position: absolute; |
||||||
visibility: hidden; /* The module doesn't display anything */ |
visibility: hidden; /* The module doesn't display anything */ |
||||||
} |
} |
||||||
|
|
||||||
#info { |
#info { |
||||||
width: 640px; |
width: 640px; |
||||||
height: 480px; |
height: 480px; |
||||||
overflow: auto; |
overflow: auto; |
||||||
font-family: monospace; |
font-family: monospace; |
||||||
white-space: pre-wrap; |
white-space: pre-wrap; |
||||||
} |
} |
||||||
</style> |
</style> |
||||||
</head> |
</head> |
||||||
<body> |
<body> |
||||||
<h1>Magnum Info</h1> |
<h1>Magnum Info</h1> |
||||||
<div id="listener"> |
<div id="listener"> |
||||||
<script type="text/javascript" src="NaClApplication.js"></script> |
<embed id="module" type="application/x-nacl" src="magnum-info.nmf" /> |
||||||
<script type="text/javascript"> |
<div id="status">Initialization...</div> |
||||||
function messageReceived(message) { |
<div id="statusDescription" /> |
||||||
var info = document.getElementById('info'); |
<div id="info" /> |
||||||
info.innerHTML += message.data; |
<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'); |
var listener = document.getElementById('listener'); |
||||||
listener.addEventListener('message', messageReceived, true); |
listener.addEventListener('message', messageReceived, true); |
||||||
</script> |
</script> |
||||||
<embed id="module" type="application/x-nacl" src="magnum-info.nmf" /> |
</div> |
||||||
<div id="status">Initialization...</div> |
</body> |
||||||
<div id="statusDescription"></div> |
|
||||||
<div id="info"></div> |
|
||||||
</div> |
|
||||||
</body> |
|
||||||
</html> |
</html> |
||||||
|
|||||||
Loading…
Reference in new issue