digital-clock

WebJar for digital-clock

License

License

ISC
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.bowergithub.telecomsante
ArtifactId

ArtifactId

digital-clock
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

digital-clock
WebJar for digital-clock
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/telecomsante/digital-clock

Download digital-clock

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.telecomsante/digital-clock/ -->
<dependency>
    <groupId>org.webjars.bowergithub.telecomsante</groupId>
    <artifactId>digital-clock</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.telecomsante/digital-clock/
implementation 'org.webjars.bowergithub.telecomsante:digital-clock:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.telecomsante/digital-clock/
implementation ("org.webjars.bowergithub.telecomsante:digital-clock:2.0.0")
'org.webjars.bowergithub.telecomsante:digital-clock:jar:2.0.0'
<dependency org="org.webjars.bowergithub.telecomsante" name="digital-clock" rev="2.0.0">
  <artifact name="digital-clock" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.telecomsante', module='digital-clock', version='2.0.0')
)
libraryDependencies += "org.webjars.bowergithub.telecomsante" % "digital-clock" % "2.0.0"
[org.webjars.bowergithub.telecomsante/digital-clock "2.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : iron-icon jar [2.0.1,3)
org.webjars.bowergithub.polymerelements : iron-iconset-svg jar [2.0.1,3)

Project Modules

There are no modules declared in this project.

<digital-clock>

Published on webcomponents.org

A simple clock component, displaying the current date and time into the local format.

It's possible to set an alarm.

Quick example

<digital-clock></digital-clock>
<audio src="demo/Zen_Temple_Bell.mp3" id="alarm"></audio>
<script>
const clock = document.querySelector('digital-clock');
let now = new Date();
now.setMinutes(now.getMinutes() + 1);
now.setSeconds(0);

clock.alarm = now.toISOString();
clock.addEventListener('clock-alarm', () => {
  document.getElementById("alarm").play();
});
</script>

The component is licensed under the ISC License

org.webjars.bowergithub.telecomsante

Hoppen

Versions

Version
2.0.0