Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dynamic favicon and notice for live updates #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iro-miya
Copy link

@iro-miya iro-miya commented Oct 2, 2023

This patch adds a favicon and a page title which display whether the door is open. They update alongside the rest of the page. This allows the user to see the status of the door by keeping the tab open without having to switch to it.

It also adds a notice that the page refreshes automatically, as currently this fact is not obvious. I added this notice in the JavaScript so that it doesn't display if the user has JavaScript disabled.

image

image

The icons can be distinguished both by colour and content so as to be colourblind-friendly. The page doesn't have a favicon while the status is loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant