From 56b00a20efcf418a17f233afd48d1855567dfad1 Mon Sep 17 00:00:00 2001 From: Damian Peterson Date: Fri, 28 Jul 2023 09:45:56 +1200 Subject: [PATCH] Tidy up html output --- index.php | 61 ++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/index.php b/index.php index c8343b7..a8da690 100644 --- a/index.php +++ b/index.php @@ -201,6 +201,7 @@ function refreshToken($vars, $refreshToken) { setcookie('access_token', $jsonAuth['access_token'], time() + $jsonAuth['expires_in'], "/"); setcookie('refresh_token', $jsonAuth['refresh_token'], time() + (86400 * 90), "/"); header('Location: /'); + die(); } } @@ -330,17 +331,6 @@ if ($isLoggedIn && $_POST) { border-bottom: 1px solid var(--color-primary); } - .hours { - display: flex; - flex-wrap: wrap; - justify-content: center; - margin-bottom: 20px; - } - - .hour { - white-space: nowrap; - } - .actions { display: flex; justify-content: center; @@ -357,6 +347,24 @@ if ($isLoggedIn && $_POST) { cursor: pointer; } + .info { + color: var(--message-color); + font-size: 0.9rem; + font-style: italic; + } + + + .hours { + display: flex; + flex-wrap: wrap; + justify-content: center; + margin-bottom: 20px; + } + + .hour { + white-space: nowrap; + } + .hour label { padding: 10px; cursor: pointer; @@ -376,36 +384,25 @@ if ($isLoggedIn && $_POST) { background-color: var(--btn-bg-color); color: var(--btn-color); } - - .info { - color: var(--message-color); - font-size: 0.9rem; - font-style: italic; - } +
- -
- +
-
- -
- + +
$value): ?> - - checked> - - + + checked> + +
@@ -415,7 +412,7 @@ if ($isLoggedIn && $_POST) {

Logged in as . Log out

This site is not affiliated with Electric Kiwi. It uses Electric Kiwi's API to - update your hour of power. None of your personal information is retained or shared. + update your hour of power. None of your personal information is retained or shared.
Source code