source: src/app/www/index.html@ 3196285

app-cordova
Last change on this file since 3196285 was 3196285, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago

First step to cordova apps

  • Property mode set to 100644
File size: 6.0 KB
RevLine 
[3196285]1<!DOCTYPE html>
2<!--
3 Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17-->
18<html>
19 <head>
20 <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self'; media-src *; img-src 'self' data: content:;">
21 <meta name="format-detection" content="telephone=no">
22 <meta name="msapplication-tap-highlight" content="no">
23 <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
24
25 <title>GNUBoat Web Application</title>
26
27 <link rel="stylesheet" href="lib/css/pure/pure-min.css" type="text/css"/>
28 <!--[if lte IE 8]>
29 <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
30 <![endif]-->
31 <!--[if gt IE 8]><!-->
32 <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css">
33 <!--<![endif]-->
34 <link rel="stylesheet" content="text/css" href="lib/css/leaflet.css"/>
35
36 <script language="javascript" src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
37 <script src="lib/js/jquery.validate.min.js" type="text/javascript"></script>
38 <script src="lib/js/additional-methods.min.js" type="text/javascript"></script>
39 <script language="javascript\" src="lib/js/leaflet.js" type="text/javascript"></script>
40
41 <link rel="stylesheet" href="css/main.css" type="text/css"/>
42 <link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
43 <script language="javascript" src="js/side-menu.js" type="text/javascript"></script>
44 <script language="javascript" src="js/main.js" type="text/javascript"></script>
45
46 <!-- may be not needed! -->
47 <link rel="stylesheet" type="text/css" href="css/cordova.css">
48 </head>
49 <body>
50 <div class="app">
51 <div id="layout" class="">
52 <a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
53 <div id="menu" class="">
54 <div class="pure-menu">
55 <a class="pure-menu-heading" href="#">GNUBoat</a>
56 <ul class="pure-menu-list">
57 <li class="pure-menu-item"><a class="pure-menu-link" href="#display">Display</a></li>
58 <li class="pure-menu-item"><a class="pure-menu-link" href="#map">Map</a></li>
59 <li class="pure-menu-item"><a class="pure-menu-link" href="#logfiles">Logfiles</a></li>
60 <li class="pure-menu-item"><button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button></li>
61 </ul>
62 </div>
63 </div>
64 <div id="main">
65 <div class="header">
66 <h1><img src="resources/gnuboat-256-256-transparent.png" />Boat</h1>
67 </div>
68 <div class="content">
69 <div class="pure-g">
70 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
71 <div class="l-box">
72 <div id="display">
73 <a name="display"></a>
74 <div id="speedthroughwater">
75 <h2>STW</h2>
76 <span id="value" class="important">-</span> kts
77 </div>
78 <div id="speedoverground">
79 <h2>SOG</h2>
80 <span id="value" class="important">-</span> kts
81 </div>
82 <div id="waterdepth">
83 <h2>Depth</h2>
84 <span id="value">-</span> m
85 </div>
86 <div id="watertemperature">
87 <h2>Water</h2>
88 <span id="value">-</span>&#176;C
89 </div>
90 <div id="gpsfix">
91 <h2>Fix</h2>
92 <span id="value">-</span>
93 </div>
94 </div>
95 </div>
96 </div>
97 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
98 <div id="shutdown" class="l-box">
99 <a name="shutdown"></a>
100 <p id="shutdownMessage"/>
101 <!-- <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> -->
102 </div>
103 </div>
104 </div>
105
106 <h2 class="content-subhead">Map</h2>
107 <div id="map">
108 <a name="map"></a>
109 <form id="mapSelectForm" class="pure-form"><select id="mapSelect" class="pure-input-1" size="1"></select></form>
110 <div id="mapViewport"></div>
111 </div>
112 <form id="mapTileUpload" class="pure-form pure-form-aligned" enctype="multipart/form-data">
113 <fieldset>
114 <legend>Map Upload</legend>
115 <div class="pure-control-group">
116 <label for="mapName">Map Name:</label>
117 <input id="mapName" type="text" name="mapName" value="" placeholder="Name of your map" required>
118 </div>
119 <div class="pure-control-group">
120 <label for="mapFileInput">MBTiles File:</label>
121 <input id="mapFileInput" type="file" name="mapFile" value="" placeholder="Path to MAPTile file" required><progress id="mapTileUploadProgress"></progress>
122 </div>
123 <input type="submit" class="pure-button pure-button-primary" name="mapUploadButton" value="Upload"/>
124 </fieldset>
125 </form>
126
127 <h2 class="content-subhead">
128 Logfiles
129 <button id="logfilesReload" class="pure-button logfiles-reload-button"></button>
130 </h2>
131 <div>
132 <a name="logfiles"></a>
133 <form id="logfilesForm" class="pure-form" method="POST" action="../webservice/?request=logfiles"></form>
134 </div>
135 </div>
136 </div>
137 </div>
138 </div>
139 <script type="text/javascript" src="cordova.js"></script>
140 <script type="text/javascript" src="js/index.js"></script>
141 </body>
142</html>
Note: See TracBrowser for help on using the repository browser.