Display Options

The Display Options section in the menu panel gives you options to change the look of the UI and other browser features.

All of these settings can be set with URL parameters.

A screenshot of the Display Options menu options.

Table of contents

  1. Options
    1. Language
    2. Menu Theme
    3. Panel Visibility
    4. Tab Title
    5. Interactions
      1. Auto-hide Mouse
    6. Fullscreen

Options

Language

The Language radio buttons let you change the language of the site. Online Web Clock uses i18next for internationalization and localization.

A screenshot of the Language radio buttons.

Currently, only English and Spanish have been added, but more languages are planned for future releases. If you would like to contribute a translation, feel free to make a pull request! (GitHub).

The Menu Theme dropdown menu allow you to change the theme of the menu panel, either to Light, Dark, Midnight, or AMOLED. Theme functionality is included with Bootstrap and is modified with the data-bs-theme attribute.

A screenshot of the Menu Theme dropdown menu.

Light theme Dark theme Midnight theme AMOLED theme
A screenshot of the page with Light theme enabled. A screenshot of the page with Dark theme enabled. A screenshot of the page with Midnight theme enabled. A screenshot of the page with AMOLED theme enabled.

The theme is automatically set based on your system’s color scheme on page load. You can also set it with URL Parameters.

Here’s how the data-bs-theme attribute gets modified. For modularity purposes, the theme is applied on a per-container basis.

// Menu theme function
export function setMenuTheme(theme: string | 'toggle', quiet: boolean = false): void {
    // Get current theme
    const currentTheme = menu.container.dataset.bsTheme || 'light';
    
    // Handle auto
    if (theme === 'auto') {
        theme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
        menu.themeradio[theme === 'light' ? 0 : 1].checked = true;
    }

    // Handle toggle (cycle through themes)
    if (theme === 'toggle') {
        const themeKeys = Object.keys(themes);
        const currentIndex = themeKeys.indexOf(currentTheme);
        const nextIndex = (currentIndex + 1) % themeKeys.length;
        theme = themeKeys[nextIndex];
        menu.themeradio[nextIndex].checked = true;
    }
    
    // Validate theme exists
    if (!themes[theme]) {
        logConsole(`Invalid theme: ${theme}, defaulting to light`, 'error');
        theme = 'light';
    }

    const themeConfig = themes[theme];
    
    // Apply theme to all containers
    const containers = [
        menu.container,
        weather.container,
        stopwatch.container,
        countdown.container
    ];
    
    containers.forEach(container => {
        // Set data-bs-theme attribute
        container.dataset.bsTheme = theme;
        
        // Set text color
        if (container !== menu.container) {
            container.style.color = themeConfig.textColor;
        }
        
        // Set background color for popup containers
        if (container === stopwatch.container || container === countdown.container) {
            container.style.backgroundColor = themeConfig.backgroundColor || 
                (theme === 'light' ? '#ffffff' : '#313539');
        }
    });
    
    // Browser meta
    setMetaColor('theme', themeConfig.metaTheme);
    
    logConsole(`Menu theme set to: ${theme}`, 'debug');
    if (!quiet) showToast(i18next.t(`toasts.global.theme${theme}`));
}

Panel Visibility

This checkbox toggles visiblity of the panel buttons, including the buttons to open the countdown, stopwatch, and menu panels.

A screenshot of the Panel Visibility checkbox.

Panel buttons visible Panel buttons hidden
A screenshot of the page with Panel Visibility enabled. A screenshot of the page with Panel Visibility disabled.

Tab Title

If you don’t like the dynamic tab title, where it updates along with the time, you can disable it here. Additionally, the favicon also changes to a clock icon depending on the current hour. By default, the Tab Title is enabled.

A screenshot of the Tab Title checkbox.

Tab Title enabled Tab Title disabled
A screenshot of the page with Tab Title enabled. A screenshot of the page with Tab Title disabled.

Interactions

The Interactions section includes options that change how you interact with Online Web Clock.

A screenshot of the Interactions section.

Auto-hide Mouse

This checkbox toggles the automatic hiding of your mouse cursor after 10 seconds of inactivity. Moving your mouse will make it reappear. The mouse cursor is only hidden when it is over the clock area/background, not over panels, cards, widgets, or other UI elements.

Fullscreen

This toggle button switches between fullscreen and windowed mode.

A screenshot of the Fullscreen toggle button.

The fullscreen toggle may not function correctly if you manually entered fullscreen mode with F11.