source: src/webapp/webclient/index.html@ 172e90d

0.5 debian/bullseye debian/jessie
Last change on this file since 172e90d was 172e90d, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago
  • Property mode set to 100644
File size: 6.9 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="shutdown"></a>
132 <p id="shutdownMessage"/>
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"><select id="mapSelect" class="pure-input-1" size="1"></select></form>
142 <div id="mapViewport" class="viewportGeometry"></div>
143 </div>
144 <form id="mapTileUpload" class="pure-form pure-form-aligned" enctype="multipart/form-data">
145 <fieldset>
146 <legend>Map Upload</legend>
147 <div class="pure-control-group">
148 <label for="mapName">Map Name:</label>
149 <input id="mapName" type="text" name="mapName" value="" placeholder="Name of your map" required>
150 </div>
151 <div class="pure-control-group">
152 <label for="mapFileInput">MBTiles File:</label>
153 <input id="mapFileInput" type="file" name="mapFile" value="" placeholder="Path to MAPTile file" required><progress id="mapTileUploadProgress"></progress>
154 </div>
155 <input type="submit" class="pure-button pure-button-primary" name="mapUploadButton" value="Upload"/>
156 </fieldset>
157 </form>
158
159 <h2 class="content-subhead">3D Rendering</h2>
160 <div>
161 <a name="rendering"></a>
162 <form id="renderForm" class="pure-form">
163 <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">
164 </form>
165 <div id="rendering" class="viewportGeometry"></div>
166 </div>
167
168 <h2 class="content-subhead">
169 Logfiles
170 <button id="logfilesReload" class="pure-button logfiles-reload-button"></button>
171 </h2>
172 <div>
173 <a name="logfiles"></a>
174 <form id="logfilesForm" class="pure-form" method="POST" action="../webservice/?request=logfiles"></form>
175 </div>
176
177 <h2 class="content-subhead">OpenCPN</h2>
178 <div>
179 <a name="opencpn"></a>
180 <div id="opencpnHint"></div>
181 </div>
182 </div>
183 </div>
184 </body>
185</html>
Note: See TracBrowser for help on using the repository browser.