Changeset 5149714
- Timestamp:
- Jul 21, 2016, 12:27:59 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- 76bbdad
- Parents:
- 13a6103
- Location:
- src
- Files:
-
- 2 added
- 6 edited
-
icon/gnuboat-256-256-transparent.png (added)
-
webapp/build.xml (modified) (2 diffs)
-
webapp/test/gpsfake.log (added)
-
webapp/webclient/css/main.css (modified) (7 diffs)
-
webapp/webclient/javascript/main.js (modified) (1 diff)
-
webapp/webclient/root/inc/header.php (modified) (1 diff)
-
webapp/webclient/root/index.php (modified) (3 diffs)
-
webapp/webservice/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/build.xml
r13a6103 r5149714 16 16 <fileset dir="./webclient/javascript" id="filesJavascript"/> 17 17 <fileset dir="./webclient/resources" id="filesResources"/> 18 <fileset dir="../icon/" id="filesGnuboatIcons"> 19 <include name="gnuboat-256-256-transparent.png"/> 20 </fileset> 18 21 19 22 <copy todir="${builddir}/webclient"> … … 28 31 <copy todir="${builddir}/webclient/resources"> 29 32 <fileset refid="filesResources"/> 33 <fileset refid="filesGnuboatIcons"/> 30 34 </copy> 31 35 </target> -
src/webapp/webclient/css/main.css
r13a6103 r5149714 18 18 body { 19 19 margin: 1em; 20 width: 58.3mm; 20 width: 14em; 21 border-color: 1px solid black; 21 22 } 22 23 … … 24 25 background-color: #93C0C0; 25 26 background-image: linear-gradient(#BCD9D9, #93C0C0); 27 } 28 29 .backgroundgreen { 30 background-color: #ACDFAC; 31 background-image: linear-gradient(#CCECCC, #ACDFAC); 26 32 } 27 33 … … 34 40 } 35 41 42 #title img { 43 height: 2em; 44 width: auto; 45 vertical-align: middle; 46 margin: 0.1em; 47 padding-left: 0em; 48 margin-left: -0.3em; 49 } 50 36 51 #display { 37 52 background-color: #E6E6E6; 38 53 width: 100%; 39 height: 38.2mm;54 height: 9em; 40 55 font-size: 12pt; 41 56 font-weight: normal; … … 61 76 #display #speedthroughwater { 62 77 position: absolute; 63 top: 2mm;64 left: 2mm;78 top: 0.5em; 79 left: 0.5em; 65 80 } 66 81 … … 72 87 #display #speedoverground { 73 88 position: absolute; 74 top: 2mm;75 left: 30mm;89 top: 0.5em; 90 left: 7em; 76 91 } 77 92 78 93 #display #waterdepth { 79 94 position: absolute; 80 top: 21mm; 81 left: 2mm; 95 top: 5em; 96 left: 0.5em; 97 } 98 99 #display #watertemperature { 100 position: absolute; 101 top: 5em; 102 left: 7em; 82 103 } 83 104 84 105 #display #gpsfix { 85 106 position: absolute; 86 top: 21mm; 87 left: 46mm; 88 } 89 90 #display #watertemperature { 91 position: absolute; 92 top: 21mm; 93 left: 30mm; 107 top: 5em; 108 left: 11em; 94 109 } 95 110 96 111 #map { 97 112 width: 100%; 98 height: 76mm;113 height: 24em; 99 114 border: 1px solid black; 100 115 margin-top: 1em; … … 105 120 } 106 121 122 form h2 { 123 text-align: center; 124 margin-top: 2em; 125 margin-bottom: 0.5em; 126 padding-top: 0.6em; 127 height: 2em; 128 } 129 107 130 form p { 108 margin-top: 1em;109 131 height: 3em; 132 margin: 0em; 110 133 } 111 134 … … 114 137 height: 3em; 115 138 width: 100%; 139 font-weight: normal; 140 margin-top: 1em; 116 141 } 117 142 118 143 .formButtons { 119 144 text-align: center; 120 margin-top: 2em;145 margin-top: 3em; 121 146 } 122 147 -
src/webapp/webclient/javascript/main.js
r13a6103 r5149714 38 38 var value = lastValid[key]; 39 39 if($.isNumeric(value)){ 40 var text = value.toFixed(1); 40 41 if(key == "watertemperature"){ 41 value = Math.round(value);42 text = value.toFixed(0); 42 43 } 43 $("#display #"+ keys[i] +" #value").text( value.toString());44 $("#display #"+ keys[i] +" #value").text(text); 44 45 } 45 46 else if(key == "gpsfix"){ -
src/webapp/webclient/root/inc/header.php
r13a6103 r5149714 37 37 <!DOCTYPE HTML> 38 38 <html> 39 <head >39 <head profile="http://www.w3.org/2005/10/profile"> 40 40 <meta charset="utf-8"/> 41 <link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/> 41 42 <title>GNUBoat <?php echo (empty($headerTitle)) ? "" : " - ". $headerTitle; ?></title> 42 43 <link rel="stylesheet" href="css/main.css" type="text/css"/> -
src/webapp/webclient/root/index.php
r13a6103 r5149714 65 65 require_once("inc/header.php"); 66 66 ?> 67 <h2 id="title" class="backgroundblue"> GNUBoat</h2>67 <h2 id="title" class="backgroundblue"><img src="resources/gnuboat-256-256-transparent.png" />Boat</h2> 68 68 <div id="display"> 69 69 <div id="speedthroughwater"> … … 89 89 </div> 90 90 <div id="map"></div> 91 <div id="shutdown"> 92 <p id="shutdownMessage"/> 93 <form> 94 <button type="button" id="shutdownButton">SHUTDOWN</button> 95 </form> 96 </div> 91 97 <form method="post" action="./" enctype="multipart/form-data"> 92 98 <div class="formTable"> 99 <h2 class="backgroundgreen">Map Upload</h2> 93 100 <p> 94 <label> Upload Map (mbtiles format):</label><br/>101 <label>MBTiles File:</label><br/> 95 102 <input class="file" type="file" name="mapFile" value=""/> 96 103 </p> … … 100 107 </div> 101 108 </form> 102 <div id="shutdown">103 <p id="shutdownMessage"/>104 <form>105 <button type="button" id="shutdownButton">SHUTDOWN</button>106 </form>107 </div>108 109 <?php 109 110 require_once("inc/footer.php"); -
src/webapp/webservice/index.php
r13a6103 r5149714 92 92 if(!is_numeric($tmp[$key]) || is_nan($tmp[$key])){ 93 93 $allValid = false; 94 if($debug > 1){ 95 echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $time ."<br/>"; 96 } 94 97 } 95 98 elseif(array_key_exists($key, $configRound) && is_integer($configRound[$key])) … … 98 101 } 99 102 // only add the timeframe to the track, if the values are valid and we had a gps fix at that time 100 if($allValid && $tmp["gpsfix"] != "-"){ 101 echo "want to add ". $time ."<br/>\n"; 102 if(!array_key_exists($time, $result["track"])){ 103 if($allValid){ 104 if(!array_key_exists($time, $result["track"])){ 103 105 $result["track"][$time] = $tmp; 104 }106 } 105 107 $lastTime = $time; 106 108 }
Note:
See TracChangeset
for help on using the changeset viewer.
