1jQuery(window).on("load", function (e) { 2 var mySiema; 3 var isCmsInfosTrafic = $('body').find('.is-Cms-InfosTrafic'); 4 var isCmsBanner = $('body').find('.is-cms-banner'); 5 6 if (isCmsInfosTrafic.length) { 7 $(isCmsInfosTrafic).insertAfter(".is-Header"); 8 $(isCmsInfosTrafic).show(); 9 } 10 11 $(isCmsBanner).each(function() { 12 13 var already_seen = localStorage.getItem($(this).attr('id')); 14 15 if(!already_seen) { 16 $(this).show(); 17 } 18 19 var close = $(this).find(".is-Icon-close"); 20 21 $(close).on("click", function () { 22 parentId = $(this).parent().attr('id'); 23 localStorage.setItem(parentId, null); 24 $(this).closest(".is-cms-banner").hide(); 25 var count = $(isCmsBanner).length-1; 26 27 if (count<=1) { 28 mySiema.destroy(); 29 } 30 31 }); 32 33 }); 34 35 /**** slider *** 36 from https://pawelgrzybek.github.io/siema 37 declenchement slider si plusieurs bannieres visibles 38 */ 39 if ($(".is-cms-banner:visible").length >1 ) { 40 41 var mySiema = new Siema({ 42 duration: 450, 43 loop: true 44 }); 45 46 // listen for keydown event 47 setInterval(() => mySiema.next(), 10000); 48 } 49 50});
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.