-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (47 loc) · 1.33 KB
/
index.html
File metadata and controls
50 lines (47 loc) · 1.33 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typr Language Playground</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>Typr Language Playground</h1>
<p>Write and execute Typr code directly in your browser</p>
</header>
<main>
<div class="editor-container">
<textarea id="code-editor" placeholder="Enter your Typr code here...">let a: int = 5;
let b: num = 5.0;
let c: chars = "5";
let d: bool = true;</textarea>
<div class="button-bar">
<button id="run-button">Run</button>
<button id="clear-button">Clear</button>
</div>
</div>
<div class="output-container">
<div class="output-header">
<h3>Output:</h3>
</div>
<div id="output-display">
<div class="output-section">
<h4>Type checking:</h4>
<pre id="type-output">Run your code to see type information</pre>
</div>
<div class="output-section">
<h4>Execution:</h4>
<pre id="execution-output">Run your code to see execution results</pre>
</div>
</div>
</div>
</main>
<footer>
<p>Typr Language © 2025</p>
</footer>
<!-- Load our JavaScript -->
<script src="js/main.js"></script>
</body>
</html>