From 1a981f2a407a379d474eae38e663ef0a00ede2f8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 15 Aug 2018 12:14:06 +0200 Subject: [PATCH] Use button element instead of input It seems that the web browser on the terminal does not understand '\n' in value attribute so I hope that it will understand '
' in button's content. --- templates/main.js | 2 +- templates/user.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/main.js b/templates/main.js index 63aa40d..464dacc 100644 --- a/templates/main.js +++ b/templates/main.js @@ -59,7 +59,7 @@ function updateUI() } if (timeToLogout !== undefined) - document.getElementById("logout_button").value = '\nlogout\n(' + timeToLogout + ' s)'; + document.getElementById("logout_button").innerHTML = '
logout
(' + timeToLogout + ' s)'; } } diff --git a/templates/user.html b/templates/user.html index 4e3725f..95ee95e 100644 --- a/templates/user.html +++ b/templates/user.html @@ -1,6 +1,6 @@ {% if name %}
- +

Hello, {{ name }}!

-- 2.39.2