From da7ee297b9aadcafbe31094e6072ac4627c4c0d6 Mon Sep 17 00:00:00 2001 From: Lucas <86352901+LucasVbr@users.noreply.github.com> Date: Sun, 19 Sep 2021 19:25:10 +0200 Subject: [PATCH] Update README.md --- README.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4e79083..5d7cd5b 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,17 @@ Objective : Make a timer in JavaScript -[Link to demo](https://lucasvbr.github.io/javascript-timer/) - ## Installation -- **Download** the repository and **execute** the `index.htm` file in your navigator - -- To set time, you need to add parameters in the URL : - URL syntax : `?[param1]&[param2]&[...]` +- 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 : + URL syntax : `?[param1]&[param2]&[...]` Parameter syntax : `=` +- 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` - If there is not parameters : **5 minutes** are in the timer by default - (There is no order for parameters) - - Example : - + Example : ```url https://lucasvbr.github.io/javascript-timer/index.htm?hours=10&minutes=10&seconds=10 ```