1/* 2Name: Hotel 3Written by: Okler Themes - (http://www.okler.net) 4Theme Version: 4.9.2 5*/ 6 7(function( $ ) { 8 9 'use strict'; 10 11 // Slider 12 $('#revolutionSlider').revolution({ 13 sliderType: 'standard', 14 sliderLayout: 'fullwidth', 15 delay: 5000, 16 gridwidth: 1170, 17 gridheight: 530, 18 spinner: 'off', 19 disableProgressBar: 'on', 20 parallax:{ 21 type:"on", 22 levels:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], 23 origo:"enterpoint", 24 speed:400, 25 bgparallax:"on", 26 disable_onmobile:"off" 27 }, 28 navigation: { 29 keyboardNavigation:"off", 30 keyboard_direction: "horizontal", 31 mouseScrollNavigation:"off", 32 onHoverStop:"on", 33 touch:{ 34 touchenabled:"on", 35 swipe_threshold: 75, 36 swipe_min_touches: 1, 37 swipe_direction: "horizontal", 38 drag_block_vertical: false 39 } 40 , 41 bullets: { 42 enable:true, 43 hide_onmobile:true, 44 hide_under:778, 45 style:"hermes", 46 hide_onleave:false, 47 direction:"horizontal", 48 h_align:"center", 49 v_align:"bottom", 50 h_offset:0, 51 v_offset:20, 52 space:5, 53 tmp:'' 54 } 55 } 56 }); 57 58 // Header 59 var $headerWrapper = $('#headerBookNow'); 60 61 $headerWrapper.find('input').on('focus', function() { 62 $headerWrapper.addClass('open'); 63 64 $(document).mouseup(function(e) { 65 if (!$headerWrapper.is(e.target) && $headerWrapper.has(e.target).length === 0 && !$(e.target).parents('.datepicker').get(0)) { 66 $headerWrapper.removeClass('open'); 67 } 68 }); 69 }); 70 71 // DatePicker 72 $('#bookNowArrivalHeader').datepicker({ 73 defaultDate: '+1d', 74 startDate: '+1d', 75 autoclose: true, 76 orientation: 'bottom', 77 container: '#header' 78 }); 79 80 $('#bookNowDepartureHeader').datepicker({ 81 defaultDate: '+2d', 82 startDate: '+2d', 83 autoclose: true, 84 orientation: 'bottom', 85 container: '#header' 86 }); 87 88 $(document).scroll(function(){ 89 $('#bookNowArrivalHeader, #bookNowDepartureHeader').datepicker('hide').blur(); 90 }); 91 92 $('#bookNowArrival').datepicker({ 93 defaultDate: '+1d', 94 startDate: '+1d', 95 autoclose: true, 96 orientation: 'bottom', 97 container: '#bookForm' 98 }); 99 100 $('#bookNowDeparture').datepicker({ 101 defaultDate: '+2d', 102 startDate: '+2d', 103 autoclose: true, 104 orientation: 'bottom', 105 container: '#bookForm' 106 }); 107 108 // Book Form 109 $('#bookFormHeader').validate({ 110 onkeyup: false, 111 onclick: false, 112 onfocusout: false, 113 errorPlacement: function(error, element) { 114 if (element.attr('type') == 'radio' || element.attr('type') == 'checkbox') { 115 error.appendTo(element.parent().parent()); 116 } else { 117 error.insertAfter(element); 118 } 119 } 120 }); 121 122 $('#bookForm').validate({ 123 onkeyup: false, 124 onclick: false, 125 onfocusout: false, 126 errorPlacement: function(error, element) { 127 if (element.attr('type') == 'radio' || element.attr('type') == 'checkbox') { 128 error.appendTo(element.parent().parent()); 129 } else { 130 error.insertAfter(element); 131 } 132 } 133 }); 134 135 // Custom Video 136 $('.play-video-custom').magnificPopup({ 137 disableOn: 700, 138 type: 'iframe', 139 mainClass: 'mfp-fade', 140 removalDelay: 160, 141 preloader: false, 142 143 fixedContentPos: false 144 }); 145 146}).apply( this, [ 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.