-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (39 loc) · 2.12 KB
/
Copy pathindex.html
File metadata and controls
46 lines (39 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel = "stylesheet" type = "text/css" href = "main.css" />
<script src = "https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src = "js/index.js"></script>
<script src = "js/main.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<title>Test</title>
</head>
<body>
<script src="js/main.js"></script>
<div class="row">
<div class="col-sm-8">
<div class="w3-container" id="canvas">
</div>
</div>
<div class="col-sm-4">
<div class="card bg-dark text-white" align="left" id="sidebar">
<div class="card-header cardtitle">Graph Editor</div>
<div class="card-body">
Add Node:<br><br>
<input type="text" id="nodename" name="nodename" placeholder="Node name">
<input type="button" id="addnodes" value="Add Node" onclick="newNode()"><br><br>
Add Edge: <br><br>
Node 1: <input type="text" id="node1" name="node1" placeholder="Node name"><br>
Node 2: <input type="text" id="node2" name="node2" placeholder="Node name"><br>
<input type="button" id="addedges" value="Add Edge" onclick="newEdge()">
<input type="button" id="clear" value="Clear" onclick="canvasClear()">
</div>
</div>
</div>
</div>
</body>
</html>