Projekt

Obecné

Profil

Stáhnout (3.94 KB) Statistiky
| Větev: | Tag: | Revize:
1
<%@page contentType="text/html" pageEncoding="UTF-8"%>
2
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
3

    
4
<c:set var="APP_NAME" value="IMiGEr"/>
5
<c:set var="APP_HOME_URL" value="${initParam.HOME_URL}"/>
6
<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
7
<c:set var="user" value="${sessionScope.user}"/>
8

    
9
<!DOCTYPE html>
10
<html>
11
	<head>
12
		<meta charset="utf-8">
13

    
14
		<link rel="stylesheet" href="css/main.css">
15
		<link rel="stylesheet" href="css/jstree/themes/default/style.min.css">
16

    
17
		<script id="htmlTags" type="application/json"><%@ include file="node_modules/html-tags/html-tags.json" %></script>
18
		<script id="svgTags" type="application/json"><%@ include file="node_modules/svg-tags/lib/svg-tags.json" %></script>
19

    
20
		<script src="js/libs/jquery-3.3.1.min.js"></script>
21
		<script src="js/libs/spin.js"></script>
22
		<script src="js/libs/saveSvgAsPng.js"></script>
23
		<script src="js/libs/jstree.min.js"></script>
24

    
25
		<script src="js/components/generic/modalWindow.js"></script>
26
		<script src="js/components/generic/popover.js"></script>
27
		<script src="js/components/generic/popup.js"></script>
28
		<script src="js/components/attribute.js"></script>
29
		<script src="js/components/edge.js"></script>
30
		<script src="js/components/edgePopover.js"></script>
31
		<script src="js/components/floatingPoint.js"></script>
32
		<script src="js/components/group.js"></script>
33
		<script src="js/components/groupVertexList.js"></script>
34
		<script src="js/components/header.js"></script>
35
		<script src="js/components/loginPopup.js"></script>
36
		<script src="js/components/minimap.js"></script>
37
		<script src="js/components/navbar.js"></script>
38
		<script src="js/components/registerPopup.js"></script>
39
		<script src="js/components/saveDiagramModalWindow.js"></script>
40
		<script src="js/components/sidebar.js"></script>
41
		<script src="js/components/sidebarExcludedNodeList.js"></script>
42
		<script src="js/components/sidebarUnconnectedNodeList.js"></script>
43
		<script src="js/components/statusBar.js"></script>
44
		<script src="js/components/vertex.js"></script>
45
		<script src="js/components/vertexContextMenuList.js"></script>
46
		<script src="js/components/vertexPopover.js"></script>
47
		<script src="js/components/vertexSymbolList.js"></script>
48
		<script src="js/components/viewport.js"></script>
49

    
50
		<script src="js/errors/httpError.js"></script>
51
		<script src="js/errors/invalidArgumentError.js"></script>
52

    
53
		<script src="js/events/diagramUpdatedEvent.js"></script>
54
		<script src="js/events/loggedInEvent.js"></script>
55
		<script src="js/events/loggedOutEvent.js"></script>
56
		<script src="js/events/registeredEvent.js"></script>
57

    
58
		<script src="js/services/forceDirected.js"></script>
59
		<script src="js/services/graphLoader.js"></script>
60
		<script src="js/services/graphExporter.js"></script>
61
		<script src="js/services/loader.js"></script>
62
		<script src="js/services/markSymbol.js"></script>
63
		<script src="js/services/zoom.js"></script>
64

    
65
		<script src="js/utils/ajax.js"></script>
66
		<script src="js/utils/cookies.js"></script>
67
		<script src="js/utils/dom.js"></script>
68
		<script src="js/utils/utils.js"></script>
69

    
70
		<script src="js/valueObjects/coordinates.js"></script>
71
		<script src="js/valueObjects/diagram.js"></script>
72
		<script src="js/valueObjects/dimensions.js"></script>
73

    
74
		<script src="js/constants.js"></script>
75

    
76
		<script src="js/app.js"></script>
77
		<script src="js/showGraphApp.js"></script>
78

    
79
		<title>IMiGEr</title>
80
	</head>
81

    
82
	<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
83
		<div id="app"></div>
84

    
85
		<div class="loader" id="loader">
86
			<div class="loader-content" id="spinLoader">
87
				<p>Loading graph...</p>
88
			</div>
89
		</div>
90

    
91
		<script>
92
			const app = new ShowGraphApp('${APP_NAME}', '${APP_HOME_URL}');
93

    
94
			document.addEventListener('DOMContentLoaded', () => {
95
				app.run('${param.diagramId}');
96

    
97
				// user is logged in
98
				if ('${user}' !== '') {
99
					document.dispatchEvent(new LoggedInEvent({
100
						id: '${user.id}',
101
						username: '${user.username}',
102
					}));
103
				}
104
			});
105
		</script>
106
	</body>
107
</html>
(4-4/5)