This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
190 lines (168 loc) · 8.76 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!--
* Software License Agreement (Apache License)
*
* Copyright (c) 2016, PPM AS
* Contact: laszlo.nagy@ppmas.no
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<!DOCTYPE html>
<html ng-app="flexGuiApp">
<head>
<meta charset="utf-8">
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="user-scalable=no, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, width=device-width">
<title>FlexGui Test</title>
<link rel="stylesheet" href="styles/flexGui.css">
<link rel="stylesheet" href="styles/3rdParty/jquery-ui.css">
<link rel="stylesheet" href="styles/3rdParty/perfect-scrollbar.min.css" />
<link rel="stylesheet" href="styles/3rdParty/font-awesome.css" />
<link rel="stylesheet" href="styles/3rdParty/awesome-bootstrap-checkbox.css" />
<link rel="stylesheet" href="styles/3rdParty/codemirror.css" />
<link rel="stylesheet" href="styles/3rdParty/bootstrap-slider.css" />
<link rel="stylesheet" href="styles/3rdParty/bootstrap.min.css">
<link rel="shortcut icon" href="favicon.ico" />
<script>
less = {
env: "release"
};
</script>
<!--3rd party libs-->
<script src="scripts/3rdParty/jquery.min.js"></script>
<script src="scripts/3rdParty/jquery-ui.min.js"></script>
<script src="scripts/3rdParty/jquery.knob.js"></script>
<script src="scripts/3rdParty/canvas_resize.js"></script>
<script src="scripts/3rdParty/html2canvas.js"></script>
<script src="scripts/3rdParty/angular.min.js"></script>
<script src="scripts/3rdParty/angular-sanitize.js"></script>
<script src="scripts/3rdParty/angular-cookies.js"></script>
<script src="scripts/3rdParty/bootstrap.min.js"></script>
<script src="scripts/3rdParty/angular-route.min.js"></script>
<script src="scripts/3rdParty/hammer.min.js"></script>
<script src="scripts/3rdParty/angular.hammer.js"></script>
<script src="scripts/3rdParty/jquery.nicescroll.min.js"></script>
<script src="scripts/3rdParty/jquery.timeago.min.js"></script>
<script src="scripts/3rdParty/bootstrap-slider.js"></script>
<script src="scripts/3rdParty/slider.js"></script>
<script src="scripts/3rdParty/less.min.js"></script>
<script src="scripts/3rdParty/bootbox.min.js"></script>
<script src="scripts/3rdParty/perfect-scrollbar.min.js"></script>
<script src="scripts/3rdParty/perfect-scrollbar.with-mousewheel.min.js"></script>
<script src="scripts/3rdParty/angular-perfect-scrollbar.js"></script>
<script src="scripts/3rdParty/ng-stats.js"></script>
<script type="text/javascript" src="scripts/3rdParty/angular-ui-router.js"></script>
<script type="text/javascript" src="scripts/3rdParty/script.min.js"></script>
<!--roslibjs-->
<script type="text/javascript" src="scripts/3rdParty/eventemitter2.js"></script>
<script type="text/javascript" src="scripts/3rdParty/roslib.js"></script>
<!--Own code-->
<script src="scripts/angular-knob.js"></script>
<script src="scripts/localization/localization.js"></script>
<script src="scripts/localization/localization.en.js"></script>
<script src="scripts/localization/localization.de.js"></script>
<script src="scripts/localization/localization.hu.js"></script>
<script src="scripts/localization/localization.ko.js"></script>
<script src="scripts/localization/localization.it.js"></script>
<script src="scripts/backgroundService.js"></script>
<script src="scripts/colorPickerService.js"></script>
<script src="scripts/popupService.js"></script>
<script src="scripts/settingsWindowService.js"></script>
<script src="scripts/projectWindowService.js"></script>
<script src="scripts/imageService.js"></script>
<script src="scripts/historyService.js"></script>
<script src="scripts/clipboardService.js"></script>
<script src="scripts/helpService.js"></script>
<script src="scripts/deviceService.js"></script>
<script src="scripts/scriptManagerService.js"></script>
<script src="scripts/projectService.js"></script>
<script src="scripts/fidgetService.js"></script>
<script src="scripts/editorService.js"></script>
<script src="scripts/enumService.js"></script>
<script src="scripts/variableService.js"></script>
<script src="scripts/projectConversionService.js"></script>
<script src="scripts/projectStorageService.js"></script>
<script src="scripts/diagnosticsService.js"></script>
<script src="scripts/backupService.js"></script>
<script src="scripts/iconService.js"></script>
<!--Controllers-->
<script src="scripts/controllers/propertiesWindowController.js"></script>
<script src="scripts/controllers/flexGuiController.js"></script>
<script src="scripts/controllers/fidgetController.js"></script>
<script src="scripts/controllers/fidgetGroupController.js"></script>
<script src="app.js"></script>
</head>
<body id="body"
ng-controller="flexGuiCtrl"
class="screen"
hm-tap="mirrorMode.onScreenTap($event)"
hm-pinch="pinchZoom($event)">
<style>
.editModeOn{
padding: {{editHandler.safetyDistance}}px;
margin-left: {{-editHandler.safetyDistance}}px;
margin-top: {{-editHandler.safetyDistance}}px;
}
</style>
<div ng-keydown="::editHandler.onKeyDown($event)"
ng-keyup="::editHandler.onKeyUp($event)"
hm-panstart="::editHandler.onMouseDown($event)"
hm-recognizer-options='[{"type":"pan","threshold":2}]'
hm-panend="::editHandler.onMouseUp($event)"
hm-panmove="::editHandler.onMouseMove($event)"
tabindex="0"
class="main"
id="main">
<!--Screen area-->
<div id="currentScreen" style="left: {{project.screenBeltVisible ? beltWidth : 0}}px; margin-right: {{editHandler.isEditMode ? beltWidth : 0}}px;"
hm-tap="::editHandler.onScreenTap($event)">
<!-- Fidgets -->
<ng-include src="screenRoot"></ng-include>
</div>
<div class="notificationBar"
ng-if="settings.isSoftwareOffline || drive.saveNeeded || drive.downloadNeeded || (device.topics|filter:{isOffline:true}).length > 0">
<!--Connection: offline mode-->
<div class="alert alert-hollow text-center connectionAlert" ng-if="settings.isSoftwareOffline || drive.saveNeeded || drive.downloadNeeded">
<span ng-if="settings.isSoftwareOffline">
{{localization.currentLocal.settings.tabs.conn.offlineMode}}
</span>
<span ng-if="drive.downloadNeeded">
New version available on server, <a ng-click="drive.download(true, true)">download</a> now.
</span>
<span ng-if="drive.saveNeeded">
Project changed, <a ng-click="drive.save(false, false, true)">upload</a> to server to save your project.
</span>
</div>
<!--Offline topics-->
<div class="alert alert-hollow text-center offlineTopics" ng-if="(device.topics|filter:{isOffline:true}).length > 0">
<ul>
<li ng-repeat="topic in device.topics|filter:{isOffline:true}|limitTo:3">{{topic.path}}</li>
<li ng-if="(device.topics|filter:{isOffline:true}).length > 3"> and more({{(device.topics|filter:{isOffline:true}).length - 3}}) </li>
</ul>
</div>
</div>
<!--Quick Call fidget (if installed)-->
<ng-include src="toTrustedUrl(quickCall)"></ng-include>
<!-- FidgetBelt -->
<ng-include ng-if="editHandler.isEditMode && project.screens.length > 0" src="'views/fidgetBelt.html'"></ng-include>
<!-- ScreenBelt -->
<ng-include ng-if="!editHandler.isEditMode && project.screenBeltVisible" src="'views/screenBelt.html'"></ng-include>
<!-- EditBelt -->
<ng-include ng-if="editHandler.isEditMode" src="'views/editBelt.html'"></ng-include>
<!-- EditSwitch -->
<ng-include ng-if="project.screenBeltVisible || editHandler.isEditMode" src="editHandler.editSwitch"></ng-include>
<!-- Enable belt switch-->
<ng-include ng-hide="project.screenBeltVisible || editHandler.isEditMode" src="'views/openBelt.html'"></ng-include>
</div>
<ng-include src="'views/modalWindows.html'"></ng-include>
</body>
</html>