|
|
|
@ -75,24 +75,24 @@ to simplify porting. |
|
|
|
|
|
|
|
|
|
|
|
You need to provide HTML markup for your application. Template one is below, |
|
|
|
You need to provide HTML markup for your application. Template one is below, |
|
|
|
you can modify it to your liking. The markup references two files, |
|
|
|
you can modify it to your liking. The markup references two files, |
|
|
|
`NaClApplication.js` and `NaClApplication.css`, both are in `Platform/` |
|
|
|
`NaClApplication.js` and `WebApplication.css`, both are in `Platform/` |
|
|
|
directory in the source tree and are also installed into `share/magnum/` inside |
|
|
|
directory in the source tree and are also installed into `share/magnum/` inside |
|
|
|
your NaCl toolchain. |
|
|
|
your NaCl toolchain. |
|
|
|
@code |
|
|
|
@code |
|
|
|
<!DOCTYPE html> |
|
|
|
<!DOCTYPE html> |
|
|
|
<html> |
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
|
|
<head> |
|
|
|
<head> |
|
|
|
<title>Magnum NaCl Application</title> |
|
|
|
<title>Magnum NaCl Application</title> |
|
|
|
<meta charset="utf-8" /> |
|
|
|
<meta charset="utf-8" /> |
|
|
|
<link rel="stylesheet" href="NaClApplication.css" /> |
|
|
|
<link rel="stylesheet" href="WebApplication.css" /> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<body> |
|
|
|
<h1>Magnum NaCl Application</h1> |
|
|
|
<h1>Magnum NaCl Application</h1> |
|
|
|
<div id="listener"> |
|
|
|
<div id="listener"> |
|
|
|
<script type="text/javascript" src="NaClApplication.js"></script> |
|
|
|
|
|
|
|
<embed id="module" type="application/x-nacl" src="application.nmf" /> |
|
|
|
<embed id="module" type="application/x-nacl" src="application.nmf" /> |
|
|
|
<div id="status">Initialization...</div> |
|
|
|
<div id="status">Initialization...</div> |
|
|
|
<div id="statusDescription"></div> |
|
|
|
<div id="statusDescription" /> |
|
|
|
|
|
|
|
<script src="NaClApplication.js"></script> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|
|