From 4e24d8d695e1a3eecc66fbe11b10494765bf0756 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 28 Oct 2024 17:07:21 -0400 Subject: [PATCH] Anthology CSV parse update. Backed up Supplier Prod's templates. --- ...nalysis-and-reporting-carousel.html.liquid | 9 +++++++++ .../_getting-started-carousel.html.liquid | 9 ++++++++- .../_merchandising-carousel.html.liquid | 9 +++++++++ .../Walmart Supplier Prod/styles.css.liquid | 1 + .../MasterCSV_Parser.js | 20 +++++++++---------- Scripts/GAS_GS/AnthologyCSV-Parse/parseCSV.js | 12 ++++++----- 6 files changed, 43 insertions(+), 17 deletions(-) diff --git a/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid b/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid index 5d0cfd56..0a79e83d 100644 --- a/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid @@ -71,6 +71,15 @@ $(document).ready(function() { filterWrapper.classList.toggle("filter-active"); }); + document.addEventListener("click", function(event) { + const filterWrapper = document.querySelector('#carousel-filter-wrapper-analysis'); + const isClickInside = filterWrapper.contains(event.target) || event.target.id === "filterToggleAnalysis"; + + if (!isClickInside) { + filterWrapper.classList.remove("filter-active"); + } + }); + function filterCardsAnalysis() { const selectedFilters = Array.from(document.querySelectorAll('#filterContentAnalysis .filter-checkbox:checked')).map(checkbox => checkbox.id.replace('a-', '')); const cards = document.querySelectorAll('.analysis-courses'); diff --git a/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid b/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid index 05ade294..47d7958d 100644 --- a/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid @@ -1,6 +1,6 @@