Usage guide

Configure the page through URL parameters

The home page reads query-string parameters from /, renders the initial state on the server, and then updates the displayed value every second in the browser.

Supported parameters

Parameter Required Description
mode Optional up or down. Defaults to up. Invalid values render a friendly error.
start No UTC start time in ISO-8601 or Unix format. Defaults to the current time when omitted or invalid.
end When mode=down UTC end time in ISO-8601 or Unix format. Required for countdown mode.
factor No Positive speed multiplier. Defaults to 1 when omitted or invalid.
unitinterval No seconds, minutes, hours, or days. Controls how quickly the value changes. Defaults to seconds.
displayedunit No Free-text label rendered next to the value, such as kr. Defaults to the selected unitinterval.
numberofcounterdecimals No Exact number of decimal places shown in the counter, padded with trailing zeros when needed. Uses 2 when omitted or invalid.
title No Header text for the page. Razor renders it as plain text.
description No Supporting text below the title. Razor renders it as plain text.

Example URLs

Countdown

/?mode=down&start=2026-05-01T12:00:00Z&end=2026-05-10T12:00:00Z&unitinterval=days&displayedunit=days&factor=1&numberofcounterdecimals=3&title=Launch%20Countdown&description=Website%20goes%20live%20in Open countdown example

Count up

/?mode=up&start=2026-05-01T12:00:00Z&unitinterval=hours&displayedunit=kr&factor=1.5&numberofcounterdecimals=4&title=Elapsed%20Value&description=Kronor%20earned%20since%20launch Open count-up example