-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (51 loc) · 2.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hermes / Graph Creator</title>
<link rel="stylesheet" href="index.css">
<script type="module" src="main.js"></script>
</head>
<body>
<div id="sidebar">
<div class="bar-item" style="display: inline-flex; gap: 30px;">
<h3>Options</h3>
<button id="export-btn">Export</button>
</div>
<div id="node-info" class="bar-item" style="visibility: hidden">
<label for="enn" style="font-weight: bold">Node name:</label><br>
<input id="enn" type="text" style="width: 100%">
<br><br>
<label for="end" style="font-weight: bold">Node description:</label><br>
<textarea id="end" style="width: 100%"></textarea>
<br><br>
<div style="font-weight: bold; margin-bottom: 3px;">Node type:</div>
<input id="TASK" type="radio" name="nodetype" value="TASK" class="radio">
<label for="TASK" class="radio-label">TASK</label>
<br>
<input id="FORWARD" type="radio" name="nodetype" value="FORWARD" class="radio">
<label for="FORWARD" class="radio-label">FORWARD</label>
<br>
<input id="JOIN" type="radio" name="nodetype" value="JOIN" class="radio">
<label for="JOIN" class="radio-label">JOIN</label>
<br>
<input id="ENDING" type="radio" name="nodetype" value="ENDING" class="radio">
<label for="ENDING" class="radio-label">ENDING</label>
</div>
</div>
<canvas id="myCanvas">Sorry, your browser does not support canvas.</canvas>
<div id="contextMenu">
<div class="contextMenuHeader">Contextual Actions</div>
<ul style="list-style: none;">
<li><button id="new-node-btn" class="ctx-menu-btn button">New node</button></li>
<li><button id="new-edge-btn" class="ctx-menu-btn button">New edge</button></li>
<li><button id="delete-node-btn" class="ctx-menu-btn button">Delete node</button></li>
</ul>
</div>
<nav id="navbar">
<span id="title">Hermes / Graph Creator</span>
<span style="margin-right: 15px;">Right Click to use Contextual Menu</span>
</nav>
</body>
</html>