MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / checkNoteEmpty

Function checkNoteEmpty

assets/js/note-app.js:209–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207});
208
209let checkNoteEmpty = () => {
210 let textVal = addTxt.value.toLowerCase();
211 let titleVal = addTitle.value.toLowerCase();
212
213 if (textVal != null && titleVal != null && textVal.trim().length > 0 && titleVal.trim().length > 0) {
214 errorAlertDiv.innerHTML = ``;
215 }
216}
217
218const showFavs = document.getElementById("fav-btn");
219let showing_favs = false;

Callers 1

note-app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected