Skip to content

Commit

Permalink
Updated note component
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkumar-hub committed Oct 25, 2022
1 parent 8777ab0 commit 83c2168
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions JS/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ function showNotes(){
let html = "";
notesObj.forEach(function(element,index){
html += `
<div class="noteCard my-2 mx-2 card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">${element.Title}</h5>
<p class="card-text">${element.Text}</p>
<button id="${index}"onclick="deleteNote(this.id)" class="btn btn-primary">Delete</button>
</div>
</div>`;
<div class="noteCard my-2 mx-2 card shadow p-3 mb-5 bg-white rounded" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">${element.Title}</h5>
<p class="card-text">${element.Text}</p>
<button id="${index}"onclick="deleteNote(this.id)" class="btn btn-outline-danger">Delete</button>
</div>
</div>`;
});
let notesElm = document.getElementById("notes");
if(notesObj.length != 0){
Expand Down

0 comments on commit 83c2168

Please sign in to comment.