aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sciteco.html
blob: 86891a5ed8c68c4838de3f8b62f3e86d64290f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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;
				display: none;
			}
		</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> &bull;
			<a href="#" onClicK="term.resizeTo(80, 43)">80x43</a> &bull;
			<a href="#" onClicK="term.resizeTo(132, 24)">132x24</a> &bull;
			<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>