/* Add this CSS to your stylesheet or in a style tag in the head of your HTML */ /* text-align: center;*/ color: #e52424; /* Warning icon color */ /*width: 100%!important;*/ /*@media(min-width:1080px){ .swiper-viewport .swiper-button-prev { left: -1rem!important; } .swiper-viewport .swiper-button-next { right: -1rem!important; } }*/ /*max-width:500px!important; height: 500px!important;*/ -->#} // Function to open the custom confirmation dialog // Function to close the custom confirmation dialog // Attach event handler to the "Find Retailer" button // Show the custom confirmation dialog // Attach event handler to the "No" button in the custom dialog // Close the custom confirmation dialog //$('body').append('
Loading...
'); // Append the retailerData to the retailer-data-container div // Hide loader on error // Handle errors if any // Attach event handler to the "Find Retailer" button in the custom dialog // Show an error message //$('#use-my-location').prop('disabled', true); //close the dialog box // Show the entered zip code //show loader //$('body').append('
Loading...
'); // Append the retailerData to the retailer-data-container div // Hide loader on error // Function to close the custom confirmation dialog // Attach event handler to the "No" button in the custom dialog // Close the custom confirmation dialog // Responsive breakpoints // Responsive breakpoints // Responsive breakpoints // Responsive breakpoints // Responsive breakpoints // Responsive breakpoints // Responsive breakpoints //--> // Highlight any found errors /*$('html, body').animate({ scrollTop: 0 }, 'slow');*/ //--> //--> /*$(document).ready(function() { $('.thumbnails').magnificPopup({ type:'image', delegate: 'a', gallery: { enabled: true } }); });*/ //--> /* $('#thumbs img').click(function(){ $('#largeImage').attr('src',$(this).attr('src').replace('thumb','large')); $('#description').html($(this).attr('alt')); });*/ // Calculate the offset of the target image // const offset = targetImage.offsetTop - 150; // Scroll to the target image behavior: 'smooth' // Smooth scrolling animation // Calculate the offset of the target image // const offset = targetImage.offsetTop - 150; // Scroll to the target image behavior: 'smooth' // Smooth scrolling animation // Calculate the offset of the target image // const offset = targetImage1.offsetTop - 150; // Scroll to the target image behavior: 'smooth' // Smooth scrolling animation // Function to sort the list items // Get the list of
  • elements // Convert NodeList to an array // Sort the array based on the numerical value inside the element // Get the parent