1//Elenco a Discesa 2 3$(document).ready(function(){ 4 $('ul#menu').superfish({ 5 delay: 100,//Ritardo 6 animation: {opacity:0.95,height:'show'}, 7 autoArrows: false,// disabilito le frecce 8 dropShadows: false,// disabilito l'ombreggiatura 9 speed: "fast" 10 }); 11 12 try{ 13 //Adattamento Menù superiore 14 var mH = $("#menu").width(); 15 var tW = 0; 16 var n = 0; 17 $("#menu").children("li").each(function(index){ 18 tW = tW+$(this).width(); 19 n = n+1; 20 }); 21 if(tW<(mH-n)){ 22 var StW = Math.floor((mH-tW)/n); 23 $("#menu").children("li").each(function(index){ 24 var NewW = $(this).width()+StW; 25 $(this).width(NewW); 26 }); 27 } 28 29 //Adattamento Caratteristiche Scheda 30 var fH = $("#features").width(); 31 var fW = 0; 32 $("#features div p").each(function(index){ 33 if($("#features").height()>36){//se c'è qualcosa che va su due righe 34 $(this).css("max-width","128px"); 35 } 36 }); 37 $("#features").children("div.feature").each(function(index){ 38 fW = fW+$(this).width(); 39 }); 40 if(fW<(fH-4)){ 41 var SfW = Math.ceil((fH-fW)/4)-6; 42 $("#features").children("div.feature").each(function(index){ 43 var NewF = $(this).width()+SfW; 44 $(this).width(NewF); 45 }); 46 } 47 //Troncamento testo degli elementi-small 48 $(".elemento-text").each(function(){ 49 var troncato = $(this).html().substring(0,100); 50 $(this).html(troncato+"..."); 51 }); 52 }catch(e){} 53 54 try{//TABS scheda 55 $("#tabs").tabs(); 56 $("#tabs > #tabs-1").find("p").each(function(index){ 57 if($(this).html()==""){ 58 $(this).remove(); 59 } 60 }); 61 }catch(e){} 62 63 try{ 64 //Recupero valori per il motore dalla querystring 65 $("#price").attr('value', getQueryVariable("price")); 66 $("#type").attr('value', getQueryVariable("type")); 67 $("#beds").attr('value', getQueryVariable("beds")); 68 }catch(e){} 69 70 try{//elimino i titoli duplicati nel footer (non è possibile fermare il ciclo lato-server) 71 var h5 = ""; 72 $("#footer > #footer-indent").children("h5").each(function(){ 73 if(h5!=$(this).html()){ 74 h5 = $(this).html(); 75 } else { 76 $(this).remove(); 77 } 78 }); 79 }catch(e){} 80}); 81function toggleLayer(){ 82 whichLayer = "descrizionehide"; 83 if(document.getElementById){ 84 var style2 = document.getElementById(whichLayer).style; 85 style2.display = (style2.display=="block") ? "none" : "block"; 86 } 87 else if (document.all){ 88 var style2 = document.all[whichLayer].style; 89 style2.display = style2.display? "":"block"; 90 } 91 else if (document.layers){ 92 var style2 = document.layers[whichLayer].style; 93 style2.display = style2.display? "":"block"; 94 } 95} 96 97function InfoRequest(){ 98 $("#tabs").tabs("select",4); 99} 100 101function getQueryVariable(variable) { 102 var query = window.location.search.substring(1); 103 var vars = query.split("&"); 104 for (var i=0;i<vars.length;i++) { 105 var pair = vars[i].split("="); 106 if (pair[0] == variable) { 107 return pair[1]; 108 } 109 } 110}
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.