mirror of https://github.com/01-edu/public.git
Docs(DPxAI): Apply prettier to Quest00/Ex06
This commit is contained in:
parent
a6386b64c7
commit
071d868dd9
|
@ -14,8 +14,6 @@ This is more of a puzzle to use your brain to follow hints and make things work,
|
|||
|
||||
> Follow the instructions, ask your peers if you are stuck and stay motivated because you are close to the Quest 00 goal!
|
||||
> Follow every hint you have in the subject!
|
||||
|
||||
|
||||
### Instructions
|
||||
|
||||
- for the JavaScript (JS) files, when you have to link one, it's named like so: `name-of-the-exercise.js`
|
||||
|
@ -43,8 +41,6 @@ Then in your Javascript file, you're going to close the left eye of your entity.
|
|||
#### Task 3
|
||||
|
||||
Then, [set the `style`](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style#setting_styles) of your `eye-left` to change its background color to "black". We also need to modify its shape; for that, we are going to add a new class to it.
|
||||
|
||||
|
||||
### Code examples
|
||||
|
||||
#### Example 1
|
||||
|
@ -61,8 +57,7 @@ In HTML file:
|
|||
In the JS file:
|
||||
|
||||
```js
|
||||
const nose = document.getElementById('nose');
|
||||
|
||||
const nose = document.getElementById("nose");
|
||||
```
|
||||
|
||||
#### Example 2
|
||||
|
@ -77,8 +72,9 @@ To change the color of the nose to red:
|
|||
border-radius: 50%;
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
nose.classList.add('nose-red');
|
||||
nose.classList.add("nose-red");
|
||||
```
|
||||
|
||||
#### Example 3
|
||||
|
|
Loading…
Reference in New Issue