Skip to content

Latest commit

 

History

History
111 lines (72 loc) · 2.46 KB

README.md

File metadata and controls

111 lines (72 loc) · 2.46 KB

Olay - clock

Display current local date and time.

Base URL: https://etrusci.org/tool/olay/?mod=clock
Default configuration: clock.conf.js
Default style: clock.default.css


Examples


Configuration

updaterate

Clock update rate in milliseconds.

Valid: Integers >= 1

type

Which type of clock to load.

Valid:

humanformat

Human-readable format template.

Requires: type = human
Valid: Placeholders, text, HTML

Placeholders:

  • {year}: Year
  • {month}: Month
  • {day}: Day
  • {hour}: Hour
  • {minute}: Minute
  • {second}: Second
  • {millisecond}: Millisecond
  • {timezoneOffset}: Timezone offset (relative from UTC)

beatsformat

Swatch internet time format template.

Requires: type = beats
Valid: Placeholders, text, HTML

Placeholders:

  • {beats}: Beats

repnum

Whether to replace numbers with characters.

Valid:

  • true: Replace numbers with characters
  • false: Do not replace numbers with characters

repmap

The character map for repnum.

Requires: repnum = true
Valid:

  • 1: ABCDEFGHIJ
  • 2: ZYXWVUTSRQ
  • 3: 9876543210
  • 4: ●□◆■○▶◁▲◇▼
  • 5: ٠١٢٣٤٥٦٧٨٩

Output Styling

HTML Elements

<div class="mod clock">
    {date_time}
</div>

Available CSS Selectors

.mod {} /* or */ .mod.clock {} /* Module output container */