1(function() { 2 'use strict'; 3 4 if (!!window.JCCatalogProductsViewedComponent) 5 return; 6 7 window.JCCatalogProductsViewedComponent = function(params) { 8 this.container = document.querySelector('[data-entity="' + params.container + '"]'); 9 10 if (params.initiallyShowHeader) 11 { 12 BX.ready(BX.delegate(this.showHeader, this)); 13 } 14 }; 15 16 window.JCCatalogProductsViewedComponent.prototype = 17 { 18 showHeader: function(animate) 19 { 20 var parentNode = BX.findParent(this.container, {attr: {'data-entity': 'parent-container'}}), 21 header; 22 23 if (parentNode && BX.type.isDomNode(parentNode)) 24 { 25 header = parentNode.querySelector('[data-entity="header"'); 26 27 if (header && header.getAttribute('data-showed') != 'true') 28 { 29 header.style.display = ''; 30 31 if (animate) 32 { 33 new BX.easing({ 34 duration: 2000, 35 start: {opacity: 0}, 36 finish: {opacity: 100}, 37 transition: BX.easing.makeEaseOut(BX.easing.transitions.quad), 38 step: function(state){ 39 header.style.opacity = state.opacity / 100; 40 }, 41 complete: function(){ 42 header.removeAttribute('style'); 43 header.setAttribute('data-showed', 'true'); 44 } 45 }).animate(); 46 } 47 else 48 { 49 header.style.opacity = 100; 50 } 51 } 52 } 53 } 54 } 55})();
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.