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> |
||||
<html> |
||||
<head> |
||||
<title>Magnum Info</title> |
||||
<meta charset="utf-8" /> |
||||
<link rel="stylesheet" href="NaClApplication.css" /> |
||||
<style type="text/css"> |
||||
#module { |
||||
position: absolute; |
||||
visibility: hidden; /* The module doesn't display anything */ |
||||
} |
||||
<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"> |
||||
<script type="text/javascript" src="NaClApplication.js"></script> |
||||
<script type="text/javascript"> |
||||
function messageReceived(message) { |
||||
var info = document.getElementById('info'); |
||||
info.innerHTML += message.data; |
||||
} |
||||
#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> |
||||
<embed id="module" type="application/x-nacl" src="magnum-info.nmf" /> |
||||
<div id="status">Initialization...</div> |
||||
<div id="statusDescription"></div> |
||||
<div id="info"></div> |
||||
</div> |
||||
</body> |
||||
var listener = document.getElementById('listener'); |
||||
listener.addEventListener('message', messageReceived, true); |
||||
</script> |
||||
</div> |
||||
</body> |
||||
</html> |
||||
|
||||
Loading…
Reference in new issue