- QR CODES
-
PRODUCT FREE
QR Code Generator
Create custom QR Codes for every use case
-
Dynamic QR Code Generator
-
Choosing the Best QR Code Generator
-
QR Code Tracking
-
QR Code API
-
How To Create a QR Code
-
GET STARTED
Select a template to continue
-
- DIGITAL BUSINESS CARDS
-
PRODUCT POPULAR
Digital Business Cards
Measure your networking with digital business cards
-
All About Digital Business Cards
-
Apple Wallet Business Cards
-
Physical Vs Digital Business Cards
-
Choosing The Best Digital Business Card Solution
-
How To Create a Digital Business Card
-
GET STARTED
Select a template to continue
-
- SOLUTIONS
- LEARN
-
Blog
Get the latest articles on QR Codes & Digital Business Cards.
QR Code Customization
Learn how to customize different elements of the QR Code
QR Code Buying Guide
Features to look out for, in your QR Code pricing plan
QR Code Analytics
QR Code analytics and use cases
Dynamic QR Code
What it is, how to create, and track
Digital Business Card Buying Guide
Feature based plans, for your business card
-
A powerful and easy solution for our business.
Uniqode’s solution has made our lives a lot easier.
MARCELO YANEZ
PRODUCT MANAGER,
NESTLE
Read all customer stories
-
|
- QR CODES QR CODES
PRODUCT FREE
QR Code Generator
Create custom QR Codes for every use case
Dynamic QR Code Generator
Choosing the Best QR Code Generator
QR Code Tracking
QR Code API
How To Create a QR Code
GET STARTED
Select a template to continue
- DIGITAL BUSINESS CARDS DIGITAL BUSINESS CARDS
PRODUCT POPULAR
Digital Business Cards
Measure your networking with digital business cards
All About Digital Business Cards
Apple Wallet Business Cards
Physical Vs Digital Business Cards
Choosing the Best Digital Business Card Solution
How To Create a Digital Business Card
GET STARTED
Select a template to continue
- SOLUTION SOLUTION
- LEARN LEARN
Blog
Get the latest articles on QR Codes & Digital Business Cards.
QR Code Customization
Learn how to customize different elements of the QR Code
QR Code Buying Guide
Features to look out for, in your QR Code pricing plan
QR Code Analytics
QR Code analytics and use cases
Dynamic QR Code
What it is, how to create, and track
Digital Business Card Buying Guide
Feature based plans, for your business card
A powerful and easy solution for our business.
Uniqode's solution has made our lives a lot easier.
MARCELO YANEZ
PRODUCT MANAGER,
NESTLE
Read all customer stories
-
PRICING
PRICING
-
DEMO
DEMO
×
Apoorva Hegde
Last Updated: August 19, 2024
In 2017, Apple made QR Code scanning native from its newly launched iOS 11 camera app. Ever since then, scanning a QR Code on an iPhone has become a muscle memory for most of us, just like firing a flashlight or scrolling the Instagram feed.
The best part is that the QR Code scanning experience has improved over the years, so you must know all about it.
Whether you want a way to scan a QR Code on your iPhone gallery or add passes and deals to your Apple Wallet, we’ve got you covered.
Table of Contents
- What devices use iOS?
- How to scan a QR Code with an iPhone, iPad, or iPod touch
- a. Camera
- b. Control Center
- c. Chrome
- d. Google Lens
- e. Wallet app
- How to enable QR Code scanning on my iPhone and iPad
- Apps you didn’t know could scan QR Codes on your iPhone and iPad
- Final thoughts
- FAQs
What devices use iOS?
iOS is an operating system developed by Apple Inc. It is the world’s second most popular mobile operating system (OS) and is proprietary to the Apple ecosystem. While initially launched for all of Apple’s mobile devices—iPhone, iPad, and iPod series—iOS was later restricted to the iPhone lineup since the 13th generation. Currently, the only devices that run on iOS include the iPhone and iPod (until 7th gen) lineup.
How to scan a QR Code with an iPhone, iPad, or iPod touch
1. Scan QR Code on iPhone,iPad, or iPod touch with your camera
To scan a QR Code on your iPhone, iPad, or iPod touch using the native camera app, follow these steps –
- Launch the Camera
- Point it at a QR Code to scan
- Click on the notification banner at the top of the screen – this is the information stored in the QR Code
- If the QR Code contains any actionable data (phone number, email address, or an audio clip) tap on the banner to trigger the action or pull down the banner to reveal more information before you tap on it
2. Scan QR Code on iPhone via Control Center
Setting up the QR Code scanner on iPhone in the Control Center is far more convenient than using the camera every time. To add the built-in QR Code reader to the Control Center –
- Go to Settings on your iPhone
- Click on Control Center
- Tap on Customize Controls
- Under the More Controls tab, press on the ‘+’ next to the QR Code reader
- Move the QR Code reader to any location you want on the Control Center using the hamburger icon next to it
To scan a QR Code on your iPhone from the Control Center,
- Click on the QR Code reader icon in the Control Center
- Point the camera near a QR Code to scan
The QR Code reader on the Control Panel allows you to scan a QR Code in low-light using the flashlight even if it is blurred.
This iPhone QR Code scanner is very powerful and fast, that can scan a QR Code within seconds, even if it is damaged or blurred (up to 30% damaged and inverted).
3. Scan QR Code on iPhone with Chrome
Now, scan a QR Code on your iPhone using Google Chrome with these simple steps –
- Download Chrome from the App Store. If you already have Google Chrome on your iPhone, make sure to update it.
- With your iPhone, 3D touch the Google Chrome app icon on the home screen
- Now, click on Scan QR Code that will appear in the shortcut menu
- Enable the app to access the camera. Tap on OK in the popup menu to scan a QR Code
NOTE: On devices that do not support 3D Touch, swipe down from the top of the Home Screen to access Spotlight. Now, type in QR Code in the search field. Google Chrome will prompt you with the option to scan a QR Code. Just tap on the app icon (Don’t forget to allow the app to access the Camera.)
4. Scan QR Code on iPhone from your camera roll
An iPhone and iPad are capable of scanning a QR Code from its photos via Google Lens. To scan a QR Code on your iPhone from your camera roll,
- Download Google Photos from the App Store and grant access to your camera roll
- Open an image containing a QR Code from Google Photos
- Tap on the Google Lens icon in the native camera
- Click on the dots that appear on the screen with the QR Code to view the notification banner
- Tap on the link to view the triggered action
To scan a QR Code using the Google Assistant on your iPhone,
- Open the Google Assistant on your iPhone
- In the search bar, tap on the Google Lens icon next to the microphone icon
- Allow Google to access your camera. Tap on Turn on the camera to use Lens option
- Look for the Photos icon on the upper right part of the screen. Your Photo Library will appear
- Tap the All Photos icon to select the photo that contains a QR Code you want to scan and tap on it
- The notification banner will appear on the screen, click on it to be directed to the set action
NOTE 1: To scan a QR Code using Google Lens from your Google Assistant, pre-download the app.
NOTE 2: A QR Code can be scanned using the iPod Touch as well using the native camera app and via the Control Center. To scan a QR Code using the iPod Touch, simply follow the steps mentioned above.
Read about how to scan a qr code from a picture
5. Scan QR Code on iPhone with the Wallet app
The wallet app on iPhone, iPad, and iPod touch are capable of scanning a QR Code.
To access the scanner on the wallet app,
- Tap on the Wallet app and click on the “+” button at the top of the Passes section
- Tap on Scan Code to Add a Pass
- From here, you can scan QR Codes for coupons, tickets, boarding passes, and loyalty cards
However, the Wallet app only allows you to scan coupons, loyalty cards, and tickets. If you try scanning any other QR Code, you will receive an error message.
Read about the latest iOS 13 updates including QR Codes, NFC Tags, and Bluetooth
How to enable QR Code scanning on my iPhone and iPad
Any iPhone and iPad with iOS 11 has the ability to scan QR Codes from their native camera. In case your camera is unable to scan a QR Code, follow these instructions –
- Open Settings from your home screen
- Scroll down and click on Camera
- Search for Scan QR Codes and push the toggle button to enable your camera to scan QR Codes
Apps you didn’t know could also scan QR Codes on your iPhone
You may already have these apps on your iPhone, but did not know that these apps are also capable of scanning QR Codes seamlessly. Some of these apps include –
- Snapchat
- Shazam
Final thoughts
Apple, with its latest iOS 13, has introduced QR Code scanning with a flashlight. Users do not have to worry about scanning QR Codes in pesky low-light situations anymore.
Not just that, the QR Code reader on iPhone is so strong that any QR Code can be scanned even with maximum damage (70%).
Brands and businesses now do not have to worry about their consumers using QR Codes anymore. This only indicates that QR Codes are here to stay.
Frequently Asked Questions
1. How do I scan a QR Code from the photo album on my iPhone?
If you own an iPhone with iOS 11 and higher, open the photo from your photo album and follow these steps –
- Tap on Google Lens icon in the native camera
- Click on the dots that appear on the screen with the QR Code to view the notification banner
- Tap on the link to view the triggered action
2. Where is the QR Code scanner on my iPhone?
iPhones with iOS 11 and above have an in-built QR Code scanner that can be accessed via the native camera app or the Control Panel.
To view the QR Code scanner on iPhone, click on the Camera icon and point to a QR Code to view the information.
3. Do I need an app to scan a QR Code on my iPhone?
If you own an iPhone with iOS 11 and above, you do not need to download a separate app to scan a QR Code. If you do not, there are several third-party apps that can be downloaded to scan a QR Code.
Here is a list of QR Code scanner apps that can be downloaded for your iPhone to scan a QR Code.
4. My iPhone is not scanning a QR Code. Why is that?
If your iPhone isn’t scanning a QR Code, please check if your iOS is updated to the latest version. If it is, then you should experience no trouble scanning the QR Code.
Even after downloading the latest OS if your iPhone isn’t scanning a QR Code, then try these actions –
- Hold the iPhone straight and not tilted to any angle
- Make sure there is adequate lighting. If not, switch on the flashlight
- Scan the QR Code from a distance
- Clean the camera for better visibility
If your iPhone doesn’t support the latest OS, download a third-party app to scan a QR Code.
5. Does the iPhone have a QR Code scanner?
Yes. iPhones with iOS 11 and above have an in-built QR Code scanner that can be accessed via the native camera app, Control Center, and Google Lens.
6. How to scan a QR Code with iPhone 6?
If your iPhone 6 is equipped with iOS 11 and above, then you can scan a QR Code using the camera. If not, download the latest version to scan a QR Code via the native in-built camera app.
If your device doesn’t permit it to be upgraded to iOS 11 or above, then consider downloading a third-party app to scan a QR Code.
To create a QR Code today, explore our QR Code solutions or start a 14-day free trial. If you need further assistance, talk to one of our experts today!
- Author Details
- Recent Posts
Author Details
Content Marketing Strategist –Uniqode
Tech-aficionado, curious about all things related to marketing, and an ardent junkie of The Office.
With brands expanding their presence on omnichannel platforms to reach more audiences, learn how QR Codes help brands sync their online and offline marketing strategies to close the loop seamlessly.
Trying to build a loyalty program for your brand? Look no further! Check out this complete guide on the best customer loyalty platforms to help pick the best one and foster long-term brand loyalty effectively.
Struggling to improve in-store sales and shelf performance rate for your brick and mortar retail store? QR Codes for planograms are the answer you’re looking for.
Looking for a design software that fits your requirements? Check out this detailed guide on product packaging design tools with helpful information on how to create an effective packaging design.
What led to the surge in the usage of QR Codes in Australia? Is it because of contact tracing or payments? What does the future hold? Let’s find out.
Want to know how to add a QR Code API to your app without complex troubleshooting? Read to find out!
Related Posts
Leave a Reply
14 day free trial of the QR platform
Products
-
QR CODES
-
QR Code Generator
-
Dynamic QR Code Generator
-
Bulk QR Code Generator
-
QR Code API
-
QR Code Tracking
-
DIGITAL BUSINESS CARD
-
Digital Business Cards
-
Digital Address Book
-
All Products & Features
-
Schedule a Demo
Use Cases
-
QR CODES
-
PDF Files
-
Website URLs
-
Location
-
App Download
-
Custom Landing Pages
-
Restaurant Menus
-
Custom Forms
-
All QR Code Use Cases
-
DIGITAL BUSINESS CARD
-
Email Signatures
-
Lead Management
-
Trade Shows
-
Field Sales
-
Law Firms
Learn
-
QR CODES
-
All About QR Codes
-
Dynamic vs. Static QR Codes
-
QR Code + Google Analytics
-
Guide: Custom QR Codes
-
DIGITAL BUSINESS CARD
-
Digital Business Cards 101
-
Active Directory Integration
-
Knowledge Base
Compare
-
QR CODES
-
Uniqode vs. QR Code Generator Pro
-
Paid vs. Free Solutions
-
Uniqode vs. Scanova
-
Uniqode vs. Flowcode
-
Uniqode vs. QR Tiger
-
Uniqode vs. Adobe
-
DIGITAL BUSINESS CARD
-
Uniqode vs. HiHello
-
Uniqode vs. Blinq
-
Uniqode vs. Popl
Company
-
Products
-
Use Cases
-
QR CODES
-
PDF Files
-
Website URLs
-
Location
-
App Download
-
Custom Landing Pages
-
Restaurant Menus
-
Custom Forms
-
All QR Code Use Cases
-
DIGITAL BUSINESS CARD
-
Email Signatures
-
Lead Management
-
Trade Shows
-
Field Sales
-
Law Firms
-
-
Learn
-
Compare
-
Company
-
Contact Us
- [email protected]
- +1 (646) 968 0378
-
© 2024 Uniqode Phygital, Inc. All rights reserved.
© QR Code is a registered trademark of Denso Wave Incorporated.
${range.value} ${countText}
`; // count.style.left = `calc(${newValue}% + (${newPosition}px))`; document.documentElement.style.setProperty("--range-progress", `calc(${newValue}% + (${newPosition}px))`); const saving_amount_element = document.getElementById("saving_amount"); saving_amount_element.textContent = '$'+ (parseInt(range.value) * 194).toLocaleString(); const tree_count_element = document.getElementById("tree_count"); const main_val = (range.value - 50); tree_count_element.textContent = parseInt(( main_val / 35 )) + parseInt(1); if(range.value <= 50){ document.getElementById("recommended-plan-text").textContent = "Lite"; }else if(range.value >= 85 && range.value <= 225){ document.getElementById("recommended-plan-text").textContent = "Pro"; }else if(range.value >= 260 && range.value <= 470){ document.getElementById("recommended-plan-text").textContent = "Plus"; }else{ document.getElementById("recommended-plan-text").textContent = "Enterprise"; }};document.addEventListener("DOMContentLoaded", setValue);range.addEventListener('input', setValue);}function navheaderTemplateRedirectToSignup(campaign = 'template', header = "", product, device = "desktop") { const utm_source = "Website"; let medium; let codeData = null; let layout = ''; if (product === 'QR') { const qrCodeDataArray = { 1:'ewogICJxcl9jYW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iAgICAiZ3JhZGllbnRUeXBlIjogInJhZGlhbCIsCiAgICAiYmFja2dyb3VuZEltYWdlIjogIiIsCiAgICAiYmFja2dyb3VuZENvbG9yIjogIiMwMDAwMDAiLAogICAgImxvZ29JbWFnZSI6ICIiLAogICAgImZyYW1lU3R5bGUiOiAibm9uZSIsCiAgICAiZnJhbWVDb2xvciI6ICIjRDAyRTYwIiwKICAgICJmcmFtZVRleHQiOiAiIiwKICAgICJmcmFtZVRleHRDb2xvciI6ICIjRkZGRkZGIiwKICAgICJkYXRhUGF0dGVybiI6ICJraXRlIiwKICAgICJleWVCYWxsU2hhcGUiOiAic3F1YXJlIiwKICAgICJleWVGcmFtZVNoYXBlIjogInNxdWFyZSIsCiAgICAiZXllQmFsbENvbG9yIjogIiNBRjlENUUiLAogICAgImV5ZUZyYW1lQ29sb3IiOiAiI0ZGRkZGRiIsCiAgICAibG9nb0JhY2tncm91bmQiOiB0cnVlLAogICAgIm1hcmdpbiI6IDgwLAogICAgImRvdFNjYWxlIjogMSwKICAgICJyZWN0YW5ndWxhciI6IHRydWUsCiAgICAibG9nb1dpZHRoIjogMCwKICAgICJsb2dvSGVpZ2h0IjogMCwKICAgICJsb2dvTWFyZ2luIjogMTAsCiAgICAibG9nb1NjYWxlIjogMC4yLAogICAgImlzVkNhcmQiOiB0cnVlCiAgfQp9', 3:'ewogICJxcl9jYW1wYWlnbl90eXBlIjogImdlbmVyYWwiLAogICJkZXNpZ24iOiB7CiAgICAiY29sb3IiOiAiIzAwMDAwMCIsCiAgICAiY29sb3JEYXJrIjogIiMyRTFEODkiLAogICAgImNvbG9yTGlnaHQiOiAiIzJFMUQ4OSIsCiAgICAiZ3JhZGllbnRUeXBlIjogIm5vbmUiLAogICAgImJhY2tncm91bmRJbWFnZSI6ICIiLAogICAgImJhY2tncm91bmRDb2xvciI6ICIjQzBGRjQwIiwKICAgICJsb2dvSW1hZ2UiOiAiIiwKICAgICJmcmFtZVN0eWxlIjogIm5vbmUiLAogICAgImZyYW1lQ29sb3IiOiAiI0QwMkU2MCIsCiAgICAiZnJhbWVUZXh0IjogIiIsCiAgICAiZnJhbWVUZXh0Q29sb3IiOiAiI0ZGRkZGRiIsCiAgICAiZGF0YVBhdHRlcm4iOiAiY2lyY2xlIiwKICAgICJleWVCYWxsU2hhcGUiOiAiY2lyY2xlIiwKICAgICJleWVGcmFtZVNoYXBlIjogImNpcmNsZSIsCiAgICAiZXllQmFsbENvbG9yIjogIiMyRTFEODkiLAogICAgImV5ZUZyYW1lQ29sb3IiOiAiIzJFMUQ4OSIsCiAgICAibG9nb0JhY2tncm91bmQiOiB0cnVlLAogICAgIm1hcmdpbiI6IDgwLAogICAgImRvdFNjYWxlIjogMSwKICAgICJyZWN0YW5ndWxhciI6IHRydWUsCiAgICAibG9nb1dpZHRoIjogMCwKICAgICJsb2dvSGVpZ2h0IjogMCwKICAgICJsb2dvTWFyZ2luIjogMTAsCiAgICAibG9nb1NjYWxlIjogMC4yLAogICAgImlzVkNhcmQiOiB0cnVlCiAgfQp9' }; const qrTemplates = getTemplates("qr-template", "qr-template-mob", device); const qrTemplateSelected = getSelectedTemplate(qrTemplates,product); codeData = qrCodeDataArray[qrTemplateSelected]; medium = 'topnav' + qrTemplateSelected; } else if (product === 'DBC') { const dbcCodeDataArray = { 1:'ewogICJxcl9jYW1wYWlnbl90eXBlIjogImdlbmVyYWwiLAogICJkZXNpZ24iOiB7CiAgICAiY29sb3IiOiAiIzAwMDAwMCIsCiAgICAiY29sb3JEYXJrIjogIiMwMDAwMDAiLAogICAgImNvbG9yTGlnaHQiOiAiIzAwMDAwMCIsCiAgICAiZ3JhZGllbnRUeXBlIjogIm5vbmUiLAogICAgImJhY2tncm91bmRJbWFnZSI6ICIiLAogICAgImJhY2tncm91bmRDb2xvciI6ICIjRkZGRkZGIiwKICAgICJsb2dvSW1hZ2UiOiAiIiwKICAgICJmcmFtZVN0eWxlIjogIm5vbmUiLAogICAgImZyYW1lQ29sb3IiOiAiI0QwMkU2MCIsCiA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vdFNjYWxlIjogMSwKICAgICJyZWN0YW5ndWxhciI6IHRydWUsCiAgICAibG9nb1dpZHRoIjogMCwKICAgICJsb2dvSGVpZ2h0IjogMCwKICAgICJsb2dvTWFyZ2luIjogMTAsCiAgICAibG9nb1NjYWxlIjogMC4yLAogICAgImlzVkNhcmQiOiB0cnVlCiAgfQp9' }; const dbcTemplates = getTemplates("dbc-template", "dbc-template-mob", device); const dbcTemplateSelected = getSelectedTemplate(dbcTemplates,product); codeData = dbcCodeDataArray[dbcTemplateSelected-DASHBOARD_LAYOUT_NO]; medium = 'topnav' + dbcTemplateSelected; layout = `&layout=${dbcTemplateSelected}`; } if (codeData) { const url = generateSignupURL(header, product, utm_source, codeData, medium, campaign, layout); window.location.href = url; }}function getTemplates(desktopName, mobileName, device) { const templates = device === 'desktop' ? document.getElementsByName(desktopName) : document.getElementsByName(mobileName); return templates;}function getSelectedTemplate(templates,product) { for (let i = 0; i < templates.length; i++) { if (templates[i].checked) { return i + (product == 'DBC' ? 4 : 1); } } return 1;}function generateSignupURL(header, product, utm_source, codeData, medium, campaign, layout) { return `https://www.uniqode.com/store/starter-signup?trial_source=${header}&product_selected=${product}&utm-source=${utm_source}&qr_code_data=${codeData}&medium=${medium}&campaign=${campaign}${layout}`;}function closeAllTab() { const elementsToRemoveClass = [ 'product-drop', 'dbcProduct-drop', 'solution-drop', 'learn-drop' ]; elementsToRemoveClass.forEach(elementId => { const element = document.getElementById(elementId); if (element) { element.classList.remove('open'); } }); const dropdownLinks = document.querySelectorAll('[data-productid]'); dropdownLinks.forEach(currentDropdown => { currentDropdown.classList.remove('open'); currentDropdown.style.backgroundColor = ''; currentDropdown.style.color = ''; });}let isAnimate = true;let isStartingLoad = true;let isSameNavItem = '';const ANIMATION_DURATION = '0.4s';const ANIMATION_NONE = '0s';const ANIMATION_CLASS = 'slideAndFade';const ACTIVE_CLASS = 'list-active';const OPEN_CLASS = 'open';function openNavTab(element) { closeAllTab(); const expanedNavItem = document.getElementById(element.getAttribute('data-productid')); element.classList.add('open'); expanedNavItem.classList.add('open'); if (isAnimate) { expanedNavItem.style.animation = `${ANIMATION_CLASS} ${ANIMATION_DURATION} forwards`; } else { expanedNavItem.style.animation = `${ANIMATION_CLASS} ${ANIMATION_NONE} forwards`; }}const dropdown = document.querySelectorAll('[data-productid]');dropdown.forEach((currentNavItem) => { currentNavItem.addEventListener("click", function (event) { if(isStartingLoad) { isStartingLoad = !isStartingLoad; } else { isAnimate = false; } const navItemId = currentNavItem.getAttribute('data-productid'); if (isSameNavItem !== navItemId) { if (isSameNavItem !== '') { closeAllTab(); } openNavTab(currentNavItem); } else { // If the same nav item is clicked again, toggle the "open" class const expanedNavItem = document.getElementById(navItemId); expanedNavItem.classList.toggle('open'); currentNavItem.classList.toggle('open'); if (isAnimate) { expanedNavItem.style.animation = expanedNavItem.classList.contains('open') ? `${ANIMATION_CLASS} ${ANIMATION_DURATION} forwards` : `${ANIMATION_CLASS} ${ANIMATION_NONE} forwards`; } else { expanedNavItem.style.animation = expanedNavItem.classList.contains('open') ? `${ANIMATION_CLASS} ${ANIMATION_NONE} forwards` : `${ANIMATION_CLASS} ${ANIMATION_DURATION} forwards`; } } isSameNavItem = navItemId; });});const dropdownContent = document.querySelectorAll('.dropdown-content');dropdownContent.forEach((currentDropdownContent) => { currentDropdownContent.addEventListener("mouseleave", handleMouseLeave);});function handleMouseLeave(event) { const { clientY } = event; const { bottom } = this.getBoundingClientRect(); if (clientY > bottom) { resetFlagsAndNavigation(); closeAllTab(); }}function resetFlagsAndNavigation() { isAnimate = true; isStartingLoad = true; isSameNavItem = '';}const nonDropdownItems = document.querySelectorAll('.list-non-dropdown');nonDropdownItems.forEach(currentNavItem => { currentNavItem.addEventListener("click", handleNonDropdownMouseOver);});function handleNonDropdownMouseOver() { isSameNavItem = ''; isStartingLoad = true; isAnimate = true; closeAllTab();}const dropdownViewport = document.querySelectorAll('.dropdown-content');dropdownViewport.forEach(currentDropdown => { currentDropdown.addEventListener('click', () => { if (currentDropdown.classList.contains('open')) { const currentExpandedLink = document.querySelector(`[data-productid="${currentDropdown.id}"]`); currentExpandedLink.style.backgroundColor = '#2595FF'; currentExpandedLink.style.color = 'white'; } });});if(576 <= window.innerWidth && window.innerWidth <=768) { const navDropDown = document.querySelectorAll('.dropdown-link'); for(let nav = 0;nav