mirror of
https://github.com/LucasVbr/timer.git
synced 2026-05-13 17:22:04 +00:00
Update README.md
This commit is contained in:
@@ -2,22 +2,17 @@
|
|||||||
|
|
||||||
Objective : Make a timer in JavaScript
|
Objective : Make a timer in JavaScript
|
||||||
|
|
||||||
[Link to demo](https://lucasvbr.github.io/javascript-timer/)
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
- **Download** the repository and **execute** the `index.htm` file in your navigator
|
- Go to the [Link to demo](https://lucasvbr.github.io/javascript-timer/?minutes=5)
|
||||||
|
- To set time, you need to add parameters in the URL :
|
||||||
- To set time, you need to add parameters in the URL :
|
URL syntax : `<URL>?[param1]&[param2]&[...]`
|
||||||
URL syntax : `<URL>?[param1]&[param2]&[...]`
|
|
||||||
Parameter syntax : `<type>=<value>`
|
Parameter syntax : `<type>=<value>`
|
||||||
|
- Differents `type` : `seconds`, `minutes` and `hours`
|
||||||
|
If there is not parameters : **5 minutes** are in the timer by default
|
||||||
|
(There isn't order for parameters)
|
||||||
|
|
||||||
- Differents `type` : `seconds`, `minutes` and `hours`
|
Example :
|
||||||
If there is not parameters : **5 minutes** are in the timer by default
|
|
||||||
(There is no order for parameters)
|
|
||||||
|
|
||||||
Example :
|
|
||||||
|
|
||||||
```url
|
```url
|
||||||
https://lucasvbr.github.io/javascript-timer/index.htm?hours=10&minutes=10&seconds=10
|
https://lucasvbr.github.io/javascript-timer/index.htm?hours=10&minutes=10&seconds=10
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user