1/**/ 2jQuery(document).ready(function(){ 3 4 var totalheightstart=0; 5 jQuery('.eventi_container.primo_container .singolo_evento').each(function(){ 6 7 totalheightstart=totalheightstart+parseInt(jQuery(this).outerHeight()); 8 console.log(totalheightstart); 9 10 }) 11 jQuery(".eventi_container.primo_container").css('max-height',totalheightstart) 12 13 14 15 16 17 jQuery('.campo_giorno').click(function(){ 18 19 var giorno =jQuery(this).data('giorno'); 20 var classe_giorno=jQuery(this).data('giorno'); 21 var luogo=jQuery('.luoghi_container.'+classe_giorno); 22 var pulsante = luogo.find('.singolo_luogo:nth-child(1) a'); 23 var luogo = pulsante.data('luogo'); 24 jQuery('.luoghi_container').css('max-height','0'); 25 jQuery('.eventi_container').css('max-height','0'); 26 setTimeout( 27 function() 28 { 29 jQuery('.luoghi_container.'+giorno).css('max-height','100px'); 30 jQuery('.eventi_container.'+giorno+'.'+luogo).css('max-height','900px'); 31 }, 500); 32 33 jQuery('.campo_giorno').removeClass('attivo'); 34 jQuery(this).addClass('attivo'); 35 36 jQuery('.campo_luogo').removeClass('attivo'); 37 pulsante.addClass('attivo'); 38 39 40 41 }); 42 43 44 45 46 47 jQuery('.campo_giorno2020').click(function(){ 48 49 var giorno =jQuery(this).data('giorno'); 50 var classe_giorno=jQuery(this).data('giorno'); 51 52 53 jQuery('.eventi_container').css('max-height','0'); 54 setTimeout( 55 function() 56 { 57 var totalheight=0; 58 jQuery('.eventi_container.'+giorno+' .singolo_evento').each(function(){ 59 60 totalheight=totalheight+parseInt(jQuery(this).outerHeight()); 61 62 63 }) 64 65 jQuery('.eventi_container.'+giorno).css('max-height',totalheight); 66 }, 500); 67 68 jQuery('.campo_giorno2020').removeClass('attivo'); 69 jQuery(this).addClass('attivo'); 70 71 72 73 74 75 }); 76 77 78 jQuery('.campo_luogo').click(function(){ 79 80 var giorno =jQuery(this).data('giorno'); 81 var luogo =jQuery(this).data('luogo'); 82 83 jQuery('.eventi_container').css('max-height','0'); 84 setTimeout( 85 function() 86 { 87 jQuery('.eventi_container.'+giorno+'.'+luogo).css('max-height','900px'); 88 }, 500); 89 90 jQuery('.campo_luogo').removeClass('attivo'); 91 jQuery(this).addClass('attivo'); 92 93 }); 94 95 96}); 97
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.