1/** Cross Fade Hero Images on the Landing Page **/ 2 3var bgImageArray = [1,2,3,4,5,6,7,8,9,10,11,12]; 4var base = "/shop/images/banner/marketplace-hero-"; 5 6bgImageArray.forEach(function(imgId) { 7 new Image().src = base + imgId + ".jpg"; // caches images, avoiding white flash between background replacements 8}); 9 10function backgroundSequence() { 11 window.clearTimeout(); 12 var k = 0; 13 for (var i = 0; i < bgImageArray.length; i++) { 14 setTimeout(function() { 15 var hero = document.getElementById("marketplace-hero"); 16 hero.style.backgroundImage = 'url("' + base + bgImageArray[k] + '.jpg")'; 17 if ((k + 1) === bgImageArray.length) { 18 setTimeout(function() {backgroundSequence()} (2500)); 19 } else { 20 k++; } 21 }, (2500) * i); 22 } 23} 24backgroundSequence()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.