Changeset 5519ced for src/webapp/webclient
- Timestamp:
- Jul 20, 2016, 5:18:34 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- d7ee6ae
- Parents:
- a250eb4
- Location:
- src/webapp/webclient
- Files:
-
- 3 edited
-
css/main.css (modified) (4 diffs)
-
javascript/main.js (modified) (2 diffs)
-
root/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webclient/css/main.css
ra250eb4 r5519ced 18 18 body { 19 19 margin: 1em; 20 width: 58.3mm; 20 21 } 21 22 … … 35 36 #display { 36 37 background-color: #E6E6E6; 37 width: 58.3mm;38 width: 100%; 38 39 height: 38.2mm; 39 40 font-size: 12pt; … … 94 95 95 96 #map { 96 width: 58.3mm;97 width: 100%; 97 98 height: 76mm; 98 99 border: 1px solid black; … … 133 134 134 135 } 136 137 #shutdown { 138 width: 100%; 139 margin-top: 3em; 140 } 141 142 #shutdown button { 143 background-color: #8C1C00; 144 color: white; 145 font-weight: bold; 146 font-size: 24pt; 147 width: 100%; 148 } -
src/webapp/webclient/javascript/main.js
ra250eb4 r5519ced 102 102 } 103 103 104 function shutdown(){ 105 $.getJSON("../webservice/?request=shutdown", function(data){ 106 var shutdownTime = data["shutdownstart"]; 107 var shutdownDate = new Date(shutdownTime); 108 var currentDate = new Date(); 109 var shutdownHint = "Shutting down in "+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString(); 110 if(shutdownTime == -1){ 111 shutdownHint = "Failed to initiate shutdown!"; 112 } 113 $("#shutdownMessage").text(shutdownHint); 114 }); 115 } 116 104 117 $(document).ready(function() { 105 118 displayDataGet(); … … 107 120 108 121 $.getJSON("../webservice/tileserver.php?/map.json", mapSetup); 122 123 $("#shutdownButton").click(shutdown); 109 124 }); -
src/webapp/webclient/root/index.php
ra250eb4 r5519ced 100 100 </div> 101 101 </form> 102 <div id="shutdown"> 103 <p id="shutdownMessage"/> 104 <form> 105 <button type="button" id="shutdownButton">SHUTDOWN</button> 106 </form> 107 </div> 102 108 <?php 103 109 require_once("inc/footer.php");
Note:
See TracChangeset
for help on using the changeset viewer.
