aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-18 10:34:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-18 10:34:34 -0700
commit270c4b093699e31d0bf86077e463c2d983ab7216 (patch)
treef9e5d2fe0995a26bd2e0757e6f348bdf8e5e850c
parent39f0d3194698ab571936587278566edb2729796b (diff)
parentf3194e27c72c332e24c85d89600bba3c528e2da3 (diff)
Merge pull request #397 from diclophis/html5_shell
Make src/shell.html valid HTML5
-rw-r--r--AUTHORS1
-rw-r--r--src/shell.html28
2 files changed, 18 insertions, 11 deletions
diff --git a/AUTHORS b/AUTHORS
index 6a6db201..b93175f4 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -20,3 +20,4 @@ under the licensing terms detailed in LICENSE.
* David Benjamin <davidben@mit.edu>
* Pierre Renaux <pierre@talansoft.com>
* Brian Anderson <banderson@mozilla.com>
+* Jon Bardin <diclophis@gmail.com>
diff --git a/src/shell.html b/src/shell.html
index 37509889..93dcdf2b 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -1,16 +1,22 @@
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<html>
+<!doctype html>
+<html lang="en-us">
<head>
+ <meta charset="utf-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Emscripten-Generated Code</title>
+ <style>
+ .emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
+ canvas.emscripten { width: 256px; height: 256px; border: 1px solid black; }
+ textarea.emscripten { font-family: monospace; width: 80%; }
+ div.emscripten { text-align: center; }
+ </style>
+ </head>
<body>
- <center>
- <canvas id='canvas' width='256' height='256' style="border: 1px solid black"
- oncontextmenu="event.preventDefault()"></canvas>
- <hr>
- <textarea id="output" style="font-family: monospace; width: 80%" rows="8"></textarea>
- <hr>
- <div id='status'>Downloading...</div>
- </center>
+ <canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
+ <hr/>
+ <textarea class="emscripten" id="output" rows="8"></textarea>
+ <hr>
+ <div class="emscripten" id="status">Downloading...</div>
<hr>
<script type='text/javascript'>
// connect to canvas
@@ -40,7 +46,7 @@
};
{{{ SCRIPT_CODE }}}
+
</script>
</body>
</html>
-