Ignore:
Timestamp:
Jul 20, 2016, 5:56:56 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
73c34f3
Parents:
5519ced
Message:

Fixed shutdown function in webclient and improved design

Signed-off-by: Joachim Langenbach <joachim.langenbach@…>

Location:
src/webapp/webclient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webclient/css/main.css

    r5519ced rd7ee6ae  
    112112form p input {
    113113        border: 1px solid #ACDFAC;
    114         height: 2em;
    115         width: 58.3mm;
     114        height: 3em;
     115        width: 100%;
    116116}
    117117
    118118.formButtons {
    119         text-align: right;
    120         margin-right: 5em;
    121         margin-top: 1em;
     119        text-align: center;
     120        margin-top: 2em;
    122121}
    123122
    124123.button {
    125124        border: 0;
    126         height: 2em;
    127         width: 10em;
     125        height: 3em;
     126        width: 100%;
    128127        background-repeat: no-repeat;
    129128        background-position: 0.5em 0.25em;
    … …  
    146145        font-size: 24pt;
    147146        width: 100%;
     147        height: 3em;
    148148}
  • src/webapp/webclient/javascript/main.js

    r5519ced rd7ee6ae  
    105105        $.getJSON("../webservice/?request=shutdown", function(data){
    106106                var shutdownTime = data["shutdownstart"];
    107                 var shutdownDate = new Date(shutdownTime);
     107                var shutdownDate = Date.parse(shutdownTime);
    108108                var currentDate = new Date();
    109109                var shutdownHint = "Shutting down in "+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString();
Note: See TracChangeset for help on using the changeset viewer.