source: src/webapp/webclient/index.html@ 60de003a

0.5 debian/bullseye debian/jessie
Last change on this file since 60de003a was 4ce069e, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago
  • Restructured main.js into namespace GnuBoat.
  • Moved content from side-menu.js into index.html to get less files to load
  • renamed main.css to GnuBoat.css to indicate, that this stylesheet is related to GnuBoat.js
  • Property mode set to 100644
File size: 6.3 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 language="javascript" 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 language="javascript\" src="lib/js/leaflet.js" type="text/javascript"></script>
38
39 <link rel="stylesheet" href="css/GnuBoat.css" type="text/css"/>
40 <link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
41 <script language="javascript" src="js/GnuBoat.js" type="text/javascript"></script>
42 <script language="javascript" type="text/javascript">
43 var active = 'active';
44 var layout = null;
45 var menu = null;
46 var menuLink = null;
47 var content = null;
48
49 function toggleAll() {
50 layout.toggleClass(active);
51 menu.toggleClass(active);
52 menuLink.toggleClass(active);
53 }
54
55 $(document).ready(function () {
56 layout = $("#layout");
57 menu = $("#menu");
58 menuLink = $("#menuLink");
59 content = $("#main");
60
61 menuLink.click(function () {
62 toggleAll();
63 });
64
65 content.click(function() {
66 if (menu.hasClass(active)) {
67 toggleAll();
68 }
69 });
70
71 GnuBoat.initialize();
72 GnuBoat.setServer("../webservice");
73 GnuBoat.start();
74 });
75 </script>
76 </head>
77 <body>
78 <div id="layout" class="">
79 <a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
80 <div id="menu" class="">
81 <div class="pure-menu">
82 <a class="pure-menu-heading" href="#">GNUBoat</a>
83 <ul class="pure-menu-list">
84 <li class="pure-menu-item"><a class="pure-menu-link" href="#display">Display</a></li>
85 <li class="pure-menu-item"><a class="pure-menu-link" href="#map">Map</a></li>
86 <li class="pure-menu-item"><a class="pure-menu-link" href="#logfiles">Logfiles</a></li>
87 <li class="pure-menu-item"><a class="pure-menu-link" href="#opencpn">OpenCPN</a></li>
88 <li class="pure-menu-item"><button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button></li>
89 </ul>
90 </div>
91 </div>
92 <div id="main">
93 <div class="header">
94 <h1><img src="resources/gnuboat-256-256-transparent.png" />Boat</h1>
95 </div>
96 <div class="content">
97 <div class="pure-g">
98 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
99 <div class="l-box">
100 <div id="display">
101 <a name="display"></a>
102 <div id="speedthroughwater">
103 <h2>STW</h2>
104 <span id="value" class="important">-</span> kts
105 </div>
106 <div id="speedoverground">
107 <h2>SOG</h2>
108 <span id="value" class="important">-</span> kts
109 </div>
110 <div id="waterdepth">
111 <h2>Depth</h2>
112 <span id="value">-</span> m
113 </div>
114 <div id="watertemperature">
115 <h2>Water</h2>
116 <span id="value">-</span>&#176;C
117 </div>
118 <div id="gpsfix">
119 <h2>Fix</h2>
120 <span id="value">-</span>
121 </div>
122 </div>
123 </div>
124 </div>
125 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
126 <div id="shutdown" class="l-box">
127 <a name="shutdown"></a>
128 <p id="shutdownMessage"/>
129<!-- <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> -->
130 </div>
131 </div>
132 </div>
133
134 <h2 class="content-subhead">Map</h2>
135 <div id="map">
136 <a name="map"></a>
137 <form id="mapSelectForm" class="pure-form"><select id="mapSelect" class="pure-input-1" size="1"></select></form>
138 <div id="mapViewport"></div>
139 </div>
140 <form id="mapTileUpload" class="pure-form pure-form-aligned" enctype="multipart/form-data">
141 <fieldset>
142 <legend>Map Upload</legend>
143 <div class="pure-control-group">
144 <label for="mapName">Map Name:</label>
145 <input id="mapName" type="text" name="mapName" value="" placeholder="Name of your map" required>
146 </div>
147 <div class="pure-control-group">
148 <label for="mapFileInput">MBTiles File:</label>
149 <input id="mapFileInput" type="file" name="mapFile" value="" placeholder="Path to MAPTile file" required><progress id="mapTileUploadProgress"></progress>
150 </div>
151 <input type="submit" class="pure-button pure-button-primary" name="mapUploadButton" value="Upload"/>
152 </fieldset>
153 </form>
154
155 <h2 class="content-subhead">
156 Logfiles
157 <button id="logfilesReload" class="pure-button logfiles-reload-button"></button>
158 </h2>
159 <div>
160 <a name="logfiles"></a>
161 <form id="logfilesForm" class="pure-form" method="POST" action="../webservice/?request=logfiles"></form>
162 </div>
163
164 <h2 class="content-subhead">OpenCPN</h2>
165 <div>
166 <a name="opencpn"></a>
167 <div id="opencpnHint"></div>
168 </div>
169 </div>
170 </div>
171 </body>
172</html>
Note: See TracBrowser for help on using the repository browser.