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.
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;