When I try translate(-50%, -50%) it does not work. This brings it somehwat in the middle: Do you know why? i{ font-size: 50px; position: absolute; cursor: pointer; top: 50%; bottom: 50%; transform: translate(1500%, 50%); }
hy dear its not working ,it show error in js and when i click to switch in drak mode no js apply even i follow all your step and source code but its not working. tell me what i should i do now
So quick and straight to the point and very well done video. Thank you!
You make JavaScript easy to understand and create projects
Awesome explanation bro
Glad you liked it
Hi, thank you fOr this video. Is there a way to integrate this to Wordpress?
Thank you😊
Thanks for sharing!, i really help me in my project
Most welcome!
awesome and useful, thank you!! it really helped me in my project
Glad it helped!
Brilliant! Thank you.
My pleasure, thanks too!!
Thanks my brother
My pleasure!!
Tell me buddy, what theme do you have installed? I like the color of the syntax in your javascript. Write down what plugin?
Hi bro, is one dark pro theme.
Thank you!
Good way of explaining.
New subscriber
Thanks for the sub!
pls put link you get in bootstrap because I can't find it.Thank You
Thanks a bunch!
Very helpful.
My pleasure, glad to hear that is helpful!
It's helped ❤
The code ran except of the background colour which you mentioned.Can you help by saying what might went wrong?
When I try translate(-50%, -50%) it does not work. This brings it somehwat in the middle: Do you know why?
i{
font-size: 50px;
position: absolute;
cursor: pointer;
top: 50%;
bottom: 50%;
transform: translate(1500%, 50%);
}
good content like always ! ✨👑
Thank you 🙌
thank you
This is good for two elements website. If you wanna use it for complex site it's useless.
help me when i toogle to dark mode my body part text are all white but navbar text are in black color so i cant see them how to fix that
Hi bro, what's the error message ??
@@CodeCreativeYT when i turn dark mode my navbar brand and link are also black and i cannot see them in dark mode
Thanks I like your content sir
Thanks and welcome
How do we implement the local storage here? Thanks
const DarkMode = document.querySelector(".toggle");
const enabledarkmode = ()=>{
document.body.classList.add("darkmode");
localStorage.setItem("darkmode","active");
};
const disabledarkmode = () => {
document.body.classList.remove("darkmode");
localStorage.setItem("darkmode",null);
};
localStorage.getItem("darkmode") === "active" ? enabledarkmode() : "";
DarkMode.addEventListener("click",()=>{
localStorage.getItem("darkmode") === "active" ? disabledarkmode() : enabledarkmode();
});
thank you bro
I love yoy ❤🔥
Is it possible in android?
good one
thanks
You're welcome!
good job
great
How do I make it permanent change? I mean I want the change should be saved and when I refresh or reopen the page it should open with the new theme.
You can use localstorage
@@oxy-5313 Do you have any tutorial on how to use localstorage for this purpose?
Thanks
welcome bro
Its showing cannot read property of toggle
sir can i download your JavaScript book, in your github?
Yes, you can
is it working
❤❤
Do we have to always toggle to get dark mode?
Ya
hy dear its not working ,it show error in js and when i click to switch in drak mode no js apply even i follow all your step and source code but its not working. tell me what i should i do now
Hi, bro. ok when you like your javascript file from html
what you have to do is like this below
this way they will load the js first then next html, ok
in my code i used src to change image but the code is note working
please check the correct path
Where bi moon img?
JS looks complicated until you explain each line of code. 🙌🏼
Create a VS Code Extension of you Pseudo coding…
written same code but its not working i tried for the second time but no
Hi, can you show me your error message please?
When reload it returns to light mode🥲
Jarvis ka source code de do bhai please
help me ,pleace
Hi, bro. yes I'm happy to help
help me, it doesn't work 🤦🏾♂
Hi, what is the error message you got?
He
😓😓wtf
It really work on all break point..?? 🥲🥲