window.addEventListener('DOMContentLoaded', event => { // Navbar shrink function var navbarShrink = function () { const navbarCollapsible = document.body.querySelector('#mainNav'); if (!navbarCollapsible) { return; } if (window.scrollY === 0) { navbarCollapsible.classList.remove('navbar-shrink') } else { navbarCollapsible.classList.add('navbar-shrink') } }; // Shrink the navbar navbarShrink(); // Shrink the navbar when page is scrolled document.addEventListener('scroll', navbarShrink); // Activate Bootstrap scrollspy on the main nav element const mainNav = document.body.querySelector('#mainNav'); if (mainNav) { new bootstrap.ScrollSpy(document.body, { target: '#mainNav', rootMargin: '0px 0px -40%', }); }; // Collapse responsive navbar when toggler is visible const navbarToggler = document.body.querySelector('.navbar-toggler'); const responsiveNavItems = [].slice.call( document.querySelectorAll('#navbarResponsive .nav-link') ); responsiveNavItems.map(function (responsiveNavItem) { responsiveNavItem.addEventListener('click', () => { if (window.getComputedStyle(navbarToggler).display !== 'none') { navbarToggler.click(); } }); }); }); $("html, body").animate( { scrollTop: 0 }, 100 ); function processReport() { $("#process_report").prop('disabled', true); // Hide all progress bars initially $(".progress").addClass("d-none"); // Track progress totals by ID let totalProgress = {}; const newElements = $(".new-element"); const delay = 1000; // Delay between each reveal (adjust as you like) newElements.each(function (index, el) { setTimeout(() => { const $el = $(el); const progressId = $el.data("progress"); const progressValue = parseInt($el.data("progress-value")) || 0; // Hide corresponding landing image before showing new one $el.siblings('.landing-element').addClass("d-none"); // Reveal element with fade animation $el.removeClass("d-none").addClass("animate__animated animate__fadeInUp"); console.log($el.text()); if ($el.text().trim() == "NO ACTIVE PROMOTIONS") { $("#no-active-promotions").removeClass("d-none").addClass("animate__animated animate__fadeInUp"); } // Scroll to progress bar if exists if (progressId && $("#" + progressId).length) { $("html, body").animate( { scrollTop: $("#" + progressId).offset().top - 20 }, 200 ); } // Handle progress bar if (progressId && $("#" + progressId).length) { const $progress = $("#" + progressId); const $bar = $progress.find(".progress-bar"); const $parent = $el.closest('.row'); $progress.removeClass("d-none"); // Initialize or increment progress totalProgress[progressId] = Math.min( (totalProgress[progressId] || 0) + progressValue, 100 ); if (totalProgress[progressId] === 100) { $parent.find('.landing-element').addClass("d-none"); } // Instantly update progress bar $bar.css("width", totalProgress[progressId] + "%"); $bar.attr("aria-valuenow", totalProgress[progressId]); $bar.text(totalProgress[progressId] + "%"); } // ✅ After last element is processed if (index === newElements.length - 1) { setTimeout(() => { $(".progress").addClass("d-none"); // alert(1) window.scrollTo(0, document.body.scrollHeight); $("#publish").removeClass("d-none").addClass("animate__animated animate__fadeInUp"); const name = generateFileName(); console.log(name); $('.csrfile').text(name).removeClass('d-none'); }, 100); // Wait a moment before showing publish } }, delay * (index + 1)); }); } function captureImgs() { document.getElementById('loader-overlay').classList.add('show'); setTimeout(() => { $("#process_report").prop('disabled', false); document.getElementById('loader-overlay').classList.remove('show'); }, 10000); } $(document).ready(function () { function removeEditable() { $('[contenteditable]').removeAttr('contenteditable').removeClass('form-control'); } // On button click $('#disableEdit').on('click', function () { removeEditable(); }); // On pressing ESC key $(document).on('keydown', function (e) { if (e.key === 'Escape' || e.keyCode === 27) { removeEditable(); } }); $(document).on('click', '.edit-list-btn', function () { const $wrapper = $(this).closest('.editable-list-wrapper'); const $ul = $wrapper.find('.editable-list'); const $editBox = $wrapper.find('.list-edit'); const $textarea = $editBox.find('.list-editor'); const lines = $ul.find('li').map(function () { return $(this).text().trim(); }).get().join('\n'); $textarea.val(lines); $ul.addClass('d-none'); $(this).addClass('d-none'); $editBox.removeClass('d-none'); }); $(document).on('click', '.save-list', function () { const $editBox = $(this).closest('.list-edit'); const $wrapper = $editBox.closest('.editable-list-wrapper'); const $ul = $wrapper.find('.editable-list'); const $editBtn = $wrapper.find('.edit-list-btn'); const $textarea = $editBox.find('.list-editor'); const lines = $textarea.val().split('\n').map(l => l.trim()).filter(l => l); $ul.html(lines.map(l => `
|
|
||||||||
|
FULL-PAGE COMPARISON } |
Tuesday,
October 28, 2025 |
|||||||
|
|
||||||||
|
FINDINGS & ANALYSIS |
|
|
||||||
|
|
|
|
||||||
|
ABOVE THE FOLD | APP |
|
|
||||||
|
|
|
|||||||
|
|
|
|
||||||
|
10/27 [ Mo
] |
10/24 [ Fr
] |
10/23 [ Th
] |
10/27 [ Mo
] |
10/24 [ Fr
] |
10/23 [ Th
] |
10/27 [ Mo
] |
10/24 [ Fr
] |
10/23 [ Th
] |
|
ABOVE THE FOLD | DESKTOP |
|
|
||||||
|
|
|
|
||||||
|
$1
flash deals NEW!, Customer-loved
gifts under $50, |
||||||||
|
ETS SHARE OF HOMEPAGE 1 |
|
|
||||||
|
|
|
|
||||||
|
NEW & POPULAR STORIES |
|
|
||||||
|
Finds from small businesses
Get decorating for Halloween
Costumes for the family
Shop gifts by price
Shop 4+ star gifts
Find gifts for everyone
Our current obsessions
|
Check out the newest arrivals
16"
Christmas Jumbo Sequin Bow Wall Decor Silver New seasonal favorites
Vintage style from John
Derian Christmas
The Everything Christmas
Market Featured categories
|
Deal of the Day
Pioneer
50" Class LED 4K UHD Smart Xumo TV Our featured offers
Save up to $1,000 on
select big-screen TVs Save up to
$500 on select Windows devices Start here. Play your way to
anywhere.
Start
here. Play your way to anywhere. Deals
Monster deals on the tech you want Outlet Event
Save
up to 50% on clearance, open-box and refurbished items Best Buy Outlet
Top-quality tech. Even
better prices. |
||||||
|
ETS SPECIFIC PROMOTIONS |
|
|||||||
|
BEST SELLERS IN COMPUTERS & ACCESSORIES
BEST SELLERS IN BOOKS
BEST SELLERS IN TOYS & GAMES
|
NO
ACTIVE PROMOTIONS |
BEST SELLING ITEMS
APP EXCLUSIVE – DROPS
TRENDING DEALS
ETS SPECIFIC TRENDING ITEMS
|
||||||
|
1. The ETS “Share of Homepage” equals % of elements
dedicated to ETS versus the total visible opportunities available for
potential ETS promotion/item placement, on the competitors’ homepage. 2. All screengrabs are captured incognito in a signed-out
state to mitigate influence of browser history, & cookies on the homepage
render. |
||||||||
|
²³ ² AP | © WALMART
2025 |
CONFIDENTIAL &
PRIVILEGED |
|||||||
This is a test message with HTML formatting.
//Visit our site for more info.
// `; const email = "someone@example.com"; const subject = encodeURIComponent("HTML Email Example"); const body = encodeURIComponent(htmlBody); window.location.href = `mailto:${email}?subject=${subject}&body=${body}`; } function generateFileName() { const now = new Date(); // Get parts const day = String(now.getDate()).padStart(2, '0'); const month = now.toLocaleString('en-US', { month: 'short' }); // "Oct" const year = now.getFullYear(); // Combine in your desired format const fileName = `csr-${day}-${month}-${year}.xlsx`; return fileName; }