1$(function() { 2 3 /* Preloader */ 4 jQuery(document).ready(function($) { 5 setTimeout(function(){ 6 $('#preloader').remove(); 7 },1200); 8 }); 9 /* Page transition */ 10 $(function() { 11 $('body').removeClass('fade-out'); 12 }); 13 14 /* Classi allo scroll */ 15 $(function() { 16 //caches a jQuery object containing the header element 17 var header = $("header"); 18 $(window).scroll(function() { 19 var scroll = $(window).scrollTop(); 20 21 if (scroll >= 400) { 22 header.removeClass('ontop').addClass("scrolled"); 23 } else { 24 header.removeClass("scrolled").addClass('ontop'); 25 } 26 }); 27 }); 28 29 /* Top Offerte */ 30 $( document ).ready(function() { 31 if ( $( "#template1" ).length ) { 32 $('#varsimple_offers').trigger( "click" ); 33 setTimeout(function(){ 34 $('#varsimple_offers').removeClass('fired'); 35 $('#popslide_offers').removeClass('fired'); 36 },5000); 37 } 38 }); 39 40 41 $('#varsimple_offers').click(function(e){ 42 $(this).toggleClass('fired'); 43 $('#popslide_offers').toggleClass('fired'); 44 e.preventDefault(); 45 }); 46 47 48 49 $(function() { 50 if ($('#fixed_videos').length) 51 { 52 $('#close_video').click(function(e){ 53 $("iframe.youtube-player").attr("src", $("iframe.youtube-player").attr("src").replace("showinfo=0&autoplay=1", "showinfo=0")); 54 $('.videos').removeClass('fired'); 55 $('#close_video').removeClass('fired'); 56 }); 57 58 $('#varsimple_watch_video').click(function(e){ 59 $("iframe.youtube-player").attr("src", $("iframe.youtube-player").attr("src").replace("showinfo=0", "showinfo=0&autoplay=1")); 60 $('.videos').addClass('fired'); 61 $('#close_video').addClass('fired'); 62 }); 63 } 64 65 }); 66 67 68 69 70 71 72 /* Video */ 73 74// $('#varsimple_watch_video').click(function(e){ 75// $(this).toggleClass('fired'); 76// $('.videos').addClass('fired'); 77// $(".youtube-player")[0].src += "&autoplay=1"; 78// e.preventDefault(); 79// }); 80// $('#close_video').click(function(e){ 81// $(this).toggleClass('fired'); 82// $('.videos').removeClass('fired'); 83// $(".youtube-player")[0].src += ""; 84// e.preventDefault(); 85// }); 86 87 88 /* porto a capo il titolo dopo la virgola sul template2 */ 89 if ( $( "#template2" ).length ) { 90 $('#template2 h2.title a').html($('#template2 h2.title a').html().replace(',',', <br>')); 91 } 92 93 94 /* Menu */ 95 $('#menu-btn').click(function(e){ 96 $('#menu_open').toggleClass('fired'); 97 $(this).toggleClass('fired'); 98 e.preventDefault(); 99 100 }); 101 102 /* Booking fix */ 103 104 $( document ).ready(function() { 105 $( ".select_wrap" ).prepend( "<div class='fix_click'></div>" ); 106 }); 107 108 $(document).on('click', '#form_4 .form.field .fix_click', function (){ 109 $(this).parent().find('.current_value').trigger('click'); 110 $(this).closest('.select').toggleClass('fired'); 111 }); 112 113 114 $(".select").mouseout(function(){ 115 $(this).removeClass('fired'); 116 }); 117 118 119 120 /* Gallery Camere */ 121 $('.rooms .gallery ul').slick({ 122 slidesToShow: 1, 123 slidesToScroll: 1, 124 arrows: true, 125 dots: false, 126 fade: true, 127 autoplay: true, 128 autoplaySpeed: 10000, 129 }); 130 131 /*Mobile Booking */ 132 $('#varsimple_mobile_booking_btn').click(function(e){ 133 $(this).toggleClass('fired'); 134 $('.booking-form').addClass('fired'); 135 e.preventDefault(); 136 }); 137 138 $('.close').click(function(e){ 139 $('.booking-form').removeClass('fired'); 140 e.preventDefault(); 141 }); 142 143 /* tooltip form */ 144 $( document ).ready(function() { 145 $('#form_tooltip').prependTo('.booking-form form'); 146 $('#form_tooltip').addClass('fired'); 147 setTimeout(function(){ 148 $('#form_tooltip').removeClass('fired'); 149 },8000); 150 $('.booking-form form .caption-fields a').hover(function(){ 151 $('#form_tooltip').removeClass('fired'); 152 }); 153 }); 154 155 $('.booking-form form .caption-fields input[type="submit"]').hover(function(){ 156 $('#form_tooltip').removeClass('fired'); 157 }); 158 159 160 161 162 163 /* Animazioni scrolling */ 164 $("#template2 .row .box .elem .caption-cnt .caption-alt .zsimplebutton").inView(function(){ $('#template2 .row .box .elem .caption-cnt .caption-add').addClass('onview'); }); 165 $("#roomsanchor").inView(function(){ $('#template3 .row .box .elem .caption-cnt .caption').addClass('onview'); }); 166 $("#template3 .row .box .elem .caption-cnt .caption-alt .zsimplebutton").inView(function(){ $('#template3 .row .box .elem .caption-cnt .caption-alt').addClass('onview'); }); 167 $("#template4 .row .box .elem").inView(function(){ $('#template4 .row .box .elem .caption-cnt .caption').addClass('onview'); }); 168 $("#template4 .row .box .elem .caption-cnt .caption-alt").inView(function(){ $(this).addClass('onview'); $("#template4 .row .box .elem .caption-cnt .caption-add").addClass('onview'); }); 169 $("#template5 .row .box .elem .caption-cnt .caption").inView(function(){ $('#template5 .row .box .elem .caption-cnt').addClass('onview'); }); 170 $(".rooms #page_content .gallery").inView(function(){ $(this).addClass('onview'); }); 171 172 /* Mostra elementi allo scroll. Lo uso per le gallery */ 173 window.sr = ScrollReveal({ duration: 1000 }); 174 sr.reveal('#gallery .gallery ul li', 120); 175 sr.reveal('#template8 .row .box .elem', 50); 176 177 178 179 180 181 182 183 184 185 186 187
vendor: 3 bytes, line 188
188});
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.