Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisburnell/event-countdown
A Web Component to display an event countdown.
https://github.com/chrisburnell/event-countdown
countdown custom-element custom-elements customelement customelements javascript web-component web-components webcomponent webcomponents
Last synced: 3 days ago
JSON representation
A Web Component to display an event countdown.
- Host: GitHub
- URL: https://github.com/chrisburnell/event-countdown
- Owner: chrisburnell
- License: mit
- Created: 2024-04-07T17:22:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-04-22T10:43:56.000Z (5 months ago)
- Last Synced: 2024-05-01T14:16:03.439Z (5 months ago)
- Topics: countdown, custom-element, custom-elements, customelement, customelements, javascript, web-component, web-components, webcomponent, webcomponents
- Language: JavaScript
- Homepage: https://chrisburnell.com/event-countdown/
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `event-countdown`
A Web Component to display an event countdown.
**[Demo](https://chrisburnell.github.io/event-countdown/demo.html)** | **[Further reading](https://chrisburnell.com/event-countdown/)**
## Usage
### General usage example
```html
My event starts on .
```### With end point
```html
My event ends on .
```### Both start and end points
```html
My event starts on and ends on .
```### Annual events
```html
My event starts on .
```### Update frequency
```html
My event starts on .
My event starts on .
```### Specific division
```html
My event starts on .
```### Maximum division
```html
My event starts on .
```### Numeric format
```html
My event starts on .
My event starts on .
```### Style format
```html
My event starts on .
My event starts on .
My event starts on .
```## Installation
You have a few options (choose one of these):
1. Install via [npm](https://www.npmjs.com/package/@chrisburnell/event-countdown): `npm install @chrisburnell/event-countdown`
1. [Download the source manually from GitHub](https://github.com/chrisburnell/event-countdown/releases) into your project.
1. Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)## Usage
Make sure you include the `` in your project (choose one of these):
```html
<!-- Host yourself -->
<script type="module" src="event-countdown.js">
``````html
```
```html
```
## Credit
With thanks to the following people:
- [David Darnes](https://darn.es) for creating this [Web Component repo template](https://github.com/daviddarnes/component-template)