1 |
1e2b2c27
|
Tomáš Šimandl
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
2 |
30993516
|
Tomáš Šimandl
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
3 |
1e2b2c27
|
Tomáš Šimandl
|
|
4 |
2a2f32c2
|
Pavel Fidranský
|
<c:set var="HOME_URL" value="${initParam.HOME_URL}"/>
|
5 |
|
|
<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
|
6 |
|
|
<c:set var="user" value="${sessionScope.user}"/>
|
7 |
|
|
|
8 |
1e2b2c27
|
Tomáš Šimandl
|
<!DOCTYPE html>
|
9 |
|
|
<html>
|
10 |
|
|
<head>
|
11 |
|
|
<meta charset="utf-8">
|
12 |
|
|
|
13 |
|
|
<link rel="stylesheet" href="css/main.css">
|
14 |
|
|
<link rel="stylesheet" href="css/jstree/themes/default/style.min.css">
|
15 |
|
|
|
16 |
|
|
<script id="htmlTags" type="application/json"><%@ include file="node_modules/html-tags/html-tags.json" %></script>
|
17 |
|
|
<script id="svgTags" type="application/json"><%@ include file="node_modules/svg-tags/lib/svg-tags.json" %></script>
|
18 |
|
|
|
19 |
2f31119d
|
Pavel Fidranský
|
<script src="js/libs/jquery-3.3.1.min.js"></script>
|
20 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/libs/spin.js"></script>
|
21 |
|
|
<script src="js/libs/saveSvgAsPng.js"></script>
|
22 |
|
|
<script src="js/libs/jstree.min.js"></script>
|
23 |
|
|
|
24 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/generic/modalWindow.js"></script>
|
25 |
|
|
<script src="js/components/generic/popover.js"></script>
|
26 |
|
|
<script src="js/components/generic/popup.js"></script>
|
27 |
c91081fb
|
Pavel Fidranský
|
<script src="js/components/attribute.js"></script>
|
28 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/edge.js"></script>
|
29 |
|
|
<script src="js/components/edgePopover.js"></script>
|
30 |
|
|
<script src="js/components/floatingPoint.js"></script>
|
31 |
|
|
<script src="js/components/group.js"></script>
|
32 |
d276ae6c
|
Pavel Fidranský
|
<script src="js/components/groupVertexList.js"></script>
|
33 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/loginPopup.js"></script>
|
34 |
0354f040
|
Pavel Fidranský
|
<script src="js/components/minimap.js"></script>
|
35 |
f4a56448
|
Pavel Fidranský
|
<script src="js/components/modalWindow.js"></script>
|
36 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/registerPopup.js"></script>
|
37 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/sidebar.js"></script>
|
38 |
|
|
<script src="js/components/sidebarExcludedNodeList.js"></script>
|
39 |
|
|
<script src="js/components/sidebarUnconnectedNodeList.js"></script>
|
40 |
|
|
<script src="js/components/statusBar.js"></script>
|
41 |
|
|
<script src="js/components/vertex.js"></script>
|
42 |
|
|
<script src="js/components/vertexContextMenuList.js"></script>
|
43 |
|
|
<script src="js/components/vertexPopover.js"></script>
|
44 |
|
|
<script src="js/components/vertexSymbolList.js"></script>
|
45 |
|
|
<script src="js/components/viewport.js"></script>
|
46 |
|
|
|
47 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/errors/httpError.js"></script>
|
48 |
0b3eb56d
|
Pavel Fidranský
|
<script src="js/errors/invalidArgumentError.js"></script>
|
49 |
1e2b2c27
|
Tomáš Šimandl
|
|
50 |
bda189f9
|
Pavel Fidranský
|
<script src="js/services/forceDirected.js"></script>
|
51 |
|
|
<script src="js/services/graphLoader.js"></script>
|
52 |
|
|
<script src="js/services/graphExporter.js"></script>
|
53 |
|
|
<script src="js/services/loader.js"></script>
|
54 |
|
|
<script src="js/services/zoom.js"></script>
|
55 |
|
|
|
56 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/utils/ajax.js"></script>
|
57 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/utils/cookies.js"></script>
|
58 |
|
|
<script src="js/utils/dom.js"></script>
|
59 |
|
|
<script src="js/utils/utils.js"></script>
|
60 |
bda189f9
|
Pavel Fidranský
|
|
61 |
|
|
<script src="js/valueObjects/coordinates.js"></script>
|
62 |
|
|
<script src="js/valueObjects/diagram.js"></script>
|
63 |
d7508af3
|
Pavel Fidranský
|
<script src="js/valueObjects/dimensions.js"></script>
|
64 |
bda189f9
|
Pavel Fidranský
|
|
65 |
60bada5b
|
Pavel Fidranský
|
<script src="js/userMenu.js"></script>
|
66 |
bda189f9
|
Pavel Fidranský
|
<script src="js/markSymbol.js"></script>
|
67 |
|
|
<script src="js/constants.js"></script>
|
68 |
98b06149
|
Pavel Fidranský
|
<script src="js/showGraphApp.js"></script>
|
69 |
1e2b2c27
|
Tomáš Šimandl
|
|
70 |
ee95801f
|
Pavel Fidranský
|
<title>IMiGEr</title>
|
71 |
1e2b2c27
|
Tomáš Šimandl
|
</head>
|
72 |
|
|
|
73 |
2a2f32c2
|
Pavel Fidranský
|
<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
|
74 |
1e2b2c27
|
Tomáš Šimandl
|
<div class="wrapper">
|
75 |
|
|
<header class="header" id="header">
|
76 |
|
|
<img src="images/logo.png" class="header-logo" alt="logo of University of West Bohemia" title="University of West Bohemia">
|
77 |
|
|
|
78 |
ee95801f
|
Pavel Fidranský
|
<h2 class="header-title">Interactive Multimodal Graph Explorer</h2>
|
79 |
1e2b2c27
|
Tomáš Šimandl
|
|
80 |
0ac9b68b
|
Pavel Fidranský
|
<%@ include file="userMenu.jsp" %>
|
81 |
1e2b2c27
|
Tomáš Šimandl
|
|
82 |
|
|
<nav class="navbar" id="navigation">
|
83 |
|
|
<ul>
|
84 |
|
|
<li>
|
85 |
|
|
<button class="btn zoom" id="zoomOut" title="zoom-"><img src="images/zoom_out.png" alt="zoom-"></button>
|
86 |
|
|
<span class="zoom-value" id="zoomValue"></span>
|
87 |
|
|
<button class="btn zoom" id="zoomIn" title="zoom+"><img src="images/zoom_in.png" alt="zoom+"></button>
|
88 |
|
|
</li>
|
89 |
|
|
<li>
|
90 |
|
|
<hr class="navbar-separator">
|
91 |
|
|
</li>
|
92 |
|
|
<li>
|
93 |
|
|
<input class="search-text" id="searchText" type="text" placeholder="Search components...">
|
94 |
|
|
<button class="btn search" id="search"><img src="images/search.png" title="search" alt="search"></button>
|
95 |
|
|
<span class="search-count" id="countOfFound" title="Count of components found">0</span>
|
96 |
|
|
</li>
|
97 |
|
|
<li>
|
98 |
|
|
<hr class="navbar-separator">
|
99 |
|
|
</li>
|
100 |
|
|
<li>
|
101 |
|
|
<form name="actionForm">
|
102 |
|
|
<label for="move">
|
103 |
|
|
<input type="radio" name="actionMove" value="move" id="move" checked>
|
104 |
|
|
move
|
105 |
|
|
<img class="navbar-image" src="images/move.png" alt="move">
|
106 |
|
|
</label>
|
107 |
|
|
<label for="remove">
|
108 |
|
|
<input type="radio" name="actionMove" value="exclude" id="remove">
|
109 |
|
|
exclude
|
110 |
|
|
<img class="navbar-image" src="images/remove2.png" alt="remove">
|
111 |
|
|
</label>
|
112 |
|
|
</form>
|
113 |
|
|
</li>
|
114 |
|
|
<li>
|
115 |
|
|
<hr class="navbar-separator">
|
116 |
|
|
</li>
|
117 |
|
|
<li>
|
118 |
|
|
<button id="mostEdge" class="btn exclude-separately" title="Exclude components with the most count of edges separately.">
|
119 |
|
|
<img src="images/excludeSeparately.png" alt="excludeSeparately">
|
120 |
|
|
</button>
|
121 |
|
|
</li>
|
122 |
|
|
<li>
|
123 |
|
|
<hr class="navbar-separator">
|
124 |
|
|
</li>
|
125 |
|
|
<li>
|
126 |
|
|
<button id="vertexToGroup" class="btn exclude-to-group" title="Exclude components with the most count of edges to group.">
|
127 |
|
|
<img src="images/package.png" alt="Exclude components to group">
|
128 |
|
|
</button>
|
129 |
|
|
</li>
|
130 |
|
|
<li>
|
131 |
|
|
<hr class="navbar-separator">
|
132 |
|
|
</li>
|
133 |
|
|
<li>
|
134 |
dad52d7e
|
Pavel Fidranský
|
<a href="${HOME_URL}" class="btn btn-block back-to-upload" id="view_back_to_upload" title="Back to upload"></a>
|
135 |
1e2b2c27
|
Tomáš Šimandl
|
</li>
|
136 |
|
|
<li>
|
137 |
|
|
<hr class="navbar-separator">
|
138 |
|
|
</li>
|
139 |
|
|
<li>
|
140 |
d8b87a02
|
Pavel Fidranský
|
<button class="btn" id="applyLayout" title="Apply layout to current graph">
|
141 |
1e2b2c27
|
Tomáš Šimandl
|
<img src="images/layout_off.png" id="applyLayoutImg" alt="Apply layout to current graph.">
|
142 |
|
|
</button>
|
143 |
|
|
</li>
|
144 |
|
|
<li>
|
145 |
|
|
<hr class="navbar-separator">
|
146 |
|
|
</li>
|
147 |
|
|
<li>
|
148 |
d8b87a02
|
Pavel Fidranský
|
<button class="btn save-diagram" id="btnSaveDiagram" title="Save diagram as PNG">
|
149 |
1e2b2c27
|
Tomáš Šimandl
|
<img src="images/png_save.png" id="applyLayoutImg" alt="Save diagram as PNG.">
|
150 |
|
|
</button>
|
151 |
|
|
</li>
|
152 |
2a2f32c2
|
Pavel Fidranský
|
<li class="loggedInOnly">
|
153 |
|
|
<hr class="navbar-separator">
|
154 |
|
|
</li>
|
155 |
|
|
<li class="loggedInOnly">
|
156 |
|
|
<button class="btn save-diagram" id="btnSaveDiagramToDatabase" title="Save diagram">
|
157 |
|
|
<img src="images/icon_save.png" id="applyLayoutImg" alt="Save diagram">
|
158 |
|
|
</button>
|
159 |
|
|
</li>
|
160 |
1e2b2c27
|
Tomáš Šimandl
|
<li>
|
161 |
|
|
<hr class="navbar-separator">
|
162 |
|
|
</li>
|
163 |
|
|
<li>
|
164 |
dad52d7e
|
Pavel Fidranský
|
<a href="${HOME_URL}graph?diagramId=${param.diagramId}" class="btn btn-block view-refresh-diagram" id="view_refresh_diagram" title="Refresh diagram"></a>
|
165 |
1e2b2c27
|
Tomáš Šimandl
|
</li>
|
166 |
|
|
<li>
|
167 |
|
|
<hr class="navbar-separator">
|
168 |
|
|
</li>
|
169 |
|
|
<li>
|
170 |
0356f5a9
|
Tomáš Šimandl
|
<button class="btn btn-block view-refresh-reset-diagram" id="view_refresh_reset_diagram" title="Refresh diagram - reset position"></button>
|
171 |
1e2b2c27
|
Tomáš Šimandl
|
</li>
|
172 |
|
|
</ul>
|
173 |
|
|
</nav>
|
174 |
|
|
</header>
|
175 |
71580feb
|
Pavel Fidranský
|
|
176 |
1e2b2c27
|
Tomáš Šimandl
|
<main class="graph-content" id="content"></main>
|
177 |
|
|
</div>
|
178 |
|
|
|
179 |
|
|
<div class="loader" id="loader">
|
180 |
|
|
<div class="loader-content" id="spinLoader">
|
181 |
|
|
<p>Loading graph...</p>
|
182 |
|
|
</div>
|
183 |
|
|
</div>
|
184 |
|
|
|
185 |
|
|
<script>
|
186 |
98b06149
|
Pavel Fidranský
|
var app = new ShowGraphApp;
|
187 |
dad52d7e
|
Pavel Fidranský
|
app.HOME_URL = '${HOME_URL}';
|
188 |
1e2b2c27
|
Tomáš Šimandl
|
|
189 |
d3c91225
|
Pavel Fidranský
|
document.addEventListener('DOMContentLoaded', function() {
|
190 |
dad52d7e
|
Pavel Fidranský
|
var loaderFn = app.diagramLoader('${param.diagramId}');
|
191 |
1e2b2c27
|
Tomáš Šimandl
|
|
192 |
|
|
app.run(loaderFn);
|
193 |
|
|
});
|
194 |
|
|
</script>
|
195 |
|
|
</body>
|
196 |
|
|
</html>
|