diff --git a/html/index.html b/html/index.html index 293cd53..714e9ee 100644 --- a/html/index.html +++ b/html/index.html @@ -23,6 +23,9 @@
+
+
+
diff --git a/html/js/thermostat.js b/html/js/thermostat.js index 6ad7f7f..3826ede 100644 --- a/html/js/thermostat.js +++ b/html/js/thermostat.js @@ -37,6 +37,20 @@ function renderVersion() { }; $(document).ready(renderVersion); +function displayLogoutButton() { + if (window.localStorage.getItem("authtoken") !== null) { + // Display a logout button + var logoutButton = $("