-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (127 loc) · 4.29 KB
/
index.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<html>
<head>
<title>Flow</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="icon" type="image/x-icon" href="res/favicon.png" />
<link rel="manifest" href="manifest.json" />
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' name='viewport' />
<meta name="viewport" content="width=device-width" />
<meta name="color-scheme" content="light only" />
<meta charset="UTF-8" />
</head>
<body>
<div id="toolbar">
<table>
<tr>
<td>
<span style="padding-right: 4rem">Flow</span>
</td>
<td>
<div class="btn" role="button" style="width: 1.3rem" onclick="displayDocumentation()">
?
</div>
</td>
<td>
<div class="btn" role="button" style="width: 1.3rem" onclick="gotoCenter()">
🎯
</div>
</td>
<td>
<div class="btn" role="button" style="width: 1.3rem" onclick="openExtensionMenu()">
🧩
</div>
</td>
<td>
<div class="btn" role="button" onclick="clearProject()">Clear</div>
</td>
<td>
<div class="btn" role="button" onclick="exportProject()">
Export
</div>
</td>
<td>
<div class="btn" role="button" onclick="loadProject()">Load</div>
</td>
<td>
<input id="input" contenteditable="true" placeholder="Search..." autocomplete="off" spellcheck="false">
</td>
</div>
</td>
<td>
<div id="insert" role="button" onclick="insertNode()">Insert</div>
</td>
<td id="nodecount">
0⬒
</td>
</tr>
</table>
</div>
<div id="suggestions"></div>
<div id="canvas"></div>
<svg id="linkCanvas" width="1366" height="768" viewBox="0 0 1366 768" xmlns="http://www.w3.org/2000/svg"
version="1.1"></svg>
<table id="zoomBtns">
<tr>
<td>
<div style="cursor: zoom-in" onclick="zoomIn()" id="zoomin">+</div>
</td>
</tr>
<tr>
<td>
<div style="cursor: zoom-out" onclick="zoomOut()" id="zoomout">-</div>
</td>
</tr>
</table>
<image id="trashbin" src="res/rodbin.svg"></image>
<script>
window.onerror = (err) => {
alert("An error occurred. Check the console for details.");
};
window.flags = {
benchmarking: false,
}
</script>
<!-- Libraries -->
<script src="libs/mixbox.js"></script>
<script src="libs/noise.js"></script>
<script src="libs/worley.js"></script>
<script src="libs/soundplayer.js"></script>
<script src="libs/lamejs.min.js"></script>
<script src="libs/sfx.js"></script>
<script src="libs/varmap.js"></script>
<!-- Value, Logic & Hat Nodes -->
<script src="scripts/input/index.js"></script>
<script src="scripts/input/classes.js"></script>
<script src="scripts/input/math.js"></script>
<script src="scripts/input/image.js"></script>
<script src="scripts/input/vectorClasses.js"></script>
<script src="scripts/input/audio.js"></script>
<script src="scripts/input/colorClasses.js"></script>
<script src="scripts/input/noiseClasses.js"></script>
<script src="scripts/input/documentation.js"></script>
<script src="scripts/input/compiler.js"></script>
<!-- Add your node script(s) on top of this line -->
<!-- Output nodes -->
<script src="scripts/output/output.js"></script>
<script src="scripts/output/vector2.js"></script>
<script src="scripts/output/vector3.js"></script>
<script src="scripts/output/vector4.js"></script>
<script src="scripts/output/soundwave.js"></script>
<script src="scripts/output/graph.js"></script>
<script src="scripts/output/table.js"></script>
<script src="scripts/output/image.js"></script>
<script src="scripts/output/audio.js"></script>
<script src="scripts/extensions.js"></script>
<!-- UI stuff -->
<script src="scripts/ui/events.js"></script>
<script src="scripts/ui/termsAndConditions.js"></script>
<script src="scripts/ui/dragElem.js"></script>
<script src="scripts/ui/bLink.js"></script>
<script src="scripts/ui/draggableCanvas.js"></script>
<script src="scripts/ui/zoom.js"></script>
<script src="scripts/ui/node.js"></script>
<script src="scripts/ui/serialise.js"></script>
<script src="scripts/ui/suggestions.js"></script>
<script src="scripts/ui/nodecount.js"></script>
</body>
</html>