Refactor in POO

This commit is contained in:
Tchi
2021-07-04 16:09:20 +02:00
parent fa0a0fc1aa
commit ae62ecc4bd
5 changed files with 71 additions and 50 deletions
+12 -7
View File
@@ -8,11 +8,16 @@ Objective : Make a timer in JavaScript
- **Download** the repository and **execute** the `index.htm` file in your navigator
- To set time, you need to edit the url and add `?time=<number_of_seconds>`
Example :
```url
https://lucasvbr.github.io/javascript-timer/index.htm?time=500
```
- To set time, you need to add parameters in the URL :
URL syntax : `<URL>?[param1]&[param2]&[...]`
Parameter syntax : `<type>=<value>`
- 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 :
```url
https://lucasvbr.github.io/javascript-timer/index.htm?hours=10&minutes=10&seconds=10
```