From fcd5923e93067fa0173d121aaefe012824adfb6c Mon Sep 17 00:00:00 2001 From: samiulislam09 Date: Wed, 2 Mar 2022 13:59:37 +0600 Subject: [PATCH] fixed item not found message --- js/script.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/js/script.js b/js/script.js index 1189987..c0ad9a8 100644 --- a/js/script.js +++ b/js/script.js @@ -45,8 +45,8 @@ const displayPhone = (data) => {
${item.brand} mobile image
-
Brand name: ${item.brand}
-

Model: ${item.phone_name}

+

Model: ${item.phone_name}

+
Brand: ${item.brand}
@@ -68,6 +68,7 @@ const loadDetail = (id) => { }; // phone spec detail section const specDetails = (data) => { + console.log(data); const featureSection = document.getElementById('feature'); featureSection.style.display = 'block' const div = document.createElement('div'); @@ -92,12 +93,12 @@ const specDetails = (data) => {

Memory: ${data.mainFeatures.memory}

Sensors: ${data.mainFeatures.sensors}

Others

-

WLAN: ${data.others.WLAN ? data.others.WLAN:"not available"}

-

Bluetooth: ${data.others.Bluetooth?data.others.Bluetooth:"Not avaolable"}

-

GPS: ${data.others.GPS?data.others.GPS:"Not available"}

-

NFC: ${data.others.NFC ? data.others.NFC:"not availbale"}

-

Radio: ${data.others.Radio ? data.others.Radio:"not available"}

-

USB: ${data.others.USB ? data.others.USB:"not available"}

+

WLAN: ${data.others?.WLAN ? data.others.WLAN:"not available"}

+

Bluetooth: ${data.others?.Bluetooth?data.others.Bluetooth:"Not avaolable"}

+

GPS: ${data.others?.GPS?data.others.GPS:"Not available"}

+

NFC: ${data.others?.NFC ? data.others.NFC:"not availbale"}

+

Radio: ${data.others?.Radio ? data.others.Radio:"not available"}

+

USB: ${data.others?.USB ? data.others.USB:"not available"}

Release Date: ${data.releaseDate?data.releaseDate : 'not available'}