Simple customisable online clock (on GitHub Pages) which can be configured through query parameters. Optimised for the OBS Studio "browser" source type.
Taken from Chessset5's browser overlay with query params inspired by pablopunk/time.
-
fg: Foreground colour- defaults to
white
- defaults to
-
bg: Page-wide background colour- defaults to
black
- defaults to
-
box: Text-box padding colour- defaults to
transparent
- defaults to
-
font: Font family- defaults to
sans-serif
- defaults to
-
fontSize: The size of the font in the clock -
position: Position on the screen- defaults to
center
- defaults to
-
bpad: Text-box padding width -
brad: Text-box border radius
top-left top top-right
left right
bottom-left bottom bottom-right
-
format: Moment.js format string -
offsetMs: Number of milliseconds to add to the current UTC.- defaults to your local time-zone offset
-
useOnline: Iftrue, extracts the current time from a remote server upon page load.- defaults to
false
- defaults to
Parameters can be passed either in the query string:
Or as Custom CSS in an instance of OBS Studio's Browser source:
props {
--font: Inconsolata;
--fg: white;
--format: YYYY-MM-DD HH:mm:ss:SS;
}The underlying HTML structure is the same as in Chessset5's version. So any existing custom CSS should work as-is.