Changes in / [949f66d:50a7bfa]
- Location:
- src/webapp
- Files:
-
- 4 edited
-
webclient/css/GnuBoat.css (modified) (1 diff)
-
webclient/index.html (modified) (1 diff)
-
webclient/js/GnuBoat.js (modified) (2 diffs)
-
webservice/inc/GnuBoat/ServiceShutdown.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webclient/css/GnuBoat.css
r949f66d r50a7bfa 115 115 } 116 116 117 # message .error{117 #shutdownMessage { 118 118 font-weight: bold; 119 119 color: #8C1C00; 120 }121 122 #message .info {123 font-weight: bold;124 color: #45A545;125 120 } 126 121 -
src/webapp/webclient/index.html
r949f66d r50a7bfa 129 129 <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2"> 130 130 <div id="shutdown" class="l-box"> 131 <a name=" messages"></a>132 <p id=" message"/>131 <a name="shutdown"></a> 132 <p id="shutdownMessage"/> 133 133 <!-- <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> --> 134 134 </div> -
src/webapp/webclient/js/GnuBoat.js
r949f66d r50a7bfa 44 44 { 45 45 $("#message").empty(); 46 $( text).appendTo("#message");46 $(shutdownHint).appendTo("#message"); 47 47 location.hash = "#messages"; 48 48 } … … 115 115 var shutdownDate = Date.parse(shutdownTime); 116 116 var currentDate = new Date(); 117 var shutdownHint = '<span class="info">Shutting down in '+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString() +"</span>";117 var shutdownHint = "Shutting down in "+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString(); 118 118 if(shutdownTime == -1){ 119 shutdownHint = '<span class="error">Failed to initiate shutdown: '+ data["errormessage"] +"</span>";119 shutdownHint = "Failed to initiate shutdown: "+ data["errormessage"]; 120 120 } 121 121 GnuBoat.displayMessage(shutdownHint); -
src/webapp/webservice/inc/GnuBoat/ServiceShutdown.php
r949f66d r50a7bfa 36 36 if($handle === false){ 37 37 $message = "Could not create file (". $config->shutdownRequestFile() .") to indicate shutdown to the daemon."; 38 if($debug > 0) 39 echo $message; 38 40 error_log($message); 39 41 $result["shutdownstart"] = -1;
Note:
See TracChangeset
for help on using the changeset viewer.
