Now we come to the last and most important part of the coding process, disabling that same page.
The sender chair malfunction is responsible for generating our page whenever that ISP first to obtain
gets a request from our client.
It merely concatenate a and called into a big string and returns to the server that function we discussed
earlier.
The function takes status of LEDs as a parameter, dynamically generate the stream and content.
The first text you should always send is the doc type declaration.
This look type declaration indicates that we are sending a similar code.
So let's start by initializing this method down here.
It will return string so it won't be void string sent to Yemen.
Now this method will take.
Two parameters, the first one will be that integer.
LED one status.
And tech led to state.
As you can see here and here, now we need to identify a pointer.
So inside it, the first one will be String Peter, which is the fixed point.
All of the string point out that we're going to use.
And the first thing that we are going to pass is the dog type.
Estimable Doug.
And if you often we know that Shyamalan, you know that this is something you have to do, you can't
ignore it and you can't leave it.
You have to tell the browser that this is an issue of code using this line.
Now, the solution here means new line.
So the first thing that will be written on our Astrium page is this and it won't be written to be hidden
and the slush and will move to the next line so that we can like more things.
Next, we are going to drive a meta viewport element that makes the whole page responsive in any web
browser while title tags.
It's the title of the page.
So let's do them one by one, and you'll notice that whenever I write this, I write plus equal plus
equal means take this and add whatever I wrote in here to it.
Don't replace it concatenated.
So the first thing, plus the second string, plus the third string and so on.
So we are going to write a long line here.
This line will make that page hit us or head, and we are going to drive the meta tags.
And you can simply drive them down or copy them from our code.
I will provide the source code for this project.
Now, a lot of viewport, let's slash another.
Mark, the last content, but equal and rights again.
Then.
And another sign right with.
Equals device with this will make our Web page responsive, and it will change depending on our device
with.
Next, what you need to do is initial scale.
The coma, right, initial skill and one point zero.
We don't want it to scale up or down.
Now the use of scalable equal, no.
Don't allow the use of to scare our national afterward, it will adjust to the browser of settings once
you are done.
You can simply close the tag that meet the target and the right slash and and another mark of all this.
OK.
I know that this is a long line.
This is basically the header page and well, I think meta tags to make sure that our old page will be
responsive.
I don't recommend writing it down.
Just copy and paste this code from our code.
Now the next step will be writing or setting the title of our page right BTR plus equal.
And you can't simply by Typekit.
This is the title Thug, and I totally again now between these two, you'll collide, the thug, get
control.
Yes, P32, this will be the title of our award page.
Now, add a splash on here to make sure that you have a new line now for styling the old beige.
We can add sees us, which is basically a way to color everything on your page and to control the background,
the width of the strokes and other things.
And we are going to add some see as a styling to our estimate will bear to make it look more beautiful.
And to do that, you'll have to choose the font type.
The margins and other stuff, if you are not familiar with this, just copy and paste what we have done
and do some edits and you will notice the difference now, right?
Are.
Plus equal.
And two signs their lifestyle, right, still inside that you can now choose the font family.
You kind of area or any other type.
And you cannot display.
To be in line, look.
Then you can't change the model.
I would add zero pixel to the model.
Now.
After the zero Brexit, you can add water now,
we can also send the text a line.
To be senator.
After you do all of this, just add a new line to make sure that you have moved to the next line to
keep writing your estimable court.
Now this is the CSA starting and this is the title of our page.
This is the header.
Now, let's move on.
Now.
Now you can simply follow our ride the following code.
These two lines, these two lines will help set the color, font and model around the tags.
That's one ish three and Pete tags, as you can see.
This will set the font size.
This will set the color for the Doug.
And this will set the model.
Same here.
This is for each one.
And this is for us.
Three.
You can simply copy and paste these lines from our code.
Some styling is applied to the buttons as well, with properties like cut off size, margin, etc. The
on and off button has a different background color.
We can suit different background color by using the active selector for buttons to ensure button click
effect.
Now I can drive down the whole code later bilateral, but I will paste it here and explain it to you.
Now, as you can see here now, our codes for the battle here.
We said the width and the background color.
For that button, and we are stating that won't have any borders, that color will be white.
The bad thing.
Would it be 13 Pixel, three pixel from left, right up and down that text declaration, there will
be no text decoration.
The font size will be 25.
And these are the other possibilities.
Sam, for the background color, you can see the tears and you can see the background color when active,
when the button is pressed for to see another color.
Same here for the off button, the background color will be this and when it's active, when someone
clicks it, it will change to this color.
This will have a nice effect on the button and will be more in the active button.
We can also star the heading.
You can simply fly pretty hard.
For each one, it's three.
These two lines.
Will change the heading of the old page.
You can simply change the text inside these H1 and H3 tags to anything that suits your application.
But in our case, I have written SB 30 to webserver and using Access Point mode.
Now to start the the batons and corresponding state to dynamically generate the batons and instead we
use if statements.
So depending upon the status of general purpose input output pins on or off button are displayed.
Now, let's try this if statement here, do you need to write if.
And you need to write else.
Now inside, though, if we are going to I led one state and one state.
Is.
On, we are going to ride this line.
Let me explain to you what's happening here now we are going to add to Sham Sham.
This this line let one state is on.
And we are going to choose this glass for baton while baton off.
And let one off and were right off inside the button.
So this line will create a new baton.
And.
The next case, if the lid state is off.
We are going to try the very same line, but sort of on.
We are going to write off.
Yes.
Sam for the second if statement, which has led to state we are going to have the very same lines.
Down here, as you can see it, toasted on led two states off and depending on the lid state, it will
add this line to our estimate called all this line for the lead one.
And for the total of this line or this line.
Now once we write all of this.
The next step will be returning the string, so I've end of this method.
We are going to close the tags.
OK, look, we're not sure that everything is set fault.
OK, now before we end this, we need to write BTR Plus equal.
And here we are going to close the Bundestag.
And slash on.
And then we are going to close the stem altered.
And then and.
After that, let's try to return, Peter, which would attend this thing when this method is called,
and once this thing is returned, it will be sent and displayed on our web browser.
Now that said, this is the whole process.
That's Jamal.
Coding can be done automatically.
You can simply go.
Now you can simply if you want to write your honesty and code, you can simply go here and.
Go there, Sam Al.5, editor All right, on Google online, a shame editor and using any of these editors,
you can simply write an extension cord easily.
Now you can start by lighting LED.
On and you can start adding different items.
Kind of clean the code as fancy.
And you can add a link or just click on add your hyperlink to this.
And once you are done with the recording process or writing your web page or how you want your page
or page to be, you can simply copy these lines.
But you need to add.
Once you cover these lines, I will show you how to do it.
It's also.
Once you are done and satisfied with your code, you can simply press these lines until you can do the
following right BTR plus equal for each of these lines.
And at the end and this.
And slash and.
A single column, you can't simply copy this list here, here and here.
At the beginning, we need this text sign.
That's it.
Then you can simply copy the squad and based it on your Padrino on a software.
This will be a much easier way for you to create your own page.
The buttons that you wanted to play, but there are a lot of methods that you can do this well that
are more visual editorials or software that can HDMI cords, but I prefer coating them and the Arduino
IEEE.
And this is my code.
Now what you need to do if you felt overwhelmed with ACM Alcalde, you can simply copy my code and base
it on yours, and you can adjust it depending on your needs.
Edit your home your page name using this line.
Let controller speak to all to edit the headers, added the coloring, the buttons add more buttons
depending on your needs.
You can't do anything you want with this code and the next lesson we are going to distort this code
and connect our Wi-Fi network and run the ISP server.
That's it for this lesson.
Thanks for watching.
This is Asha from educational engineering team.