How To Build Notes App Using HTML CSS and JavaScript

  Рет қаралды 145,151

GreatStack

GreatStack

Күн бұрын

Пікірлер: 175
@islamicfinance001
@islamicfinance001 11 ай бұрын
******* Attention ******** Using the "let" keyword instead of "const" in declaring 'notes' is making a huge difference in the final outcome. SO, make sure to use the let keyword in declaring the notes variable!
@pain7359
@pain7359 Жыл бұрын
why is my local storage not working ? I'm new to programming i don't know much :(
@Assassin52
@Assassin52 25 күн бұрын
For avoiding localstorage problem you have to call showNotes function at the end of js code....
@polimorphic13
@polimorphic13 Жыл бұрын
Thank you again! I've been the whole morning creating projects following your tutorials.
@GreatStackDev
@GreatStackDev Жыл бұрын
Fantastic!
@TaiwoRasidi-v5v
@TaiwoRasidi-v5v Ай бұрын
With this your video, i believe that very soon i will be proud of this journey
@batuhanbayr7613
@batuhanbayr7613 Жыл бұрын
best teacher for juniors 💙
@HunterLeRay
@HunterLeRay 2 ай бұрын
Going strong, watching one of these everyday. learning consistently as well!
@GreatStackDev
@GreatStackDev Ай бұрын
Glad to hear that. Keep coding.😊
@ashwinkumar5726
@ashwinkumar5726 Ай бұрын
Inside input box we can delete all data including delete img @@GreatStackDev
@franciskp9117
@franciskp9117 11 ай бұрын
One minor bug i've noticed is that we can delete the delete button from the webpage. If done, there is no way to delete that particular note.
@zombiear6147
@zombiear6147 11 ай бұрын
Yes I got that too, you can add the below code in the place of input section and the functionality of the backspace will be disabled when selecting all text : createBtn.addEventListener("click", () => { let inputBox = document.createElement("p"); let img = document.createElement("img"); inputBox.className = "input-box"; inputBox.setAttribute("contenteditable", "true"); img.src = "images/delete.png"; img.addEventListener("mousedown", (event) => { event.stopPropagation(); }); inputBox.addEventListener("keydown", (event) => { if (event.key === "Backspace" && isCaretAtStart(inputBox)) { event.preventDefault(); } }); notesContainer.appendChild(inputBox).appendChild(img); }); function isCaretAtStart(element) { const selection = window.getSelection(); return selection.rangeCount > 0 && selection.getRangeAt(0).startOffset === 0; }
@franciskp9117
@franciskp9117 11 ай бұрын
@@zombiear6147 thanks bro
@DAGBEAVER1995
@DAGBEAVER1995 11 ай бұрын
@@zombiear6147 It seems to me, that making IMG element a sibling element with relative position fixed the problem. Also appending input-box element with IMG element, and deleting both at the same time
@Child_club
@Child_club 10 ай бұрын
Instead of writing the lengthy code simply write contenteditable = "false" in IMG tag 😅
@svdden_strike
@svdden_strike 6 ай бұрын
@@Child_clubI didn’t work
@olawale11954
@olawale11954 Жыл бұрын
Thank you sir for the video. Have learnt alot from your videos
@islamicfinance001
@islamicfinance001 11 ай бұрын
@GreatStack, What is the necessity of the line 24 (i.e. notes = document.querySelectorAll(".input-box");) while the same thing is written in the line 3? Could you plz explain...
@bashcode6699
@bashcode6699 8 ай бұрын
because let can be accessed in block scope separately, it cannot be globally accessed.
@shubhamkapase07
@shubhamkapase07 8 ай бұрын
I see people getting error one important part is left in the code Check this you have to update Storage: createBtn.addEventListener("click", ()=>{ let inputBox = document.createElement("p"); let img = document.createElement("img"); inputBox.className = "input-box"; inputBox.setAttribute("contenteditable", "true"); img.src = "images/delete.png"; notesContainer.appendChild(inputBox).appendChild(img); updateStorage(); // Update storage when a new note is created })
@resh7521
@resh7521 5 ай бұрын
Thank you so much, you saved me
@dubhub4373
@dubhub4373 2 ай бұрын
Yes but content inside the p is getting deleted after refreshing the page
@flaviamelo5413
@flaviamelo5413 20 күн бұрын
Thank you so much!
@Efizzy_brendan
@Efizzy_brendan Жыл бұрын
You did not work on the edit button? Assuming there's error and needed corrections 🤷🏻‍♀️ Nice one boss
@vigneshnaik546
@vigneshnaik546 Жыл бұрын
Instead of create element in javascript we can use inseradjecent html this is easy way
@bilbyplaisir9413
@bilbyplaisir9413 Жыл бұрын
Hi I can say since I followed you my skills are now increasing I like your videos so much but I wanted you to make a video about a working payment gateway thank you 🙏🙏👋👋
@Dev_Ribeiro
@Dev_Ribeiro Жыл бұрын
Great for learning how to use local storage and other things, congratulations for the video
@Islamic_content92
@Islamic_content92 Жыл бұрын
Js tutorial banaye I want to learn JavaScript 👏👏👏👏jese basic js project wese hi js tutorial banaye
@himanshushekatkar1410
@himanshushekatkar1410 3 ай бұрын
how to deploy it as an application and responsive to operate from mobile device
@ayushmanlimbu
@ayushmanlimbu 9 ай бұрын
Quick Query. When we select the note the blinking line is not on the first line but its next to the delete icon. How to improve that?
@fahadullah1686
@fahadullah1686 3 ай бұрын
Did you fix this error
@saadlasharii
@saadlasharii 3 ай бұрын
same thoughts!
@bookreadershub1153
@bookreadershub1153 Жыл бұрын
better understanding of DOM manipulation
@ritiksharma185
@ritiksharma185 11 ай бұрын
i don't where i code wrong but i write code like you but everything is working but the local storage save notes code not working can you help me please?
@viczav
@viczav 7 ай бұрын
Did you fix it? Everything works perfectly but that feature, lol
@aurelgolemi3626
@aurelgolemi3626 6 ай бұрын
I have a similar problem to which one note stays permanent without the delete button
@KardanKaaal
@KardanKaaal 3 ай бұрын
check event listener of notes container wherr the 2nd else condition check whether e.target.tagName = "p"; or e.target.tagName="P";
@KardanKaaal
@KardanKaaal 3 ай бұрын
​@@aurelgolemi3626You deleted the delete button using backspace as it is inside P tag. The delete button should be outside of the P tag. You can check there is a cursor line if you mistakenly clicked there and press backspace then boom you delete your delete key. So better try to add that delete key outside of your oaragraph tag because we gave that paragraph tag to edit content using contenteditable=true. Try using your own idea to make that button stat outside of the p tag.
@ShubhamSharma-xn1tr
@ShubhamSharma-xn1tr 2 ай бұрын
@@KardanKaaal thanks a lot it resolved
@Islamic_wisdom535
@Islamic_wisdom535 Жыл бұрын
Thanks for the wonderful tutorial ❤ But when i completed this project , in the first notes box delete icon is not showing and i can't be able to remove first note box 😢😢 What to do now ?!
@stackunderflow6167
@stackunderflow6167 10 ай бұрын
this also my problem. I realized from another comment that contenteditable = true makes the delete button also delete-able. So for now just copy the button from another notes 😂😂
@francesco.paletta
@francesco.paletta 11 ай бұрын
Thank you for this tutorial! You explained that very well.
@animemangagirl3420
@animemangagirl3420 Жыл бұрын
Amazing tutorial^^ that helped a lot. But... How can I do a like and dislike function that actually works on all comment's boxes??? @o@
@Nebelkehlchen
@Nebelkehlchen Жыл бұрын
I am trying to think about it,. For my understanding: 1 Button for all notes together or 1 Button for each individual note?
@alimulla4098
@alimulla4098 Жыл бұрын
Bring more projects for beginners sir😊
@Hybridham86
@Hybridham86 Жыл бұрын
Hi there could you please provide the source code ? I'd like to compare as my local storage isn't working. Thank you.
@learncourses-hn2pb
@learncourses-hn2pb Жыл бұрын
Same issue
@josephchiedozie7626
@josephchiedozie7626 Жыл бұрын
same issue, local storage not working
@akashmondal3952
@akashmondal3952 4 ай бұрын
Same issue
@realnatureloveradda1811
@realnatureloveradda1811 9 ай бұрын
Sir why my local storage data not updating? Its deleted when i refresh the page.
@uggman9
@uggman9 5 ай бұрын
im getting the same error
@princeadigwe3764
@princeadigwe3764 3 ай бұрын
Here are my suggestions: 1. Make sure you call the showNotes() function. Maybe you only defined it and did not call it. In the video, he calls showNotes() function immediately after defining it 👉 23:36 2. Check your browser console to see if there are any error messages
@mdakhlasurrahmanrana7433
@mdakhlasurrahmanrana7433 Жыл бұрын
Hello Brother becous of i learn all new thing easily🙂If you don't mind make a video school management system in php plz🥺
@ed_badilla
@ed_badilla Жыл бұрын
what can we use instead of document.execCommand("insertLineBreak"); as execCommand is deprecated ??? thanks for you hard work!
@quinojuan2
@quinojuan2 11 ай бұрын
Question to ChatGPT or Bard. Your life will change
@AVTerrorX
@AVTerrorX Жыл бұрын
When i added updateStorage function in createBtn section, it started to store and save the data. Till before, it wasn't storing anyting. How is this possible?
@mohammadayasha9499
@mohammadayasha9499 11 ай бұрын
beacuse we have to create element in local storage so that it can respond to any click events on notesContainer , i think .....
@walidomar7758
@walidomar7758 4 ай бұрын
when i want to save contant without deleting everything it didn't save anything so i used this code and it works fine with me if anyone face the same problem. else if (e.target.tagName === "P") { notes = document.querySelectorAll(".input-box"); notes.forEach(nt => { nt.addEventListener("keyup", updateStorage); }); }
@Themescore
@Themescore Жыл бұрын
Make a video on permanent dark and light mode Website
@satisfyingvideos2.016
@satisfyingvideos2.016 9 ай бұрын
hi dear when we select all and enter backspace key the delete image that we put at the bottom also removed.....why?
@faizanfactsyt2212
@faizanfactsyt2212 2 ай бұрын
because the image is also in the container and when you say remove the p tag in p tag there is also put the image aoutside of the container
@abdiladifmohamud5957
@abdiladifmohamud5957 Жыл бұрын
Sir localstoarge is not working for me. How can I solve it? I have followed you step by step but am unsuccessful
@UchechukwuBenedict-s7s
@UchechukwuBenedict-s7s Жыл бұрын
Capitalize the “p” in row 28 …do it like this 👇🏼 else if(e.target.tagName === “P”)
@sarthakgupta124
@sarthakgupta124 Жыл бұрын
You would've used const notes while declaring notes at the start of the js code instead of let. use let and it will work
@Priya_SM-vx1mu
@Priya_SM-vx1mu Жыл бұрын
Why I couldn't store the data when I refresh the page. I have given the exact get, set Item still i couldn't store and show the data.
@ShimmerBodyCream
@ShimmerBodyCream Жыл бұрын
thank you! What a fantastic resource.
@DruvAbhi
@DruvAbhi 3 ай бұрын
why if i write someting on note thn i click enter for next line after that i click delete option it delets only single line
@monk_widom
@monk_widom Жыл бұрын
Sir I use button instead delete icon But when I write something it will start writing inside the buttons not I p tag ......solve this
@shagunsrivastava2753
@shagunsrivastava2753 5 ай бұрын
same problem, did you find the solution to it?
@zaidmalik1981
@zaidmalik1981 Ай бұрын
Sir I also used font-family Poppins but not seen in the results
@the_phoenix2768
@the_phoenix2768 Жыл бұрын
Hi i have followed what you did with the dustbin icon but after l place java script it disappears .can you help
@Practice_dsa_together
@Practice_dsa_together 4 ай бұрын
if i use getelementsbyclassname insttead of queryselectorall with the else if e.target.tagname==p condition it doesnt work. Why so
@bimokayoba
@bimokayoba Жыл бұрын
you can use this instead of create element addNoteBtn.addEventListener("click", () => { const newNoteHTML = ''; noteContainer.insertAdjacentHTML("beforeend", newNoteHTML); // After adding the new note, update the 'notes' NodeList notes = document.querySelectorAll(".input"); });
@Juwonempire
@Juwonempire Жыл бұрын
Hello Sir, everything works perfectly as it show in the tutorial, but after deleting the note, I'm unable to add new note until i remove the showNotes() function.
@ShivKumar-1717
@ShivKumar-1717 Жыл бұрын
same problem
@MyGamingEra
@MyGamingEra Жыл бұрын
Local storage note working sir🥲
@ltzZara
@ltzZara 4 ай бұрын
Same 😩😣😑
@lexgim
@lexgim 6 ай бұрын
if u use ctrl + a and delete u can delete the delete button lmaooo, how do i fix this?
@HakanLykiaDemir
@HakanLykiaDemir 5 ай бұрын
notesContainer.addEventListener('click',function(e){ if(e.target.tagName === 'IMG'){ e.target.parentElement.remove(); updateStorage() }else{ notes = document.querySelectorAll('.input-box') notes.forEach(nt =>{ nt.onkeyup = function(){ updateStorage(); } }) } nt.querySelector('img').setAttribute('contenteditable', 'false'); //this line }) If you add this line of code, you can make 'img' uneditable. it will not disappear when you do a Delete operation afterwards.
@lexgim
@lexgim 5 ай бұрын
@@HakanLykiaDemir i'll try this, either way I love you
@saadlasharii
@saadlasharii 3 ай бұрын
@@HakanLykiaDemir its not working for me even I exactly copied your code
@sweetdevil3647
@sweetdevil3647 Жыл бұрын
It's An Amazing Project Sir, I've Been Following You For The Few Days. And It Is Quite Good To Following You. Sir There Is Small Issue In This Nots Website That The Cursor Is Starting From The Image Tag Not From Te Starting, So How To Fix It ? And Also While Selecting All Text Using CTRL + A The All The Text With The Image Also Get Selected And While Pressing Back Space It's Also Deleting The Img
@ballskin
@ballskin Жыл бұрын
that's one big film title
@abdoulayebah2932
@abdoulayebah2932 Жыл бұрын
Where is the path to download the images for this project.
@GRDipankar-kv6pu
@GRDipankar-kv6pu 6 ай бұрын
Awesome
@GreatStackDev
@GreatStackDev 6 ай бұрын
Thank You! 😊
@rahulshendre7089
@rahulshendre7089 4 ай бұрын
done, thanks a lot
@utkarshpatidar167
@utkarshpatidar167 Жыл бұрын
if(localstorage issue){ You need to replace that else if condition You can write - else if (e.target.classList.contains("input-box")) }
@wafs1393
@wafs1393 Жыл бұрын
Can you send me your source code, mine still doesnt work
@utkarshpatidar167
@utkarshpatidar167 Жыл бұрын
@@wafs1393 ok After few hour i will send it to you.
@wafs1393
@wafs1393 Жыл бұрын
@@utkarshpatidar167 ok I managed to fix the issue
@pain7359
@pain7359 11 ай бұрын
hi im new to js and i am really confused can you show me your code on this ? i dont know where should i put this
@sourav5736
@sourav5736 6 ай бұрын
Thanks a lot broooo❤
@emmanuelimwa2905
@emmanuelimwa2905 Жыл бұрын
would you please provide the link for downloading images.
@jayprakashyadab
@jayprakashyadab 6 ай бұрын
how to add the functioloty drag and drop of notes ?
@harshitvarshney3993
@harshitvarshney3993 4 ай бұрын
is there a method to contain the notes a person writes inside the notes container coz its going out of the container box after reaching the end ?
@princeadigwe3764
@princeadigwe3764 3 ай бұрын
Set this CSS property for the .input-box class, directly under the min-height property 👇 height: auto;
@incognito_user12
@incognito_user12 3 ай бұрын
Your 20sec unstoppable ad traumatizing me 🥲
@anishhazra2204
@anishhazra2204 Жыл бұрын
sir react js ka bhi bano video please
@purbayanghosh9950
@purbayanghosh9950 10 ай бұрын
Using contenteditable, true makes the delete image deletable. Problem is there in the code
@stackunderflow6167
@stackunderflow6167 10 ай бұрын
ah, you are right 😂 I'm wondering for minutes why my delete button is not showing. For now, I simply copy the delete button from another notes 😅😅 but how to actually solve it?
@rakeshpandey6768
@rakeshpandey6768 Жыл бұрын
There is a problem with content editable as if user select all and delete the content in browser, delete button also gets deleted 😂😂
@salehabdullah-lt7fk
@salehabdullah-lt7fk Жыл бұрын
I noticed the same thing, do you know the solution to prevent this?
@17-4-4
@17-4-4 Жыл бұрын
did u find it?@@salehabdullah-lt7fk
@kaleb823
@kaleb823 Жыл бұрын
can you help me Why the delete image is deleted by cursor.
@muhammadanas5698
@muhammadanas5698 2 ай бұрын
My function showNotes does not work when i refresh the page all notes are delete from the page someone help me to fix the problem 😔😔
@AN-oq6fn
@AN-oq6fn Ай бұрын
In input box cursor is not coming please help
@charonissimo7683
@charonissimo7683 5 ай бұрын
Can somebody explain me, why the function preventDefault() is using? The Key "Enter worrks anyway! Also why preventing its function and writing the same function?
@saadlasharii
@saadlasharii 3 ай бұрын
same thoughts!
@TamirPhillips
@TamirPhillips Жыл бұрын
I don't see the images link in the description
@ToluwalopeAmojo
@ToluwalopeAmojo Жыл бұрын
I can't find the link either.
@electroboyy2164
@electroboyy2164 5 ай бұрын
can someone help me iam facing problem in this code iam unable to write or click on notes help
@AN-oq6fn
@AN-oq6fn Ай бұрын
Same did u resolve this
@arjuno7058
@arjuno7058 Жыл бұрын
I followed all the instructions in the video everything works fine, but when I reload the browser the note disappear. And when I checked on the console it shows no errors. The storage doesn't work
@abhishekpandey9762
@abhishekpandey9762 Жыл бұрын
SAME PROBLEM bro
@bigneism
@bigneism Жыл бұрын
the p in else if(e.target.tagName === 'p') must be capitalized
@bigneism
@bigneism Жыл бұрын
@@abhishekpandey9762 the p in else if(e.target.tagName === 'p') must be capitalized
@arjuno7058
@arjuno7058 Жыл бұрын
@@bigneism WOW...thanks a lot. It works 😃
@bigneism
@bigneism Жыл бұрын
@@arjuno7058 happy i could help
@dadi_vlogs3254
@dadi_vlogs3254 Жыл бұрын
Thanks Bro.
@amiralisalari6863
@amiralisalari6863 4 ай бұрын
Thanks❤
@TechWithVaibhavbelekar
@TechWithVaibhavbelekar Жыл бұрын
google drive not work properly. Image download problem.
@syedsalmanali7359
@syedsalmanali7359 Жыл бұрын
there is held error in javascript 1st 5th line please tell me
@priyanshushekhar7548
@priyanshushekhar7548 10 ай бұрын
Why my local storage function not working. I tried so many times but my notes are not store in storage . Can you help me.
@pottaarunkumar4040
@pottaarunkumar4040 10 ай бұрын
Same for me also Can anyone please help me
@amalilmu3235
@amalilmu3235 Жыл бұрын
it's not working at my pc.
@vedantzanjad
@vedantzanjad Жыл бұрын
Thank You
@Kim-d2u
@Kim-d2u Жыл бұрын
I have a problem of addEventListener at 5th line of js. It says Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') I've googled it but couldn't find any solutions. Can anyone help me with this
@quinojuan2
@quinojuan2 11 ай бұрын
share your code please
@ಜ್ಞಾನಭಂಡಾರ-ಲ7ಟ
@ಜ್ಞಾನಭಂಡಾರ-ಲ7ಟ Жыл бұрын
Nice
@mdabu3331
@mdabu3331 Жыл бұрын
Nicee sir❤❤
@purplestar-t7n
@purplestar-t7n 10 ай бұрын
what if the images are not showing
@luckydotpro5533
@luckydotpro5533 Жыл бұрын
Show as about a video play using js
@shifteditz06
@shifteditz06 3 ай бұрын
Hey, can anyone help me. My text is not getting saved😭
@Apoorva_dhotre
@Apoorva_dhotre 5 ай бұрын
Click button is not working sir
@abhisaragarwal9084
@abhisaragarwal9084 Жыл бұрын
Hello sir I want to know how can I make a project section for my portfolio website I need a good card design where it would be responsive and the UI should also not be that bad
@LiflaMary
@LiflaMary Ай бұрын
if i reload the page datas are deleted.what is the reason?
@Nishav7Editz
@Nishav7Editz 8 күн бұрын
U need to call shownotes( ) function at the end of the code
@Dibyendu-dev
@Dibyendu-dev Жыл бұрын
nice
@RonalRomeroVergel
@RonalRomeroVergel 5 ай бұрын
i refresh and disappear :'v
@namangyan7647
@namangyan7647 11 ай бұрын
this application does not work on android?
@boluwatifedavid-q2g
@boluwatifedavid-q2g Жыл бұрын
mine isn't working when i click on it
@itspankajfun8857
@itspankajfun8857 7 ай бұрын
not working this java code ples
@ManasRanjanSahu
@ManasRanjanSahu 5 ай бұрын
Localstorage not working
@srinithi9510
@srinithi9510 10 ай бұрын
in notes app how to give a link for map
@SiwaBayek
@SiwaBayek Жыл бұрын
pics folder is no available
@hiharajpoot314
@hiharajpoot314 7 ай бұрын
mera create note open hi nhi ho rha why??
@coding-ka-badshah
@coding-ka-badshah Жыл бұрын
Make a full animated tekit booking website
@coding-ka-badshah
@coding-ka-badshah Жыл бұрын
Make a full business marketing website
@CodeWithRingo
@CodeWithRingo Жыл бұрын
mine aint work
@web_seriesatoz
@web_seriesatoz Жыл бұрын
Can you help me sir
@mitamodak495
@mitamodak495 9 ай бұрын
You did not define the edit button
@deepdas7674
@deepdas7674 8 ай бұрын
Do it yourself just targeting the element and change the attributes of content editable that's it
@shubhamrathod9249
@shubhamrathod9249 6 ай бұрын
17:08
@yangus2485
@yangus2485 10 ай бұрын
does the notes remains if i close and re-open the live server?
@amrfathi5135
@amrfathi5135 Жыл бұрын
Can i make it Exe
@technicalg6808
@technicalg6808 2 ай бұрын
11:20
@esy2bear970
@esy2bear970 Жыл бұрын
18:33 i have problem that after i delete one note , i cant add new note anymore
@anubratamallick5502
@anubratamallick5502 10 ай бұрын
10:14
@web_seriesatoz
@web_seriesatoz Жыл бұрын
Hell sir
@surafelfikadu4331
@surafelfikadu4331 Ай бұрын
... 💚💛❤🙏
How To Build Age Calculator App Using HTML CSS And JavaScript
23:26
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 13 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 21 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 27 МЛН
Ollama.codellama + jMonkeyEngine SDK v3.3.0-stable
0:31
E. Jarrazduwag
Рет қаралды 4
Build a Notes App with HTML CSS JavaScript (BEGINNER PROJECT)
28:22
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,8 МЛН
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 471 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,8 МЛН
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Coding2GO
Рет қаралды 250 М.