Skip to content

Commit

Permalink
Merge pull request #3 from manishkumar-hub/main
Browse files Browse the repository at this point in the history
Updated note component
  • Loading branch information
oops-aman committed Oct 26, 2022
2 parents 2e425e9 + 83c2168 commit 4db5751
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions JS/index.js
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 4db5751

Please sign in to comment.