-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
147 lines (130 loc) · 5.91 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
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Graph Visualizerᵇᵉᵗᵃ v0.1.5</title>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/style2.css">
<script src="assets/js/long-press-event.js"></script>
</head>
<body>
<div class="menu">
<div class="menulogo">
<img src="assets/img/logo.svg" alt="logo">
</div>
<div class="menu-buttons-container">
<div onclick="newNode(200,200);" class="button">
<img src="assets/img/add.svg" alt="">
<p>Add</p>
</div>
<div onclick="toggleFullScreen()" class="button" >
<img src="assets/img/full.svg" alt="">
<p>Full Screen</p>
</div>
</div>
</div>
<div id="contextmenu" class="contextmenu contextmenuhide">
<div id="ctxMenuContent" class="ctxAllOptions">
</div>
<div class="ctxMenubottom">
<hr>
<span class="fake-link italic" style="float: right; padding: 5px;" onclick="contextmenu.classList.toggle('contextmenuhide')">Close</span>
</div>
</div>
<div class="sidebar-wrapper" style="background-color: aqua;">
<div id="sidebar" class="sidebar">
<div id='sidebar-inner-wrapper-1' class="siderbar-inner-wrapper">
<div id="up-container" class="mobile-only up-container">
<img src="assets/img/up.svg" alt="">
<p>
Tap to open
</p>
</div>
<div id="nodes-tree-container" class="nodes-tree-container">
<h5 style="text-align: center; margin: 10px 0 0 0;">Nodes</h5>
<div class="container-innershadow" style="margin: 10px; padding: 10px; outline: none;">
<div class="nodes-tree-contents">
<ul id="treeUL">
<li>
<p>No Nodes to show. Please add some Nodes.</p>
</li>
</ul>
</div>
</div>
</div>
<div id="lines-tree-container" class="lines-tree-container">
<h5 style="text-align: center; margin: 10px 0 0 0;">Lines</h5>
<div class="container-innershadow" style="margin: 10px; padding: 10px; outline: none;">
<div class="lines-tree-contents">
<ul id="LinestreeUL">
<li>
<p>No Lines to show. Please connect some Lines to Nodes.</p>
</li>
</ul>
</div>
</div>
</div>
<div id="adj-matrix-wrapper">
<h5 style="text-align: center; margin: 10px 0 0 0;">Adjacency Matrix</h5>
<div class="container-innershadow" style="margin: 10px; outline: none; overflow: hidden; " >
<div id="AdjMatrixContainer" >
<p>No Matrix to show. Please Add Nodes to calculate matrix. </p>
</div>
</div>
</div>
<div id="incd-matrix-wrapper">
<h5 style="text-align: center; margin: 10px 0 0 0;">Incedence Matrix</h5>
<div class="container-innershadow" style="margin: 10px; outline: none; overflow: hidden; " >
<div id="incdMatrixContainer" >
<p>No Matrix to show. Please Add Nodes to calculate matrix. </p>
</div>
</div>
</div>
</div>
<div class="sidebar-inner-wrapper-2">
<div id="nodes-button" class="button">
<p>Close Nodes Browser</p>
</div>
<div id="lines-button" class="button">
<p>Close Lines Browser</p>
</div>
<div id="adjmat-button" class="button">
<p>Hide Adjacency Matrix</p>
</div>
<div id="incmat-button" class="button">
<p>Hide Incidence Matrix</p>
</div>
</div>
</div>
<div id="left-container" class="left-container mobile-hide ">
<img src="assets/img/up.svg" alt="">
<p>
Tap to open
</p>
</div>
</div>
<div class="canvas-container">
<canvas id="canvas" data-long-press-delay="200"></canvas>
</div>
<script>
function toggleFullScreen() {
var doc = window.document;
var docEl = doc.documentElement;
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen;
if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
requestFullScreen.call(docEl);
}
else {
cancelFullScreen.call(doc);
}
}
</script>
<script src='https://unpkg.com/panzoom@9.2.4/dist/panzoom.min.js'></script>
<script src="assets/js/canvas.js"></script>
<script src="assets/js/contextmenu.js"></script>
<script src="assets/js/matrix.js"></script>
<script src="assets/js/sidebarMenu.js"></script>
</body>
</html>