1$(document).ready(function () { 2 posizionefastreservation(); 3}); 4 5$(window).resize(function () { 6 posizionefastreservation(); 7}); 8 9$(window).scroll(function () { 10 posizionefastreservation(); 11}); 12 13$(function(){ 14 $(".input_persone").click(function (event) { 15 $(".prenotaFR").fadeIn(600); 16 $(".promoFastFr").fadeOut(600); 17 $("header").css('z-index', '4'); 18 event.stopPropagation(); 19 }); 20 21 $(".prenotaFR").click(function (event) { 22 event.stopPropagation(); 23 }); 24 25 $(".promo").click(function (event) { 26 $(".promoFastFr").fadeIn(600); 27 $(".prenotaFR").fadeOut(600); 28 event.stopPropagation(); 29 }); 30 31 $(".promoFastFr").click(function (event) { 32 event.stopPropagation(); 33 }); 34 35 $(".prenotaFR .fatto").click(function () { 36 $(".prenotaFR").fadeOut(600); 37 $("header").css('z-index', ''); 38 }); 39 40 $(".promoFastFr .fatto").click(function () { 41 $(".promoFastFr").fadeOut(600); 42 }); 43 44 $("#booknow").click(function () { 45 $(".fr").toggle("slide", { direction: "up" }, 700); 46 $("#booknow").fadeOut(800); 47 $(".chiudi-fr").fadeIn(800); 48 }); 49 50 $(".chiudi-fr").click(function () { 51 $(".fr").toggle("slide", { direction: "up" }, 700); 52 $("#booknow").fadeIn(800); 53 $(".chiudi-fr").fadeOut(800); 54 }); 55 56 $(window).click(function() { 57 $(".prenotaFR").fadeOut(600); 58 $(".promoFastFr").fadeOut(600); 59 $("header").css('z-index', ''); 60 }); 61}); 62 63function posizionefastreservation() { 64 var larghezzawindow = $(window).width(); 65 66 if($(window).width()<992){ 67 //$("#prenota.prenotamobile h3").attr("onclick","move('prenotazioni')"); 68 } 69 else{ 70 $("#prenota.prenotamobile h3").removeAttr("onclick"); 71 } 72 73 if($("#page_index").length){ 74 var primasection = $("article section:first-child").attr('id'); 75 var altezzaprimasezione = $("#" + primasection).height(); 76 77 if(larghezzawindow > 992){ 78 if ($(window).scrollTop() >= (altezzaprimasezione - 200)) { 79 $("#fastreservation").addClass('fr'); 80 81 /*$("#booknow").fadeIn(800);*/ 82 } 83 else{ 84 85 /*$("#booknow").fadeOut(0);*/ 86 } 87 } 88 else { 89 $("#fastreservation").css('display', 'none'); 90 $("#fastreservation").addClass('fr'); 91 92 } 93/* 94 if ($("#page_index").length && $(window).scrollTop() >= 10) { 95 $("#booknow").css('display', 'block'); 96 } 97 else if ($("#page_index").length && $(window).scrollTop() <= 10) { 98 $("#booknow").css('display', 'none'); 99 } 100 */ 101 } 102}
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.