Skip to content

Commit

Permalink
fixed search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
samiulislam09 committed Mar 2, 2022
1 parent 8a7ef36 commit 73ebc6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ const displayPhone = (data) => {
} else {
const cards = document.getElementById('cards');
cards.textContent = "";
document.getElementById('name-input').value = '';
document.getElementById('feature').textContent = '';
const allData = data.data;
const firstData = allData.slice(0, 20);
if (allData.length > 20) {
const showMore = document.getElementById('show-more');
showMore.textContent = '';
div = document.createElement('div');
div.classList.add('col-12');
div.innerHTML = `<button class="btn btn-primary" onclick="showRemainingData()">Show more</button>`;
Expand Down

0 comments on commit 73ebc6b

Please sign in to comment.