Welcome back.
In this lecture, we are going to do we're going to show the notification here when we had full or notification,
when we do some exercise, that is our goal for the day because we already have done it.
Something similar here is going to be pretty much the same.
But we're going to add a couple of more codes, a couple of more lines here.
And yeah, we're not going to touch this portable.
We are working eve else.
So when I add something, some calories, I just want that notification to be there.
And by the way, if you go here, you will see that in the Betty and Battlegroup, this one.
And there are three buttons this.
So this is the battlegroup.
So this is adding this is for food.
This is for a slight opening slider for food and opening's lighter for exercise.
So I have that battlegroup there.
But I do have the button there.
I do have these spane food text and that is giving me this right.
So, you know, I also have commented this circusy uncommented, it will be there.
And if I uncommented, it will go here.
So what I want after each and every insertion of new calories, regardless if it's for exercise or for
through food, we need to get use or some sort of notification.
Right.
I'm just going to I'm just going to do this.
And what I'm going to do, I'm just going to copy this, including these eyeglass.
Right.
This is for food.
So I'm saving that one and I'm going here.
I'm going to see create new variable notification.
And in this variable, I'm going to use it in in two in the two places in this elusive and in this ear.
So, you know the drill.
We're going to use that notification and that will be equal to and we're going to close it here.
Right.
Same as we did with the Marka.
Same as we did with H0 markup before, if I need to put it in one line.
So that is pretty much it.
And we need to add it to a couple of tricks here.
And instead of multiplication should be notification.
Right.
So I'm just going to copy this one here.
I'm just going to grab it.
Sorry for the exercise.
So I'm just going to go from here.
I'm going to copy even this I classifier.
Right.
That's this class, you know, grab before the food class.
So I'm just going to put it here, get rid of everything, get rid of the comments because we want that
to be visible now when we put it back.
Right.
So I want to ask you, how are you doing?
How are you going with the lecture so far?
All right.
I know it can be challenging, but don't worry, everything at the end it will be clear.
So that's if I have done those, too.
So what I need now, the last word is to grab this.
I'm just going to grab this where it is.
We need to grab the button.
Right.
And in that button, we're going to insert it the entire thing.
So we have this button food media and we have this exercise medium so we can grab those two.
So what I'm going to do, I'm just going to put it here just like that.
I'm going to say
we need to use some more meaningful.
So I'm going to use food medium.
And because we use classes so far, let me use a class for this one as well.
Right.
And the other one will be exercise we get.
Right.
That will be for the other one.
Now let's find the classes.
So what we need is actually where is this apple?
Right.
So we need Apple, this class, you can do with the ID, but I'm going to target the class because this
class or fire an apple, they're just identical, but they are four therefore different buttons.
Right.
I'm just going to call copy this and put it here.
And we are done, ladies and gentlemen.
So what we need to do is I need to select that right.
Let's make it nice or document got query selector and I'm going to use the HTML class names, dot food.
It's going to be food media.
Right.
So I did select this part now.
So the selection and I need to place the entire notification there.
So how are we going to do that?
It's super simple, right?
We're going to use the inner HTML and I'm going to we're going to put the notification there and I'm
going to copy this to put it here.
I'm going to say instead of food button, we need to target this one.
And I have one problem here.
This exercise library yesterday when I just did the lecture, you should do it like this exercise slider
just to keep the entire Syntex same exercise slider and change it here, because this is something else,
right?
You didn't come from there, but it was my mistake.
I just now I fix it.
So I did target that one.
I put the notification and when we go for the burn, it will be a different notification.
When we go for the food, it will be a different notification.
Right.
So let's test it out, see what's happening, though, here.
And I say fool.
One hundred and fifty calories hit.
Enter in.
Here you go.
You do have you do have now that notification there.
Let's check for the exercise and say run one.
It's not possible to burn those calories and we do have these notification, but what you see here,
it's a big problem.
It's not a big problem.
It's a problem because this one is still there.
So I don't know which is the last thing.
So if I go back to, for example, if I put another food, this will be still active there.
Right.
So what is the solution?
So the easy solution is here.
When I'm doing this, I want to select this bad boy here again.
So when I'm in adding where I add calories, I want to select the exercise, begin in.
What I basically want to do is just to put this sorry, this one here.
I just want to put that one that was before without the class circle container that is pulsating.
Right.
So where when I was curious.
So instead of putting a notification there, I'm just going to grab all of it.
And the same so here I'm just going to grab this one and I'm going to put it here, so food be enraged
GML.
And for the food media, some reversing it, right, just copying this part.
Yeah, yeah, that's pretty much it.
Make sure that you copy the eyeglasses.
All right.
So this is basically I'm setting after I put the notification, I'm resetting the other guy.
Right.
If I put notification here, if this was active before I'm resetting to this icon and this text here
and the other one I'm resetting.
I'm just putting the dot.
And if I had for exercise, I'm putting the thought here and I'm resetting this one.
That is what is happening.
But too much docking.
Let's see in action.
So I'm just going to say pull one hundred and fifty edit.
Good.
I'm going to choose exercise exercise.
Same one hundred fifty.
Good.
Now if I go back to food Pam Burger one, two, five, four, five.
Good.
So if I go back here I do have two items.
Right.
So if I want to add another one for four or exercise, let's run.
Right.
So how cool is that.
It's working.
It's working by way right now.
Next lecture will be super amazing.
We need to find a way how we can just adjust these numbers here, because these numbers should come
from whatever we input into food should do there.
And it means plus minus means whatever we have in caffeine, burn calories and mathematic, eliminate
some simple formulas here, percentage lead or maybe in that is pretty much it and that is a little
bit challenging.
I want you to stay focused.
You drink your favorite juice or coffee, whatever you're doing, just stay positive and just learn
as much as you can.
Just soak all this information because you're going to need it later in your life.
Because I know if you watching my course, then then you are not JavaScript expert and you want to learn.
If you don't want to hear my voice, you can mute my voice.
You can put it on a two times speed or three times speed and whatever you do, whatever makes you happy,
just do it right.
And I just wanted to give you as much as information as I can can possibly collect.
And believe me, this is not something that I'm making too much money off, but this is something that
I'm doing because I want to communicate with people I want.
This is my way to communicate with thousands of people.
And I am happy because I'm doing this.
And, yeah, that's that's my goal.
And yeah, in future, I'm not saying that I'm not going to make money.
I will.
But the point is that I'm trying to make courses as much as good as they can be because I want to help
people.
I want to be able to engage with the content.
I don't want if you put a three star reviews or if you put a bad comment, that's not going to make
me happy and that's not making you happy as well.
Maybe that means that you waste your time here with me and yeah, if any course not just mine.
If you are like two, if you're giving two or three star review, don't waste your time, buddy.
Just get your money back and go to the next one.
Because how to say no one is a perfect teacher.
No one is a perfect tutor, no one is perfect in anything.
So you need to find your balance.
You need to find what you want from your from discourse.
Just read the description.
I told many students what one student gave me five star review next day.
He changed it to one.
The other day she changed it to three.
And I said, OK, what are you doing, buddy?
And he said this cause you're jumping too much.
That's my style of teaching a jump.
Too much.
Yeah, probably.
But that is my style of teaching.
And if you don't like it, just when you see first couple of lecture, I'm the same guy, dear.
I'm the same guy here after fifty lectures.
So there's no point of writing the communists.
No point wasting your time.
Just go back, get your money or whatever you do.
Don't waste your time.
Time is precious guys.
You need to learn the time.
You need to eliminate all those time wasters, eliminate your friends, your best friends, eliminate
your bad courses, eliminate whatever you do.
Just don't waste your time.
Don't waste your money, invest your time in something else.
And if you say I don't have time to listen to your lectures, then that's not true.
Right?
We have twenty four hours.
How many minutes are there?
How many hours?
Twenty four hours you need.
You will have time to do at least five or six lectures a day or do minimal.
Right.
So no, don't give me the excuse that you don't have time in.
The lectures are long yet before joining a chorus.
It's your responsibility to read the course.
My responsibility is to provide what I have put as a core in, of course, Gurukul.
If I don't, that means that's my failure, right?
If the course is not satisfy your needs again is my failure.
But you should be reading what you're getting into.
Yeah.
So this is something that I've experienced as a teacher here.
And you should know as a student, because giving me back three or four or one star review is not going
to make my life miserable.
It's you.
You are making your life miserable because you just waste your time.
And that's that's something I don't want you to do.
I want you to learn something from my courses and then apply this knowledge somewhere else.
Right.
So that's it about my motivational speech.
I didn't plan to say all of this, but I just want you to stay focused and do whatever you think you
feel as if the course is a waste of time.
And, of course, just move on and move on and get something, get something for you that suits your
needs.
Right.
For example, in my university, I wouldn't be able to understand all of my teachers.
I wouldn't be able to listen to follow my teachers.
But I did.
I stay there.
I finished the courses, I finished the Masters.
I did that, but I didn't learn same as from every teacher, because every teacher has a different style,
different approach and stuff like that.
But that was it.
I had to do it.
And if you don't have to do it, just don't do it because you do have a choice here.
You do have a lot of courses here, right?
So that's pretty much it.
And I hope you I will see you in the next one.