diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-15 15:18:09 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-15 15:18:09 +0100 |
commit | 6d4668bdaf393aa45d9adb640774f998c6b4aa58 (patch) | |
tree | 29c84032a504246770a26f2c5df44c54db863568 /src/sciteco.html | |
parent | a0be14cce5ba22614d92712b44d609c73d066892 (diff) | |
download | sciteco-6d4668bdaf393aa45d9adb640774f998c6b4aa58.tar.gz |
added EMCurses/Emscripten support
by building with Emscripten support, SciTECO may be
embedded into web pages.
* sciteco.html is not a piece of documentation but a sample SciTECO embedding
Diffstat (limited to 'src/sciteco.html')
-rw-r--r-- | src/sciteco.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/sciteco.html b/src/sciteco.html new file mode 100644 index 0000000..9acef2b --- /dev/null +++ b/src/sciteco.html @@ -0,0 +1,70 @@ +<html>
+ <head>
+ <title>Text Editor and Corrector</title>
+ <style type="text/css">
+ body,p,a,td,li {
+ font-family: courier,fixed,swiss,sans-serif;
+ font-size: 12px;
+ color: #cccccc;
+ }
+ .lh15 {
+ line-height: 15px;
+ }
+
+ .term {
+ font-family: "Courier New",courier,fixed,monospace;
+ font-size: 12px;
+ color: #94aad6;
+ background: none;
+ letter-spacing: 1px;
+ }
+ .term .termReverse {
+ color: #232e45;
+ background: #95a9d5;
+ }
+ + #termDiv { + visibility: hidden; + width: 100%; + }
+ #termDiv table { + margin-left: auto; + margin-right: auto; + } + + /* the canvas *must not* have any border or padding, or mouse coords will be wrong */ + canvas.emscripten { + border: 0px none; + visibility: hidden; + } + </style>
+ </head>
+ <body bgcolor="#222222" link="#77dd11" text="#cccccc">
+ <!-- FIXME: We don't need a Canvas, but must nevertheless define it, + as Emscripten plugins for loading files depend on it. + --> + <!-- <canvas class="emscripten" id="canvas"></canvas> --> + <!-- For termlib... --> + <div id="termDiv"></div> + <center> + <a href="#" onClicK="term.resizeTo(80, 24)">80x24</a> • + <a href="#" onClicK="term.resizeTo(80, 43)">80x43</a> • + <a href="#" onClicK="term.resizeTo(132, 24)">132x24</a> • + <a href="#" onClicK="term.resizeTo(132, 43)">132x43</a> + </center> + + <script language="JavaScript" type="text/javascript"> + function sciteco_init() { + ENV.HOME = "/pages"; + +// FS.createPreloadedFile("/pages", "Welcome", "pages/Welcome", true, true); + } + + var Module = { + preRun: [sciteco_init], +// canvas: document.getElementById('canvas') + }; + </script> + <script async language="JavaScript" type="text/javascript" src="sciteco.js"></script> + </body> +</html> |