From: Avram Gottschlich Date: Thu, 12 Jan 2023 05:58:23 +0000 (-0800) Subject: Add code to auto-refresh each HTML page X-Git-Url: https://git.cworth.org/git?p=turbot-web;a=commitdiff_plain;h=HEAD Add code to auto-refresh each HTML page This is a simple http-equiv attribute on a meta tag telling the browser to reload the page every 15 seconds. That should at least get the job done. Also add a link to the turbot documentation to the generated pages. --- diff --git a/html_generator.py b/html_generator.py index 0fef3d4..f187032 100644 --- a/html_generator.py +++ b/html_generator.py @@ -145,6 +145,7 @@ def overview(hunt, puzzles, rounds): '\n', ' \n', ' \n', + ' \n', '\n', ' \n', ' \n' '\n', - '
\n' - ' Hunt Overview' - ' All Puzzles\n' - ' Unsolved\n' - ' Solved\n' - '
\n' + '
\n', + ' Hunt Overview', + ' All Puzzles\n', + ' Unsolved\n', + ' Solved\n', + ' Turbot Docs\n' + '
\n', '\n',] columns = ['
\n'] expanding = [] @@ -238,6 +240,7 @@ def round_overview(hunt, rnd, puzzles): ' \n', ' Mystery Hunt 2022\n', ' \n', + ' \n', ' \n', ' \n'.format(status), '

{}

\n'.format(rnd), @@ -322,6 +325,7 @@ def puzzle_overview(hunt, puzzle): '\n', ' \n', ' \n', + ' \n', ' \n', ' {}\n'.format(name+meta), '

{}

'.format(link(internal_link(hunt, 'index') + ".html", 'Hunt Overview')), @@ -371,13 +375,15 @@ def puzzle_lists(hunt, puzzles, filt): ' \n', ' Mystery Hunt 2022\n', ' \n', + ' \n', ' \n', - '
\n' - ' Hunt Overview' - ' All Puzzles\n' - ' Unsolved\n' - ' Solved\n' - '
\n' + '
\n', + ' Hunt Overview', + ' All Puzzles\n', + ' Unsolved\n', + ' Solved\n', + ' Turbot Docs\n' + '
\n', ' \n', '

{}

\n'.format('{} Puzzles').format(filt), '

{}

\n'.format(link(internal_link(hunt, 'index') + ".html", 'Hunt Overview')),