source: src/webapp/webclient/index.html@ f29f4d3

0.5 debian/bullseye debian/jessie
Last change on this file since f29f4d3 was b8b5e77, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago

Improved coloring of the leaflet hotlines and the 3D rendering

  • Property mode set to 100644
File size: 7.5 KB
Line 
1<!--
2 Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16-->
17<!DOCTYPE HTML>
18<html>
19 <head profile="http://www.w3.org/2005/10/profile">
20 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
21 <meta name="viewport" content="width=device-width, initial-scale=1.0">
22 <link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
23 <title>GNUBoat Web Application</title>
24
25 <link rel="stylesheet" href="lib/css/pure/pure-min.css" type="text/css"/>
26 <!--[if lte IE 8]>
27 <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
28 <![endif]-->
29 <!--[if gt IE 8]><!-->
30 <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css">
31 <!--<![endif]-->
32 <link rel="stylesheet" content="text/css" href="lib/css/leaflet.css"/>
33
34 <script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
35 <script src="lib/js/jquery.validate.min.js" type="text/javascript"></script>
36 <script src="lib/js/additional-methods.min.js" type="text/javascript"></script>
37 <script src="lib/js/leaflet.js" type="text/javascript"></script>
38 <script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>
39 <script src="lib/js/three.min.js"></script>
40 <script src="lib/js/three.OrbitControls.js"></script>
41
42 <link rel="stylesheet" href="css/GnuBoat.css" type="text/css"/>
43 <link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
44 <script language="javascript" src="js/GnuBoat.js" type="text/javascript"></script>
45 <script language="javascript" type="text/javascript">
46 var active = 'active';
47 var layout = null;
48 var menu = null;
49 var menuLink = null;
50 var content = null;
51
52 function toggleAll() {
53 layout.toggleClass(active);
54 menu.toggleClass(active);
55 menuLink.toggleClass(active);
56 }
57
58 $(document).ready(function () {
59 layout = $("#layout");
60 menu = $("#menu");
61 menuLink = $("#menuLink");
62 content = $("#main");
63
64 menuLink.click(function () {
65 toggleAll();
66 });
67
68 content.click(function() {
69 if (menu.hasClass(active)) {
70 toggleAll();
71 }
72 });
73
74 GnuBoat.initialize();
75 GnuBoat.setServer("../webservice");
76 GnuBoat.start();
77 });
78 </script>
79 </head>
80 <body>
81 <div id="layout" class="">
82 <a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
83 <div id="menu" class="">
84 <div class="pure-menu">
85 <a class="pure-menu-heading" href="#">GNUBoat</a>
86 <ul class="pure-menu-list">
87 <li class="pure-menu-item"><a class="pure-menu-link" href="#display">Display</a></li>
88 <li class="pure-menu-item"><a class="pure-menu-link" href="#map">Map</a></li>
89 <li class="pure-menu-item"><a class="pure-menu-link" href="#rendering">3D Rendering</a></li>
90 <li class="pure-menu-item"><a class="pure-menu-link" href="#logfiles">Logfiles</a></li>
91 <li class="pure-menu-item"><a class="pure-menu-link" href="#opencpn">OpenCPN</a></li>
92 <li class="pure-menu-item"><button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button></li>
93 </ul>
94 </div>
95 </div>
96 <div id="main">
97 <div class="header">
98 <h1><img src="resources/gnuboat-256-256-transparent.png" />Boat</h1>
99 </div>
100 <div class="content">
101 <div class="pure-g">
102 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
103 <div class="l-box">
104 <div id="display">
105 <a name="display"></a>
106 <div id="speedthroughwater">
107 <h2>STW</h2>
108 <span id="value" class="important">-</span> kts
109 </div>
110 <div id="speedoverground">
111 <h2>SOG</h2>
112 <span id="value" class="important">-</span> kts
113 </div>
114 <div id="waterdepth">
115 <h2>Depth</h2>
116 <span id="value">-</span> m
117 </div>
118 <div id="watertemperature">
119 <h2>Water</h2>
120 <span id="value">-</span>&#176;C
121 </div>
122 <div id="gpsfix">
123 <h2>Fix</h2>
124 <span id="value">-</span>
125 </div>
126 </div>
127 </div>
128 </div>
129 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
130 <div id="shutdown" class="l-box">
131 <a name="messages"></a>
132 <p id="message"/>
133<!-- <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> -->
134 </div>
135 </div>
136 </div>
137
138 <h2 class="content-subhead">Map</h2>
139 <div id="map">
140 <a name="map"></a>
141 <form id="mapSelectForm" class="pure-form pure-form-aligned">
142 <div class="pure-control-group">
143 <label for="mapModusSelect">Map Modus:</label>
144 <select id="mapModusSelect" size="1" class="pure-input-1-2"></select>
145 </div>
146 <div class="pure-control-group">
147 <label for="mapSelect">Map Selection:</label>
148 <select id="mapSelect" size="1" class="pure-input-1-2"></select>
149 </div>
150 </form>
151 <div class="pure-g">
152 <div class="pure-u-1 pure-u-md-4-5 pure-u-lg-4-5">
153 <div id="mapViewport" class="viewportGeometry"></div>
154 </div>
155 <div class="pure-u-1 pure-u-md-1-5 pure-u-lg-1-5">
156 <div id="mapLegend"></div>
157 </div>
158 </div>
159 </div>
160 <form id="mapTileUpload" class="pure-form pure-form-aligned" enctype="multipart/form-data">
161 <fieldset>
162 <legend>Map Upload</legend>
163 <div class="pure-control-group">
164 <label for="mapName">Map Name:</label>
165 <input id="mapName" type="text" name="mapName" value="" placeholder="Name of your map" required>
166 </div>
167 <div class="pure-control-group">
168 <label for="mapFileInput">MBTiles File:</label>
169 <input id="mapFileInput" type="file" name="mapFile" value="" placeholder="Path to MAPTile file" required><progress id="mapTileUploadProgress"></progress>
170 </div>
171 <input type="submit" class="pure-button pure-button-primary" name="mapUploadButton" value="Upload"/>
172 </fieldset>
173 </form>
174
175 <h2 class="content-subhead">3D Rendering of Water Depth</h2>
176 <div>
177 <a name="rendering"></a>
178 <form id="renderForm" class="pure-form">
179 <label>Scale Depth Axis:</label><input id="renderScaleZ" type="range" name="renderScaleZ" min="0.5" max="1000" step="1" value="10" class="pure-input-1">
180 </form>
181 <div id="rendering" class="viewportGeometry"></div>
182 </div>
183
184 <h2 class="content-subhead">
185 Logfiles
186 <button id="logfilesReload" class="pure-button logfiles-reload-button"></button>
187 </h2>
188 <div>
189 <a name="logfiles"></a>
190 <form id="logfilesForm" class="pure-form" method="POST" action="../webservice/?request=logfiles"></form>
191 </div>
192
193 <h2 class="content-subhead">OpenCPN</h2>
194 <div>
195 <a name="opencpn"></a>
196 <div id="opencpnHint"></div>
197 </div>
198 </div>
199 </div>
200 </body>
201</html>
Note: See TracBrowser for help on using the repository browser.