-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipo.html
More file actions
42 lines (42 loc) · 1.2 KB
/
Copy pathipo.html
File metadata and controls
42 lines (42 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Lab 5: IPO/Prime Function Planner</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="shortcut icon" href="favicon.ico" />
<style>
body { margin: 0; padding: 0; }
#planner {
position: absolute;
top: 0; left: 0;
bottom: 0; right: 0;
overflow: hidden;
}
</style>
<script type="module">
import init from "./function-planner.js";
window.addEventListener('DOMContentLoaded', () => {
init('planner', "prime", {
initialModel: {functions: [{ key: 1, name: 'main' }], calls: []},
allowedTypes: ['int', 'float', 'str', 'bool'],
minFunctions: 4,
maxFunctions: 4,
minTestable: 1,
maxTestable: 1,
minInputFuncs: 1,
maxInputFuncs: 1,
minOutputFuncs: 1,
maxOutputFuncs: 1,
functionReadOnly: [
{ for: '^main$', fields: ['name', 'desc', 'params', 'returns'] },
],
adminMode: false,
});
});
</script>
</head>
<body>
<div id="planner"></div>
</body>
</html>