-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (70 loc) · 2.62 KB
/
index.html
File metadata and controls
84 lines (70 loc) · 2.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/codemirror.min.css" />
<link rel="stylesheet" href="css/jsontree.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/codemirror-one-dark-theme@1.1.1/one-dark.min.css">
<link rel="icon" type="image/x-icon" href="css/Logo.png">
<link rel="manifest" href="manifest.json">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.63.1/codemirror.min.js"></script>
<script src="js/mapl.codemirror.js"></script>
<script src="js/mapl.js"></script>
<script src="js/jsontree.js"></script>
<script src="js/index.js" defer></script>
<title>Mobiz Advanced Programming Language (MAPLScript)</title>
</head>
<body>
<div id="codearea">
<textarea placeholder="Start Writing MAPLScript..." id="scriptbox">
mark "Sample function";
seed multiply x {
return x * x
};
mark "Variables and arrays";
leaf two = 2;
leaf twoTimesByTwo = multiply(two);
branch count = [1, two, 3, twoTimesByTwo];
mark "Sample if-then statement";
leaf twoTimesByTwois4 = "";
if twoTimesByTwo == 4 then {
twoTimesByTwois4 = "true"
};
mark "Sample print function";
print "2 * 2 is " + twoTimesByTwo;
print "its " + twoTimesByTwois4;
mark "Seeds and if-then statements run javascript code, NOT MAPLSCRIPT!";
mark "The Javascript code cannot contain semicolons as it will conflict with the MAPLScript code.";</textarea>
</div>
<div id="allvars">
<div id="error">Error</div>
<fieldset>
<input id="filename" value="Project.mapl">
<br>
<button onclick="runScript()">Run</button>
<button onclick="clearTree()">Clear</button>
<button onclick="exportMAPL()">Save</button>
<button onclick="document.getElementById('file-input').click()">
<input type="file" accept=".mapl" id="file-input" onchange="importMAPL()" style="display: none;" />
Open
</button>
</fieldset>
<details>
<summary>Tree</summary>
<div id="tree"></div>
</details>
<details>
<summary>Log</summary>
<div id="Log"></div>
</details>
<details open>
<summary>About</summary>
Mobiz Advanced Programming Language, © Mobiz 2023<br>
We | Do | Tech. Do not contact us, we are epic.
</details>
</div>
</body>
</html>