OK, guys, and now we want to add for the public what we can just do right now is to complete this
part and this here we can and with closure syntax and this could be dark and here we can delay the alert
and we will add it at the end.
The first thing we will edit and this video is for this Natcore, we can just reload.
OK, the like note, OK, that's is the first thing we will edit is the background for the Naver.
We can just go here and make a document that queyras a letter for the never pile dot pick ground color
and this one to be equal.
We can just go here and see what we have right now when we choose the dark note.
And then here we have a black and then we will need here to get the color of white.
We can just go to the index of each team and then he will have a match up.
We can search for the next top right here.
OK, the second one is starting from yes, ok.
OK, ok, so yes.
So where is it.
It's having the color of black.
Yes.
And then we can go to the script again.
Make us to be having that.
No we can copy this one and we want this to be having the color of white.
Let's see what we have here when we go and click on the jar.
So here we have this byte.
Let's now make for the list.
We can just go here, copy this part and right here and find it a and then we can go here and click
on the dark.
And now it's applied just for one item.
And that's why we will use here a function which is called for a but when we type the choir's elector
for this part, we will choose just the first one.
There's something which we will need to choose, which is requires a lecture old.
Everything that is having this, which we are having here, you are having here one, two, three,
four, five.
And we want the five, not just the first one.
There's a loop which is called for and we will explain it right now.
This example to explain it here, we can set to variables for X to be equal to document document.
Why are we select all squares of lecture?
All I will choose everything which is having the the class of math Joppa, but a bit better.
We can just go here and give it a class of Wiveton or just Plack and then we can copy this one right
here, OK, here, here and here.
We can now go to this and the latest from here.
We can add the class of flag on this one to be having the color of plaque.
Let's use working.
We can choose.
Yes, it's work.
And now we can go to the script and know how we can use it.
This can be black.
So now I have selected everything inside the file, which is having the black click and then have to
this part in here.
We will use something which is called the length and for the length here we got, uh, one, two, three,
four, five.
So we have five items.
We can just go to the script Atheneum variable, which will be var I zero and then here we can use the
four.
Look, we can use something which is called for sure.
I don't uh I left them x doubleness.
Something guns.
OK, and for this one, it is less than the length this to be and not if it is less than the length
I want five plus plus.
And we will explain all of that when we type all of the code and this one before X, then things pile
that color to be equal to the white.
Let's just test this one inside the page.
We got something here.
Yes, definitely.
We can do this one of our eye and here I equals zero.
And then we can go and test this part from here when we click on Dark.
And so here we got them all for the white color.
What does this mean?
Actually, here we have the for loop for the VA, which is equal to zero.
If the eye is less than the length which we've talked about before, which is zero, and the length
of one, two, three, four, five.
So I want something to be habit that something will be happened.
I want I plus.
Plus what does I mean.
It means I plus one and then so here I equals zero and it's already less than the length of the X and
then here I want I plus plus.
So then you I will be equal to one and then here it will move to here.
So let's say that we have an arrow here which is all of that.
So it will move to this arrow and see the function inside.
And here we got the function inside.
We got here.
That document requires Lechter and what number I want the first one which is having the number one,
which we talked about before and the date.
And then here I want to change its color to be white.
And then we are done from this function.
It tells me I will go back and make sure that this condition is not working.
When it goes here, we have here variable.
It will delete this automatically because the new AI is one and then here it will move.
This part one is still less than the five.
So it will repeat again I plus plus.
And for this time it will be one plus one which is equal to.
And then here it will move to this part.
It makes sure that X for the two, which is the second one in this condition, is true.
So it will make its color to be white and then it will return back to this function and do it until
it goes to five five, if not less than the five.
So this condition will not work for the five.
OK, so there will not be six for the AI plus.
Plus that's how it is working.
OK, that's good.
And I will do it for the math.
For the last thing we will do for the small screen is the icon and the background.
OK, we can just go and search for this icon, the toggle.
We can copy this one right here.
We can go to the script right now.
They want to be for toggle order.
We can change the order from here.
Toggle class.
OK, this one, we can copy this.
Go to the script.
Don J.
S instead of this, we can make it right.
Let's see what we have here right now when we click on talk.
So here we have this.
OK, that's good.
After this part, they want to change the color of the icon.
We can just go here the f a.
S.
We can't cover this part because here the tumbler and thud and a class of f the color for the color.
We wanted to be white.
We can just go and reload a chocolate.
So here we have this, we're just edit for the U.
L we can copy this part for the background color and then we can go here, scroll down here.
We have the you know, we can copy this class, go back to the script.
There's no solid OK here except here.
Background color to be black.
We can now go and reload it to the dark mood and then we can click here.
So here we got that black eye with this one.
OK, that's good.
In the next video, we can do the same for loop, but this one to be for the best class, which is the
text and the Putins.
So good luck and have fun.