Hey, everyone, in this video, we need to adjust the ear in our copyright message because as you can
see, this is a little outdated.
So this happens when you use a static ear.
So if you go to the HTML of my website, you can just go all the way to the bottom.
You will see that I just typed in the year.
So now I'm recording this video into 2020.
So this is outdated.
So if you do it like this, you have to go back here every year and update it.
And this is not the best way to do it.
So the best way to do it is just erasing this here and here.
We have an alignment with the idea of current ear.
So we are going to use JavaScript to make it dynamic.
So I'm just going to save this.
If I refresh the page now, you will see that now the year is gone.
So what we need to do is when we load the page.
Let me just zoom in again.
So here's the code for the footer, all we need to do is just select that element so that element has
the ID of current IR.
So we were just sat there in our e-mail for a new date object.
And as you know, this is going to return a lot of information, we don't want all that information,
we just want the year.
So there's a method that we can apply, which is the get.
Full year, so that's pretty much it.
Now, if we save this and refresh the page, we can see that now we have the year so we don't have to
worry about this anymore.
Every year this is going to be updated by itself and this will always be correct.
So that was all for this first project.
Let's do a quick recap of what we've done here.
So we started with the hamburger menu.
So if we go to the mobile size.
So there's this icon that's very common in many websites online.
You probably have seen this already, so when we click this, we can see the mobile menu, we can close
it.
So this is pretty cool.
We also have this element that's also very common in Web design, which is called an accordion.
So we can click on elements and see the content inside.
We also have a slider here, which is also something very common in Web design.
This has nothing to do with JavaScript, but I just wanted to show you how to implement a simple contact
form in your website so this can be useful to use it in your own site or just offering this to your
client.
And the last thing we did was pretty simple, was just making this IR dynamic.
So this was just to give you an opportunity to work on a real website, which is different from just
interacting with the course material like we've been doing.
So I hope you like that.
And we still have a lot more to learn.
So I'll see you in the next video.