| [4972eea] | 1 | <!--
|
|---|
| [cb748ed] | 2 | Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
|
|---|
| [4972eea] | 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>
|
|---|
| [cb748ed] | 24 |
|
|---|
| [4972eea] | 25 | <link rel="stylesheet" href="lib/css/pure/pure-min.css" type="text/css"/>
|
|---|
| [cb748ed] | 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]-->
|
|---|
| [4972eea] | 32 | <link rel="stylesheet" content="text/css" href="lib/css/leaflet.css"/>
|
|---|
| [cb748ed] | 33 |
|
|---|
| [17bc29b] | 34 | <script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
|
|---|
| [4972eea] | 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>
|
|---|
| [17bc29b] | 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>
|
|---|
| [9b1c16f] | 40 | <script src="lib/js/three.OrbitControls.js"></script>
|
|---|
| [4972eea] | 41 |
|
|---|
| [4ce069e] | 42 | <link rel="stylesheet" href="css/GnuBoat.css" type="text/css"/>
|
|---|
| [4972eea] | 43 | <link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
|
|---|
| [4ce069e] | 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>
|
|---|
| [4972eea] | 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">
|
|---|
| [c455d7b] | 87 | <li class="pure-menu-item"><a class="pure-menu-link" href="#display">Display</a></li>
|
|---|
| [4972eea] | 88 | <li class="pure-menu-item"><a class="pure-menu-link" href="#map">Map</a></li>
|
|---|
| [9b1c16f] | 89 | <li class="pure-menu-item"><a class="pure-menu-link" href="#rendering">3D Rendering</a></li>
|
|---|
| [c455d7b] | 90 | <li class="pure-menu-item"><a class="pure-menu-link" href="#logfiles">Logfiles</a></li>
|
|---|
| [4ce069e] | 91 | <li class="pure-menu-item"><a class="pure-menu-link" href="#opencpn">OpenCPN</a></li>
|
|---|
| [c455d7b] | 92 | <li class="pure-menu-item"><button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button></li>
|
|---|
| [4972eea] | 93 | </ul>
|
|---|
| 94 | </div>
|
|---|
| 95 | </div>
|
|---|
| 96 | <div id="main">
|
|---|
| 97 | <div class="header">
|
|---|
| [c8d4933] | 98 | <h1><img src="resources/gnuboat-256-256-transparent.png" />Boat</h1>
|
|---|
| [4972eea] | 99 | </div>
|
|---|
| 100 | <div class="content">
|
|---|
| [cb748ed] | 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>°C
|
|---|
| 121 | </div>
|
|---|
| 122 | <div id="gpsfix">
|
|---|
| 123 | <h2>Fix</h2>
|
|---|
| 124 | <span id="value">-</span>
|
|---|
| 125 | </div>
|
|---|
| 126 | </div>
|
|---|
| 127 | </div>
|
|---|
| [4972eea] | 128 | </div>
|
|---|
| [cb748ed] | 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"/>
|
|---|
| [c455d7b] | 133 | <!-- <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> -->
|
|---|
| [cb748ed] | 134 | </div>
|
|---|
| [4972eea] | 135 | </div>
|
|---|
| 136 | </div>
|
|---|
| 137 |
|
|---|
| 138 | <h2 class="content-subhead">Map</h2>
|
|---|
| [f03591a] | 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>
|
|---|
| [172e90d] | 142 | <div id="mapViewport" class="viewportGeometry"></div>
|
|---|
| [f03591a] | 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>
|
|---|
| [82b4b49] | 149 | <input id="mapName" type="text" name="mapName" value="" placeholder="Name of your map" required>
|
|---|
| [f03591a] | 150 | </div>
|
|---|
| 151 | <div class="pure-control-group">
|
|---|
| 152 | <label for="mapFileInput">MBTiles File:</label>
|
|---|
| [82b4b49] | 153 | <input id="mapFileInput" type="file" name="mapFile" value="" placeholder="Path to MAPTile file" required><progress id="mapTileUploadProgress"></progress>
|
|---|
| [f03591a] | 154 | </div>
|
|---|
| [c455d7b] | 155 | <input type="submit" class="pure-button pure-button-primary" name="mapUploadButton" value="Upload"/>
|
|---|
| [4972eea] | 156 | </fieldset>
|
|---|
| 157 | </form>
|
|---|
| [17bc29b] | 158 |
|
|---|
| [9b1c16f] | 159 | <h2 class="content-subhead">3D Rendering</h2>
|
|---|
| [17bc29b] | 160 | <div>
|
|---|
| [9b1c16f] | 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>
|
|---|
| [172e90d] | 165 | <div id="rendering" class="viewportGeometry"></div>
|
|---|
| [17bc29b] | 166 | </div>
|
|---|
| 167 |
|
|---|
| [c455d7b] | 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>
|
|---|
| [4ce069e] | 176 |
|
|---|
| 177 | <h2 class="content-subhead">OpenCPN</h2>
|
|---|
| 178 | <div>
|
|---|
| 179 | <a name="opencpn"></a>
|
|---|
| 180 | <div id="opencpnHint"></div>
|
|---|
| 181 | </div>
|
|---|
| [4972eea] | 182 | </div>
|
|---|
| 183 | </div>
|
|---|
| 184 | </body>
|
|---|
| 185 | </html>
|
|---|