It seems that the web browser on the terminal does not understand '\n' in
value attribute so I hope that it will understand '<br>' in button's
content.
}
if (timeToLogout !== undefined)
- document.getElementById("logout_button").value = '\nlogout\n(' + timeToLogout + ' s)';
+ document.getElementById("logout_button").innerHTML = '<br>logout<br>(' + timeToLogout + ' s)';
}
}
{% if name %}
<form style="position: absolute; right: 15%; width: 15%; height: 15%;">
- <input type="button" value="logout" id="logout_button" onclick="logout()" style="width: 100%; height: 100%;">
+ <button type="button" id="logout_button" onclick="logout()" style="width: 100%; height: 100%;">logout</button>
</form>
<h1>Hello, {{ name }}!</h1>