-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpscweb.html
46 lines (46 loc) · 1.41 KB
/
pscweb.html
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
<!DOCTYPE html>
<html lang="en-GB"><!-- https://github.com/cpp-tutor/pseudocode-compiler/ -->
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Pseudocode to JavaScript Compiler</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="pscweb.css" type="text/css" rel="stylesheet" />
</head>
<body>
<script type="text/javascript" src="pscweb.js">
</script>
<script type="text/javascript" src="pscexamples.js">
</script>
<div>
<h2 style="text-align: center">Pseudocode to JavaScript Compiler</h2>
</div>
<div class="window">
<h3 style="text-align: center">Type your program here</h3>
<form id="input" accept-charset="utf-8" spellcheck="false">
<textarea name="program_source"></textarea>
</form>
<div class="bar">
<button type="button" onClick="run()">Run program</button>
<button type="button" onClick="clear_input()">Clear window</button>
<span class="load-menu">
<div class="load-menu-content" id="examples">
</div>
<button type="button">Load example</button>
</span>
</div>
</div>
<script type="text/javascript">
createmenu();
</script>
<div class="window">
<h3 style="text-align: center">View the output here</h3>
<div class="output">
<pre id="program_output"></pre>
</div>
<div class="bar">
<button type="button" onClick="clear_output()">Clear output</button>
<input type="text" id="user_input" placeholder="Input1,Input2..." maxlength="128"/>
</div>
</div>
</body>
</html>