]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commitdiff
Unify logout button spelling and layout
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 14 Aug 2018 21:25:04 +0000 (23:25 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 14 Aug 2018 21:25:13 +0000 (23:25 +0200)
Changes:

- Logout button text is always in small caps (both initial value from
  HTML and modified value from JavaScript).
- Position of the "logout" text is always the same - when we add a
  line with seconds counter below, we have to add also a line above.

templates/main.js

index 5416627e1105d36e1b1789690c5dbe1bef5c9bd8..9f65da99390ccc58bead08b3f4b5354903523946 100644 (file)
@@ -29,7 +29,7 @@ function loadLocalStorage() {
 var flavorChosen;
 
 function countingTimeLogout(count_time){
-    document.getElementById("logout_button").value = 'Logout in \n(' + count_time + ' second)';
+    document.getElementById("logout_button").value = '\nlogout\n(' + count_time + ' s)';
     if (count_time == 0){
        timer = setTimeout(logout, 100);
        return;