A flexible, customizable LED-style display for clocks, countdowns, and random numbers
See the plugin in action with different configurations:
Customize the display with these parameters:
| Parameter | Description | Default | Possible Values |
|---|---|---|---|
id |
Container element ID | "ledtime" | Any valid HTML element ID |
type |
Display type | "time" | "time", "countdown", "random" |
format |
Time/number format | "hh:mm:ss" | "hh:mm:ss", "ddd:hh:mm:ss", "mm:ss", custom combinations |
color |
LED segment color | "#fff" | Any valid CSS color |
bgcolor |
Background color | "#000" | Any valid CSS color |
size |
Segment size in pixels | 16 | Positive integers |
rounded |
Segment corner rounding | 4 | 0-10 (pixels) |
font |
Digit font style | "font3" | "font1", "font2", "font3" |
timer |
Target date for countdown (required for countdown type) | N/A | "YYYY:MM:DD:HH:MM:SS" |
num |
Range for random numbers | "0,9999999" | "min,max" or single number |
Add the Led Time Panel to your page in just a few steps:
<script src="time_led.min.js"></script>
<div id="led-display"></div>
const config = {
id: "led-display",
type: "time",
color: "#FF0000",
size: 14
};
new Led(config);