1/** 2 * Please read the terms of the CLUF license attached to this module(cf "licences" folder) 3 * 4 * @author LÃnea Gráfica E.C.E. S.L. 5 * @copyright Lineagrafica.es - LÃnea Gráfica E.C.E. S.L. all rights reserved. 6 * @license https://www.lineagrafica.es/licenses/license_en.pdf 7 * https://www.lineagrafica.es/licenses/license_es.pdf 8 * https://www.lineagrafica.es/licenses/license_fr.pdf 9 */ 10 11$(document).ready(function() { 12 $('#reviewSlide').rotation({fadeSpeed:1000, pauseSpeed:2000}); 13 $(document).on('click', '#widget_block div.close_widget_block', function() { 14 $('#widget_block').hide(); 15 var now = new Date(); 16 var time = now.getTime(); 17 var expireTime = time + 1200*36000; 18 now.setTime(expireTime); 19 document.cookie = 'reviewWidget=hide_review_widget;expires='+now.toGMTString()+';path=/'; 20 }); 21}); 22(function($){ 23 $.fn.extend({ 24 rotation: function(options) { 25 var config = { 26 fadeSpeed: 1000, 27 pauseSpeed: 2000, 28 child:null 29 }; 30 var options = $.extend(config, options); 31 return this.each(function() { 32 var o =options; 33 var obj = $(this); 34 var items = $(obj.children('div.review'), obj); 35 items.each(function() { 36 $(this).hide(); 37 }) 38 if (!o.child) { 39 var next = $(obj).children('div.review:first'); 40 } else { 41 var next = o.child; 42 } 43 $(next).fadeIn(o.fadeSpeed, function() { 44 $(next).delay(o.pauseSpeed).fadeOut(o.fadeSpeed, function() { 45 var next = $(this).next(); 46 if (next.length == 0) { 47 next = $(obj).children('div.review:first'); 48 } 49 $(obj).rotation({child : next, fadeSpeed : o.fadeSpeed, pauseSpeed : o.pauseSpeed}); 50 }) 51 }); 52 }); 53 } 54 }); 55})(jQuery);
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.