1function StartShopFlyBasket(parameters) 2{ 3 if (parameters === undefined) parameters = {}; 4 if (parameters['basket'] === undefined) parameters['basket'] = '.basket'; 5 if (parameters['switcher'] === undefined) parameters['switcher'] = '.switcher'; 6 if (parameters['sections'] === undefined) parameters['sections'] = '.sections'; 7 if (parameters['section'] === undefined) parameters['section'] = '.section'; 8 if (parameters['animationSpeed'] === undefined) parameters['animationSpeed'] = 500; 9 10 var current = null; 11 12 this.constructor.prototype.switchSectionByNumber = function (number, animate) { 13 if (animate === undefined) animate = true; 14 15 if (current != number) { 16 var section = $(parameters['basket'] + ' ' + parameters['sections'] + ' ' + parameters['section']).eq(number); 17 var sectionWidth = section.width(); 18 19 $(parameters['basket'] + ' ' + parameters['sections'] + ' ' + parameters['section']).css('display', 'none'); 20 section.css('display', 'block'); 21 22 if (animate) { 23 $(parameters['basket'] + ' ' + parameters['sections']).stop().animate({'width': sectionWidth + 'px'}, parameters['animationSpeed']); 24 } else { 25 $(parameters['basket'] + ' ' + parameters['sections']).css('width', sectionWidth + 'px'); 26 } 27 28 current = number; 29 } else { 30 this.closeSections(animate); 31 } 32 }; 33 34 this.constructor.prototype.switchSectionByID = function (id, animate) { 35 if (animate === undefined) animate = true; 36 37 this.switchSectionByNumber($(parameters['basket'] + ' ' + parameters['sections'] + ' ' + parameters['section'] + '#' + id).index(), animate); 38 }; 39 40 this.constructor.prototype.closeSections = function (animate) { 41 if (animate === undefined) animate = true; 42 43 if (animate) { 44 $(parameters['basket'] + ' ' + parameters['sections']).stop().animate({'width': '0px'}, parameters['animationSpeed'], function(){ 45 $(parameters['basket'] + ' ' + parameters['sections'] + ' ' + parameters['section']).css('display', 'none'); 46 current = null; 47 }); 48 } else { 49 $(parameters['basket'] + ' ' + parameters['sections']).css('width', '0px'); 50 $(parameters['basket'] + ' ' + parameters['sections'] + ' ' + parameters['section']).css('display', 'none'); 51 current = null; 52 } 53 } 54}
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.