Skip to content

Commit

Permalink
added brand name
Browse files Browse the repository at this point in the history
  • Loading branch information
samiulislam09 committed Mar 1, 2022
1 parent 36480cb commit 71f2a8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const displayPhone = (data) => {
<div class="card g-2" style="width: 95%;">
<img src="${item.image}" class="card-img-top" alt="${item.brand} mobile image">
<div class="card-body">
<h5 class="card-title">${item.brand}</h5>
<p class="card-text">${item.phone_name}</p>
<h5 class="card-title">Brand name: ${item.brand}</h5>
<p class="card-text">Model: ${item.phone_name}</p>
<button class="btn btn-primary" id = "show-more-btn" onclick="loadDetail('${item.slug}')">Specification</button>
</div>
</div>
Expand All @@ -68,8 +68,6 @@ const loadDetail = (id) => {
};
// phone spec detail section
const specDetails = (data) => {
console.log(data.brand);
console.log(data.others.GPS);
const featureSection = document.getElementById('feature');
featureSection.style.display = 'block'
const div = document.createElement('div');
Expand Down

0 comments on commit 71f2a8b

Please sign in to comment.