You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<labelclass="custom-control-label" for="storenote">Save Notes to Local Storage</label>
77
+
<labelclass="custom-control-label" for="storenote">Save Notes to Local Storage <span>(will be preserved even if you restart your browser)</span></label>
If you proceed further then your whole local storage will be cleared and you'll lost all note saved in your browser local storage. Think twice before proceeding.
notes_count=document.querySelectorAll('.note').length;// returns total created notes
@@ -95,8 +128,10 @@ function add_note(title_el,data_el)
95
128
</div>`;
96
129
97
130
document.getElementById(`${notes_count+1}`).innerHTML=html;//adding the html for the proper view
131
+
alert_shower("success","Note Added Succesfully")
98
132
99
133
}
134
+
//////////////////////the delete function. This will remove note from dom and also from localstorage if the note is previously saved in local storage ////////////////////
100
135
functionnotedelete(id,title)
101
136
{
102
137
@@ -119,21 +154,50 @@ function notedelete(id,title)
0 commit comments