1(function($) { 2 "use strict"; 3 $(window).on('load', function() { 4 $("#loading").fadeOut(500); 5 }); 6 $(document).ready(function() { 7 $('#smoothpage').smoothState({ 8 anchors: 'nav a', 9 blacklist: 'form', 10 }); 11 $("#text_rotating").Morphext({ 12 animation: "fadeInDown", 13 separator: ",", 14 speed: 5000, 15 complete: function() {} 16 }); 17 var wow = new WOW({ 18 boxClass: 'wow', 19 animateClass: 'animated', 20 offset: 0, 21 mobile: true, 22 live: true, 23 callback: function(box) {} 24 }); 25 wow.init(); 26 $(window).on("scroll", function() { 27 var header = $('header') 28 if (header.length > 0) { 29 var window_height = $(this).scrollTop(); 30 var topmenuheight = 50; 31 if (window_height > topmenuheight) { 32 if (header.hasClass("transparent")) 33 header.addClass("nav_bg"); 34 $(".light").addClass("nodisplay"); 35 $(".dark").removeClass("nodisplay"); 36 if (header.hasClass('fixed')) { 37 header.addClass('navbar-fixed-top'); 38 header.addClass("scroll"); 39 } 40 } else { 41 if (header.hasClass("nav_bg")) 42 header.removeClass("nav_bg"); 43 $(".dark").addClass("nodisplay"); 44 $(".light").removeClass("nodisplay"); 45 header.removeClass("scroll"); 46 header.removeClass("navbar-fixed-top"); 47 } 48 } 49 }); 50 $(function() { 51 function toggleNavbarMethod() { 52 if ($(window).width() > 992) { 53 $('.dropdown').on('mouseover', function() { 54 $(this).addClass('open'); 55 $('b', this).toggleClass("caret caret-up"); 56 }).on('mouseout', function() { 57 $(this).removeClass('open'); 58 $('b', this).toggleClass("caret caret-up"); 59 }); 60 } else { 61 $('.dropdown').off('mouseover').off('mouseout'); 62 $('.dropdown-toggle').on('click', function(e) { 63 $('b', this).toggleClass("caret caret-up"); 64 }); 65 } 66 } 67 toggleNavbarMethod(); 68 $(window).on("resize", (toggleNavbarMethod)); 69 $(".navbar-toggle").on("click", function() { 70 $(this).toggleClass("active"); 71 }); 72 }); 73 $('.mobile_menu_btn').jPushMenu({ 74 closeOnClickLink: false 75 }); 76 $('.dropdown-toggle').dropdown(); 77 $('#countdown').each(function() { 78 var $this = $(this) 79 , finalDate = $(this).data('countdown'); 80 $this.countdown(finalDate, function(event) { 81 $this.html(event.strftime('<div class="count_box"><div class="inner"><div class="count_number">%D</div><div class="count_text">Days</div></div></div> ' + '<div class="count_box"><div class="inner"><div class="count_number">%H</div><div class="count_text">Hours</div></div></div> ' + '<div class="count_box"><div class="inner"><div class="count_number">%M</div><div class="count_text">Minutes</div></div></div> ' + '<div class="count_box"><div class="inner"><div class="count_number">%S</div><div class="count_text">Seconds</div><div></div>')); 82 }); 83 }); 84 if ($("#hero").length > 0) { 85 var tpj = jQuery; 86 var revapi429; 87 tpj(document).ready(function() { 88 if (tpj("#hero").revolution == undefined) { 89 revslider_showDoubleJqueryError("#hero"); 90 } else { 91 revapi429 = tpj("#hero").show().revolution({ 92 sliderType: "hero", 93 dottedOverlay: "none", 94 delay: 9000, 95 responsiveLevels: [1200, 992, 768, 480], 96 visibilityLevels: [1200, 992, 768, 480], 97 gridwidth: [1200, 992, 768, 480], 98 gridheight: [800, 800, 500, 400], 99 lazyType: "none", 100 parallax: { 101 type: "scroll", 102 origo: "enterpoint", 103 speed: 400, 104 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50], 105 }, 106 shadow: 0, 107 spinner: "off", 108 autoHeight: "off", 109 forceFullWidth: "off", 110 disableProgressBar: "on", 111 hideSliderAtLimit: 0, 112 hideCaptionAtLimit: 0, 113 hideAllCaptionAtLilmit: 0, 114 debugMode: false, 115 fallbacks: { 116 simplifyAll: "off", 117 disableFocusListener: false, 118 } 119 }); 120 } 121 }); 122 } 123 ;if ($("#classic_slider").length > 0) { 124 var tpj = jQuery; 125 tpj.noConflict(); 126 var revapi6; 127 tpj(document).ready(function() { 128 if (tpj("#classic_slider").revolution == undefined) { 129 revslider_showDoubleJqueryError("#classic_slider"); 130 } else { 131 revapi6 = tpj("#classic_slider").show().revolution({ 132 sliderType: "standard",
133 jsFileLocation: "js/", 134 sliderLayout: "auto", 135 dottedOverlay: "none", 136 delay: 9000, 137 navigation: { 138 keyboardNavigation: "on", 139 keyboard_direction: "horizontal", 140 mouseScrollNavigation: "off", 141 mouseScrollReverse: "default", 142 onHoverStop: "on", 143 touch: { 144 touchenabled: "on", 145 swipe_threshold: 75, 146 swipe_min_touches: 50, 147 swipe_direction: "horizontal", 148 drag_block_vertical: false 149 }, 150 arrows: { 151 style: "hermes", 152 enable: true, 153 hide_onmobile: true, 154 hide_under: 600, 155 hide_onleave: true, 156 tmp: '<div class="tp-arr-allwrapper"><div class="tp-arr-imgholder"></div>', 157 left: { 158 h_align: "left", 159 v_align: "center", 160 h_offset: 0, 161 v_offset: 0 162 }, 163 right: { 164 h_align: "right", 165 v_align: "center", 166 h_offset: 0, 167 v_offset: 0 168 } 169 } 170 }, 171 responsiveLevels: [1200, 992, 768, 480], 172 visibilityLevels: [1200, 992, 768, 480], 173 gridwidth: [1200, 992, 768, 480], 174 gridheight: [750, 750, 700, 700], 175 lazyType: "none", 176 parallax: { 177 type: "scroll", 178 origo: "slidercenter", 179 speed: 2000, 180 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 55], 181 }, 182 shadow: 0, 183 spinner: "off", 184 stopLoop: "on", 185 stopAfterLoops: -1, 186 stopAtSlide: -1, 187 shuffle: "off", 188 autoHeight: "off", 189 hideThumbsOnMobile: "off", 190 hideSliderAtLimit: 0, 191 hideCaptionAtLimit: 0, 192 hideAllCaptionAtLilmit: 0, 193 debugMode: false, 194 fallbacks: { 195 simplifyAll: "off", 196 nextSlideOnWindowFocus: "off", 197 disableFocusListener: false, 198 } 199 }); 200 } 201 }); 202 } 203 ;if ($("#fullscreen_slider").length > 0) { 204 var tpj = jQuery; 205 var revapi24; 206 tpj(document).ready(function() { 207 if (tpj("#fullscreen_slider").revolution == undefined) { 208 revslider_showDoubleJqueryError("#fullscreen_slider"); 209 } else { 210 revapi24 = tpj("#fullscreen_slider").show().revolution({ 211 sliderType: "standard", 212 sliderLayout: "fullscreen", 213 dottedOverlay: "none", 214 delay: 9000, 215 navigation: { 216 keyboardNavigation: "on", 217 keyboard_direction: "horizontal", 218 mouseScrollNavigation: "off", 219 mouseScrollReverse: "default", 220 onHoverStop: "off", 221 touch: { 222 touchenabled: "off", 223 swipe_threshold: 75, 224 swipe_min_touches: 1, 225 swipe_direction: "vertical", 226 drag_block_vertical: false 227 }, 228 bullets: { 229 enable: true, 230 hide_onmobile: true, 231 hide_under: 1024, 232 style: "uranus", 233 hide_onleave: false, 234 direction: "vertical", 235 h_align: "right", 236 v_align: "center", 237 h_offset: 30, 238 v_offset: 0, 239 space: 20, 240 tmp: '<span class="tp-bullet-inner"></span>' 241 } 242 }, 243 viewPort: { 244 enable: true, 245 outof: "wait", 246 visible_area: "80%" 247 }, 248 responsiveLevels: [1200, 992, 768, 480], 249 visibilityLevels: [1200, 992, 768, 480], 250 gridwidth: [1200, 992, 768, 480], 251 lazyType: "single", 252 disableProgressBar: "on", 253 shadow: 0, 254 spinner: "off", 255 stopLoop: "on", 256 stopAfterLoops: 1, 257 stopAtSlide: 1, 258 shuffle: "off", 259 autoHeight: "off", 260 hideThumbsOnMobile: "off", 261 hideSliderAtLimit: 0, 262 hideCaptionAtLimit: 0, 263 hideAllCaptionAtLilmit: 0, 264 debugMode: false, 265 fallbacks: { 266 simplifyAll: "off", 267 nextSlideOnWindowFocus: "off", 268 disableFocusListener: false, 269 } 270 }); 271 } 272 }); 273 }; 274 275 if ($("#fullscreen_hero_video").length > 0) { 276 var tpj = jQuery; 277 var revapi279; 278 tpj(document).ready(function() { 279 if (tpj("#fullscreen_hero_video").revolution == undefined) { 280 revslider_showDoubleJqueryError("#fullscreen_hero_video"); 281 } else { 282 revapi279 = tpj("#fullscreen_hero_video").show().revolution({ 283 sliderType: "hero", 284 sliderLayout: "fullscreen", 285 dottedOverlay: "none", 286 delay: 9000, 287 navigation: {}, 288 responsiveLevels: [1200, 992, 768, 480], 289 visibilityLevels: [1200, 992, 768, 480], 290 gridwidth: [1200, 992, 768, 480], 291 lazyType: "none", 292 parallax: { 293 type: "scroll", 294 origo: "slidercenter", 295 speed: 1000, 296 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55], 297 }, 298 shadow: 0, 299 spinner: "off", 300 disableProgressBar: "on", 301 hideThumbsOnMobile: "off", 302 hideSliderAtLimit: 0, 303 hideCaptionAtLimit: 0, 304 hideAllCaptionAtLilmit: 0, 305 debugMode: false, 306 fallbacks: { 307 simplifyAll: "off", 308 disableFocusListener: false, 309 } 310 }); 311 } 312 }); 313 } 314 ;if ($("#hero_coming_soon").length > 0) { 315 var tpj = jQuery; 316 var revapi279; 317 tpj(document).ready(function() { 318 if (tpj("#hero_coming_soon").revolution == undefined) { 319 revslider_showDoubleJqueryError("#hero_coming_soon"); 320 } else { 321 revapi279 = tpj("#hero_coming_soon").show().revolution({ 322 sliderType: "hero",
323 jsFileLocation: "js/", 324 sliderLayout: "fullscreen", 325 dottedOverlay: "twoxtwo", 326 delay: 9000, 327 navigation: {}, 328 responsiveLevels: [1200, 992, 768, 480], 329 visibilityLevels: [1200, 992, 768, 480], 330 gridwidth: [1200, 992, 768, 480], 331 gridheight: [1080, 800, 800, 800], 332 lazyType: "none", 333 parallax: { 334 type: "scroll", 335 origo: "slidercenter", 336 speed: 1000, 337 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55], 338 }, 339 shadow: 0, 340 spinner: "spinner2", 341 disableProgressBar: "on", 342 hideThumbsOnMobile: "off", 343 hideSliderAtLimit: 0, 344 hideCaptionAtLimit: 0, 345 hideAllCaptionAtLilmit: 0, 346 debugMode: false, 347 fallbacks: { 348 simplifyAll: "off", 349 disableFocusListener: false, 350 } 351 }); 352 } 353 }); 354 } 355 ;if ($("#hero_event").length > 0) { 356 var tpj = jQuery; 357 var revapi429; 358 tpj(document).ready(function() { 359 if (tpj("#hero_event").revolution == undefined) { 360 revslider_showDoubleJqueryError("#hero_event"); 361 } else { 362 revapi429 = tpj("#hero_event").show().revolution({ 363 sliderType: "hero", 364 sliderLayout: "fullwidth", 365 dottedOverlay: "twoxtwo", 366 delay: 9000, 367 navigation: {}, 368 responsiveLevels: [1200, 992, 768, 480], 369 visibilityLevels: [1200, 992, 768, 480], 370 gridwidth: [1200, 992, 768, 480], 371 gridheight: [550, 550, 550, 550], 372 lazyType: "none", 373 parallax: { 374 type: "scroll", 375 origo: "enterpoint", 376 speed: 400, 377 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50], 378 }, 379 shadow: 0, 380 spinner: "off", 381 autoHeight: "off", 382 disableProgressBar: "on", 383 hideThumbsOnMobile: "off", 384 hideSliderAtLimit: 0, 385 hideCaptionAtLimit: 0, 386 hideAllCaptionAtLilmit: 0, 387 debugMode: false, 388 fallbacks: { 389 simplifyAll: "off", 390 disableFocusListener: false, 391 } 392 }); 393 } 394 }); 395 } 396 ;if ($("#hero_restaurant").length > 0) { 397 var tpj = jQuery; 398 var revapi429; 399 tpj(document).ready(function() { 400 if (tpj("#hero_restaurant").revolution == undefined) { 401 revslider_showDoubleJqueryError("#hero_restaurant"); 402 } else { 403 revapi429 = tpj("#hero_restaurant").show().revolution({ 404 sliderType: "hero", 405 dottedOverlay: "twoxtwo", 406 delay: 9000, 407 responsiveLevels: [1200, 992, 768, 480], 408 visibilityLevels: [1200, 992, 768, 480], 409 gridwidth: [1200, 992, 768, 480], 410 gridheight: [550, 550, 550, 550], 411 lazyType: "none", 412 parallax: { 413 type: "scroll", 414 origo: "enterpoint", 415 speed: 400, 416 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50], 417 }, 418 shadow: 0, 419 spinner: "off", 420 autoHeight: "off", 421 forceFullWidth: "off", 422 disableProgressBar: "on", 423 hideSliderAtLimit: 0, 424 hideCaptionAtLimit: 0, 425 hideAllCaptionAtLilmit: 0, 426 debugMode: false, 427 fallbacks: { 428 simplifyAll: "off", 429 disableFocusListener: false, 430 } 431 }); 432 } 433 }); 434 } 435 ;if ($("#hero_spa").length > 0) { 436 var tpj = jQuery; 437 var revapi429; 438 tpj(document).ready(function() { 439 if (tpj("#hero_spa").revolution == undefined) { 440 revslider_showDoubleJqueryError("#hero_spa"); 441 } else { 442 revapi429 = tpj("#hero_spa").show().revolution({ 443 sliderType: "hero", 444 dottedOverlay: "twoxtwo", 445 delay: 9000, 446 responsiveLevels: [1200, 992, 768, 480], 447 visibilityLevels: [1200, 992, 768, 480], 448 gridwidth: [1200, 992, 768, 480], 449 gridheight: [550, 550, 550, 550], 450 lazyType: "none", 451 parallax: { 452 type: "scroll", 453 origo: "enterpoint", 454 speed: 400, 455 levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50], 456 }, 457 shadow: 0, 458 spinner: "off", 459 autoHeight: "off", 460 forceFullWidth: "off", 461 disableProgressBar: "on", 462 hideSliderAtLimit: 0, 463 hideCaptionAtLimit: 0, 464 hideAllCaptionAtLilmit: 0, 465 debugMode: false, 466 fallbacks: { 467 simplifyAll: "off", 468 disableFocusListener: false, 469 } 470 }); 471 } 472 }); 473 } 474 ;var options = { 475 useEasing: true, 476 useGrouping: false, 477 separator: ',',
478 decimal: '.', 479 prefix: '', 480 suffix: '' 481 }; 482 $.each($('.countup'), function() { 483 var count = $(this).data('count') 484 , numAnim = new CountUp(this,0,count); 485 numAnim.start(); 486 }); 487 var owl = $('#testimonials_slider'); 488 owl.owlCarousel({ 489 loop: true, 490 margin: 10, 491 items: 1, 492 nav: false, 493 }); 494 var sliderId = $('#features_slider'); 495 sliderId.owlCarousel({ 496 thumbs: true, 497 thumbsPrerendered: true, 498 items: 1, 499 loop: true, 500 autoplay: true, 501 dots: false, 502 nav: false, 503 }); 504 $(function() { 505 var $grid = $('.grid').isotope({ 506 itemSelector: '.g_item' 507 }); 508 $('.grid_filters').on('click', 'a', function(e) { 509 e.preventDefault(); 510 var filterValue = $(this).attr('data-filter'); 511 $grid.isotope({ 512 filter: filterValue 513 }); 514 }); 515 $('.grid_filters').each(function(i, buttonGroup) { 516 var $buttonGroup = $(buttonGroup); 517 $buttonGroup.on('click', 'a', function() { 518 $buttonGroup.find('.active').removeClass('active'); 519 $(this).addClass('active'); 520 }); 521 }); 522 /*if ($("#gallery").length > 0) { 523 $grid.imagesLoaded().progress(function() { 524 $grid.isotope('layout'); 525 }); 526 }*/ 527 }); 528 var owl = $('#gallery_slider'); 529 owl.owlCarousel({ 530 autoplay:true, 531 loop: true, 532 nav: false, 533 margin: 10, 534 responsive: { 535 0: { 536 items: 1 537 }, 538 600: { 539 items: 2 540 }, 541 960: { 542 items: 3 543 }, 544 1200: { 545 items: 5 546 } 547 } 548 }); 549 var $sync1 = $("#slider-larg") 550 , $sync2 = $("#thumbs") 551 , duration = 300; 552 $sync1.owlCarousel({ 553 items: 1, 554 dots: false, 555 }).on('changed.owl.carousel', function(e) { 556 var syncedPosition = syncPosition(e.item.index); 557 if (syncedPosition != "stayStill") { 558 $sync2.trigger('to.owl.carousel', [syncedPosition, duration, true]); 559 } 560 }); 561 $sync2.on('initialized.owl.carousel', function() { 562 addClassCurrent(0); 563 }).owlCarousel({ 564 dots: false, 565 responsive: { 566 0: { 567 items: 4 568 }, 569 600: { 570 items: 4 571 }, 572 960: { 573 items: 5 574 }, 575 1200: { 576 items: 6 577 } 578 } 579 }).on('click', '.owl-item', function() { 580 $sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]); 581 }); 582 function addClassCurrent(index) { 583 $sync2.find(".owl-item").removeClass("active-item").eq(index).addClass("active-item"); 584 } 585 function syncPosition(index) { 586 addClassCurrent(index); 587 var itemsNo = $sync2.find(".owl-item").length; 588 var visibleItemsNo = $sync2.find(".owl-item.active").length; 589 if (itemsNo === visibleItemsNo) { 590 return "stayStill"; 591 } 592 var visibleCurrentIndex = $sync2.find(".owl-item.active").index($sync2.find(".owl-item.active-item")); 593 if (visibleCurrentIndex == 0 && index != 0) { 594 return index - 1; 595 } 596 if (visibleCurrentIndex == (visibleItemsNo - 1) && index != (itemsNo - 1)) { 597 return index - visibleItemsNo + 2; 598 } 599 return "stayStill"; 600 } 601 var owl = $('.room_list_slider'); 602 owl.owlCarousel({ 603 items: 1, 604 loop: true, 605 dots: false, 606 nav: true, 607 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"] 608 }); 609 $('.datepicker').datepicker({ 610 format: "dd/mm/yyyy", 611 startDate: new Date(), 612 endDate: "18/12/2020", 613 datesDisabled: ['16/01/2017', '17/01/2017', '30/01/2017'], 614 autoclose: true, 615 todayHighlight: true, 616 }); 617 $('select').selectpicker({ 618 style: 'btn-select', 619 size: 'auto', 620 container: 'body', 621 }); 622 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { 623 $('select').selectpicker('mobile'); 624 } 625 $("#booking-form, #horizontal_booking_form, #booking_form_advanced").on('submit', function(e) { 626 e.preventDefault(); 627 var booking_name = $("input[name=booking-name]").val(); 628 var booking_email = $("input[name=booking-email]").val(); 629 var booking_phone = $("input[name=booking-phone]").val(); 630 var booking_roomtype = $("select[name=booking-roomtype]").val(); 631 var booking_adults = $("select[name=booking-adults]").val(); 632 var booking_children = $("select[name=booking-children]").val(); 633 var booking_checkin = $("input[name=booking-checkin]").val(); 634 var booking_checkout = $("input[name=booking-checkout]").val(); 635 var booking_country = $("select[name=booking-country]").val(); 636 var booking_comments = $("textarea[name=booking-comments]").val(); 637 var post_data; 638 var output; 639 post_data = { 640 'booking_name': booking_name, 641 'booking_email': booking_email, 642 'booking_phone': booking_phone, 643 'booking_roomtype': booking_roomtype, 644 'booking_checkin': booking_checkin, 645 'booking_checkout': booking_checkout, 646 'booking_adults': booking_adults, 647 'booking_children': booking_children, 648 'booking_country': booking_country, 649 'booking_comments': booking_comments 650 }; 651 $.post('email/booking.php', post_data, function(response) { 652 if (response.type == 'error') { 653 output = '<div class="notification error"><span class="notification-icon"><i class="fa fa-exclamation" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 654 } else { 655 output = '<div class="notification success"><span class="notification-icon"><i class="fa fa-check" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 656 $("input, textarea").val(''); 657 $('select').val(''); 658 $('select').val('').selectpicker('refresh'); 659 } 660 $("#notification").html(output); 661 $(".notification").delay(15000).queue(function(next) { 662 $(this).addClass("scale-out"); 663 next(); 664 }); 665 $(".notification").on("click", function() { 666 $(this).addClass("scale-out"); 667 }); 668 }, 'json'); 669 }); 670 $("#contact-form, #contact-form-page").on('submit', function(e) { 671 e.preventDefault(); 672 var user_name = $("input[name=name]").val(); 673 var user_phone = $("input[name=phone]").val(); 674 var user_email = $("input[name=email]").val(); 675 var user_subject = $("input[name=subject]").val(); 676 var user_message = $("textarea[name=message]").val(); 677 var post_data; 678 var output; 679 post_data = { 680 'user_name': user_name, 681 'user_email': user_email, 682 'user_message': user_message, 683 'user_phone': user_phone, 684 'user_subject': user_subject 685 }; 686 $.post('email/email.php', post_data, function(response) { 687 if (response.type == 'error') { 688 output = '<div class="notification error"><span class="notification-icon"><i class="fa fa-exclamation" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 689 } else { 690 output = '<div class="notification success"><span class="notification-icon"><i class="fa fa-check" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 691 $("input, textarea").val(''); 692 } 693 $("#notification").html(output); 694 $(".notification").delay(15000).queue(function(next) { 695 $(this).addClass("scale-out"); 696 next(); 697 }); 698 $(".notification").on("click", function() { 699 $(this).addClass("scale-out"); 700 }); 701 }, 'json'); 702 }); 703 $("#subscribe-form").on('submit', function(e) { 704 e.preventDefault(); 705 var subscribe_email = $("input[name=subscribe-email]").val(); 706 var post_data; 707 var output; 708 post_data = { 709 'subscribe_email': subscribe_email, 710 }; 711 $.post('email/subscribe.php', post_data, function(response) { 712 if (response.type == 'error') { 713 output = '<div class="notification error"><span class="notification-icon"><i class="fa fa-exclamation" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 714 } else { 715 output = '<div class="notification success"><span class="notification-icon"><i class="fa fa-check" aria-hidden="true"></i></span><span class="notification-text">' + response.text + '</span></div>'; 716 $("input, textarea").val(''); 717 } 718 $("#notification").html(output); 719 $(".notification").delay(15000).queue(function(next) { 720 $(this).addClass("scale-out"); 721 next(); 722 }); 723 $(".notification").on("click", function() { 724 $(this).addClass("scale-out"); 725 }); 726 }, 'json'); 727 }); 728 $(".magnific-popup, a[data-rel^='magnific-popup']").magnificPopup({ 729 type: 'image', 730 mainClass: 'mfp-with-zoom', 731 zoom: { 732 enabled: true, 733 duration: 300, 734 easing: 'ease-in-out', 735 fixedContentPos: true, 736 opener: function(openerElement) { 737 return openerElement.is('img') ? openerElement : openerElement.find('img'); 738 } 739 }, 740 retina: { 741 ratio: 1, 742 replaceSrc: function(item, ratio) { 743 return item.src.replace(/\.\w+$/, function(m) { 744 return '@2x' + m; 745 }); 746 } 747 } 748 }); 749 $('.image-gallery').magnificPopup({ 750 delegate: 'a', 751 type: 'image', 752 fixedContentPos: true, 753 gallery: { 754 enabled: true 755 }, 756 removalDelay: 300, 757 mainClass: 'mfp-fade', 758 retina: { 759 ratio: 1, 760 replaceSrc: function(item, ratio) { 761 return item.src.replace(/\.\w+$/, function(m) { 762 return '@2x' + m; 763 }); 764 } 765 } 766 }); 767 $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 768 type: 'iframe', 769 mainClass: 'mfp-fade', 770 removalDelay: 300, 771 preloader: false, 772 fixedContentPos: true, 773 }); 774 $('[data-toggle="popover"]').popover(); 775 $('[data-toggle="tooltip"]').tooltip({ 776 animated: 'fade', 777 container: 'body' 778 }); 779 function initialize() { 780 var map; 781 var panorama; 782 var var_latitude = 41.4155012; 783 var var_longitude = 12.9572349; 784 var pin = 'images/icons/pin.svg'; 785 var title = "Villa 1010 B&B - Click to see"; 786 var hotel_name = "Villa 1010 B&B"; 787 var hotel_address = "Via Petrimerco 682, Latina"; 788 var hotel_desc = "Bed And Breakfast"; 789 var hotel_more_desc = "Lorem ipsum dolor sit amet, consectetur."; 790 var hotel_location = new google.maps.LatLng(var_latitude,var_longitude); 791 var mapOptions = { 792 center: hotel_location, 793 zoom: 12, 794 scrollwheel: false, 795 streetViewControl: false 796 }; 797 map = new google.maps.Map(document.getElementById('map-canvas'),mapOptions); 798 var contentString = '<div id="infowindow_content">' + '<p><strong>' + hotel_name + '</strong><br>' + hotel_address + '<br>' + hotel_desc + '<br>' + hotel_more_desc + '</p>' + '</div>'; 799 var var_infowindow = new google.maps.InfoWindow({ 800 content: contentString 801 }); 802 var marker = new google.maps.Marker({ 803 position: hotel_location, 804 map: map, 805 icon: pin, 806 title: title, 807 maxWidth: 500, 808 optimized: false, 809 }); 810 google.maps.event.addListener(marker, 'click', function() { 811 var_infowindow.open(map, marker); 812 }); 813 panorama = map.getStreetView(); 814 panorama.setPosition(hotel_location); 815 panorama.setPov(({ 816 heading: 265, 817 pitch: 0 818 })); 819 var openStreet = document.getElementById('openStreetView'); 820 if (openStreet) { 821 document.getElementById("openStreetView").onclick = function() { 822 toggleStreetView() 823 } 824 ; 825 } 826 function toggleStreetView() { 827 var toggle = panorama.getVisible(); 828 if (toggle == false) { 829 panorama.setVisible(true); 830 } else { 831 panorama.setVisible(false); 832 } 833 } 834 } 835 if ($("#map-canvas").length) { 836 google.maps.event.addDomListener(window, 'load', initialize); 837 } 838 var amountScrolled = 500; 839 var back_to_top = $('#back_to_top'); 840 $(window).on('scroll', function() { 841 if ($(window).scrollTop() > amountScrolled) { 842 back_to_top.addClass('active'); 843 } else { 844 back_to_top.removeClass('active'); 845 } 846 }); 847 back_to_top.on('click', function() { 848 $('html, body').animate({ 849 scrollTop: 0 850 }, 500); 851 return false;
852 }); 853 }); 854} 855)(jQuery);
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.