OK, guys, what we want to do right here is to make something here for the JavaScript, so when I load
the page, I want this to appear.
So let's think about it.
Why are we doing this?
Let's just leave it like that.
But I'm going to tell you why there is a reason for this part.
Some browsers are are plugging the JavaScript.
So if I use this one for the C.
S, the user will not be able to click on light mode or dark mode.
So he will not be able to browse this Web site.
So we will need to add a JavaScript.
So if the browser is plugging the JavaScript, then you will not be affected with this thing right here.
We can just go here and say yes to the choice and give it this play,
OK?
And here we have the display of none.
We can go now to the JavaScript right here.
I've added this before so we can just delete it.
OK, we can make here a function and the name of the function.
We can just click to choice.
I can delete the parameters were done and then here we can make a document queries and Lechter to be
for the cha cha cha cha cha cha.
That's the thing.
Yes.
And this one to be having some title of this play style does play to equal.
We can just go to the Ts to the page, but we want to add here a function, the function we will not
use unclick, we will use the function which is on.
So when I load the page, I want the function to be huben what function they want to be happened.
I want for choice.
We can just go and reload.
So now we got this.
OK, and I'm going to show you why, why we are doing this.
Let's say that a browser is plugging the JavaScript.
So if I believe this one and go here, the page will not be affected if they are plugging the JavaScript.
OK, that's good.
In the next video, we will add the date for this part.
So good luck and have fun.