source: src/mapservice/src-gen/openapi_server/templates/index.html@ 28198a1

debian/bullseye
Last change on this file since 28198a1 was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
  • Property mode set to 100644
File size: 5.2 KB
Line 
1<!--
2 Copyright (C) 2016 - 2019 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="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}"/>
23 <title>GNUBoat Web Application</title>
24
25 <link rel="stylesheet" href="{{ url_for('static', filename = '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="{{ url_for('static', filename = 'lib/css/pure/grids-responsive-min.css') }}">
31 <!--<![endif]-->
32 <link rel="stylesheet" content="text/css" href="{{ url_for('static', filename = 'lib/css/leaflet/leaflet.css') }}"/>
33
34 <script src="{{ url_for('static', filename = 'lib/js/jquery-3.2.1.min.js') }}" type="text/javascript"></script>
35 <script src="{{ url_for('static', filename = 'lib/js/jquery.validate.min.js') }}" type="text/javascript"></script>
36 <script src="{{ url_for('static', filename = 'lib/js/leaflet.js') }}" type="text/javascript"></script>
37 <script src="{{ url_for('static', filename = 'lib/js/js.cookie.js') }}"></script>
38 <!--<script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>-->
39
40 <link rel="stylesheet" href="{{ url_for('static', filename = 'css/GnuBoat.css') }}" type="text/css"/>
41 <link rel="stylesheet" href="{{ url_for('static', filename = 'css/side-menu.css') }}" type="text/css"/>
42 <script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.js') }}" type="text/javascript"></script>
43 <script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.Webserver.js') }}" type="text/javascript"></script>
44 <script language="javascript" type="text/javascript">
45 var active = 'active';
46 var layout = null;
47 var menu = null;
48 var menuLink = null;
49 var content = null;
50
51 function toggleAll() {
52 layout.toggleClass(active);
53 menu.toggleClass(active);
54 menuLink.toggleClass(active);
55 }
56
57 $(document).ready(function () {
58 layout = $("#layout");
59 menu = $("#menu");
60 menuLink = $("#menuLink");
61 content = $("#main");
62
63 menuLink.click(function () {
64 toggleAll();
65 });
66
67 content.click(function() {
68 if (menu.hasClass(active)) {
69 toggleAll();
70 }
71 });
72
73 GnuBoat.Webserver.initialize();
74 GnuBoat.Webserver.setServer("v1/");
75 });
76 </script>
77 </head>
78 <body>
79 <div id="layout" class="">
80 <a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
81 <div id="menu" class="">
82 <div class="pure-menu">
83 <a class="pure-menu-heading" href="#">GNUBoat</a>
84 <ul class="pure-menu-list">
85 <li class="pure-menu-item"><a id="linkMap" class="pure-menu-link" href="#map">Map</a></li>
86 <li class="pure-menu-item"><a class="pure-menu-link" href="#upload">Upload</a></li>
87 <li class="pure-menu-item"><a id="linkMyGnuboat" class="pure-menu-link" href="#mygnuboat">My GnuBoat</a></li>
88 </ul>
89 </div>
90 </div>
91 <div id="main">
92 <!--<div class="content">-->
93 <a name="map"></a>
94 <div id="mapViewport" class="viewportGeometry">
95 <div class="leaflet-top map-middle">
96 <div class="leaflet-control">
97 <img id="logo" src="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}" />
98 </div>
99 </div>
100 </div>
101 <!--</div>-->
102 <div class="content">
103 <a name="mygnuboat"></a>
104 <div id="login">
105 <form id="loginForm" class="pure-form pure-form-aligned">
106 <fieldset>
107 <legend>Login</legend>
108 <div class="pure-control-group">
109 <label for="loginUsername">Username:</label>
110 <input id="loginUsername" type="text" name="loginUsername" value="" required>
111 </div>
112 <div class="pure-control-group">
113 <label for="loginPassword">Password:</label>
114 <input id="loginPassword" type="password" name="loginPassword" value="" required>
115 </div>
116 <input type="submit" class="pure-button pure-button-primary" name="loginButton" value="Login"/>
117 </fieldset>
118 </form>
119 </div>
120 <div id="myWaters">
121 <h2 class="content-subhead">My Waters</h2>
122 <form id="myWatersForm" class="pure-form">
123 <div id="myWatersDiv" class="pure-control-group">
124
125 </div>
126 </form>
127 </div>
128 </div>
129 </div>
130 </body>
131</html>
Note: See TracBrowser for help on using the repository browser.