1/* 2* 2007-2014 PrestaShop 3* 4* NOTICE OF LICENSE 5* 6* This source file is subject to the Academic Free License (AFL 3.0) 7* that is bundled with this package in the file LICENSE.txt. 8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 11* obtain it through the world-wide-web, please send an email 12* to [email protected] so we can send you a copy immediately. 13* 14* DISCLAIMER 15* 16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17* versions in the future. If you wish to customize PrestaShop for your 18* needs please refer to http://www.prestashop.com for more information. 19* 20* @author PrestaShop SA <[email protected]> 21* @copyright 2007-2014 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registered Trademark & Property of PrestaShop SA 24*/ 25 26 27$(window).load(function() { 28 /* 29 $('.fourlzogos').bxSlider({ 30 auto: true, 31 slideWidth: 300, 32 wrapperClass: 'bx-wrapper sliderCavesWrapper', 33 slideMargin: 10, 34 responsive: true, 35 mode: 'horizontal', 36 minSlides: 3, 37 minSlides: 4, 38 preloadImages: 'all', 39 randomStart: false, 40 moveSlideQty: 1, 41 useCSS: false, 42 }); 43 */ 44 45 46 47}); 48 49 50 51$(document).ready(function() { 52 53//https://github.com/ganlanyuan/tiny-slider 54 /* 55 var slider = tns({ 56 container: '.logos_caves', 57 nav: false, 58 items: 2,
59 prevButton: false, 60 nextButton: false, 61 controls: false, 62 loop: true, 63 speed: 850, 64 autoplayButtonOutput: false, 65 //lazyload: true, 66 mouseDrag: true, 67 //rewind: true, 68 slideBy: 1, 69 gutter: 15, 70 autoplay: true, 71 responsive: { 72 700: { 73 items: 3 74 }, 75 900: { 76 items: 4, 77 slideBy: 2, 78 } 79 } 80 }); 81 82 */ 83 84 Array.min = function( array ){ 85 return Math.min.apply( Math, array ); 86 }; 87 88 $('#doFastSearch').click(function() { 89 var url = "69-regions-principales#/"; 90 var types = ''; 91 var prices = []; 92 93 url_prefix = "69-tous-les-vins"; 94 95 96 if($('.fastSearch_type:checked').length>0) { 97 98 if($('.fastSearch_type:checked').val() == 'spirits') { 99 url_prefix = "80-Spiritueux"; 100 types = ""; 101 } 102 103 else { 104 url_prefix = "69-tous-les-vins"; 105 types = $('.fastSearch_type:checked').val(); 106 } 107 108 } 109 110 111 $('.fastSearch_price').each(function() { 112 if($(this).attr('checked')=='checked') { 113 114 if(typeof price_min == 'undefined') 115 price_min = $(this).attr('data-min')*1; 116 else 117 price_min = Math.min(price_min, $(this).attr('data-min')); 118 119 if(typeof price_max == 'undefined') 120 price_max = $(this).attr('data-max')*1; 121 else 122 price_max = Math.max(price_max, $(this).attr('data-max')); 123 } 124 }); 125 126 if(types.length>0) { 127 var url_type = "/type-" + types; 128 } 129 else url_type = ""; 130 131 if(typeof price_min != 'undefined') 132 var url_price = "/Prix-" + price_min + "-" + price_max; 133 else 134 url_price = ""; 135 136 if(url_type != "" || url_price !="") { 137 url_prefix = url_prefix + "#"; 138 } 139 140 var url = url_prefix + url_type + url_price; 141 document.location.href = url; 142 143 144 145 }); 146 147 148 $('#home-page-tabs li:first, #index .tab-content ul:first').addClass('active'); 149 150 151 $(".slideshow_testimonials ul li").hide(); 152 153 154 155 var testi_obj = $(".slideshow_testimonials ul li"); 156 var testi_size = testi_obj.length; 157 var testi_index = 2; 158 var testi_first = true; 159 var testi_delay = 4000; 160 161 function show_testi(index) { 162 $(testi_obj[index]).slideToggle(); // SHOW N 163 164 setTimeout( // AFTER DELAY-500 165 function() { 166 $(testi_obj[index]).slideToggle(); // HIDE N 167 }, 168 testi_delay-500 169 ); 170 171 setTimeout( // AFTER DELAY 172 function() { 173 var new_testi_index = (index+1)%testi_size; 174 show_testi(new_testi_index); // SHOW N+1 175 }, 176 testi_delay 177 ); 178 } 179 show_testi(0); 180 181 182});
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.