1 2 3(function($) { 4 "use strict"; 5 6 /*Bootstrap Multilevel Dropdown*/ 7 $('.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 8 event.preventDefault(); 9 event.stopPropagation(); 10 $(this).parent().siblings().removeClass('open'); 11 $(this).parent().toggleClass('open') 12 }); 13 14 $('[data-toggle="tooltip"]').tooltip(); 15 16 if($('.home-slider').length){ 17 $('.home-slider').each(function(){ 18 $('.home-slider').owlCarousel({ 19 items: 1, 20 margin: 0, 21 nav: false, 22 autoplay: false, 23 loop: true 24 }) 25 }) 26 } 27 28 if($('.services-at-hostpro').length){ 29 $('.services-at-hostpro').each(function(){ 30 $('.services-at-hostpro').owlCarousel({ 31 items: 1, 32 margin: 0, 33 nav: false, 34 autoplay: true 35 }) 36 }) 37 } 38 39 if($('.features-slider').length){ 40 $('.features-slider').each(function(){ 41 $('.features-slider').owlCarousel({ 42 items: 1, 43 margin: 0, 44 nav: false, 45 autoplay: true 46 }) 47 }) 48 } 49 50 if($('.testimonail-carousel').length){ 51 $('.testimonail-carousel').each(function(){ 52 $('.testimonail-carousel').owlCarousel({ 53 items: 1, 54 margin: 0, 55 nav: true, 56 navText: ['<img src="assets/icons/s-arrow-left.png" alt="Testmonial Arrow">','<img src="assets/icons/s-arrow-right.png" alt="Testmonial Arrow">'], 57 autoplay: true, 58 loop: true 59 }) 60 }) 61 } 62 63 if ( $('[data-slide]').length ){ 64 $('[data-slide]').each(function(){ 65 var data_value = $(this).data('slide'); 66 $(this).css('background-image', 'url('+ data_value +')') 67 }) 68 } 69 70 if ( $('.navbar-style1').length ){ 71 $('.navbar-style1').affix({ 72 offset: { 73 top: 200, 74 bottom: function () { 75 return (this.bottom = $('.site-footer').outerHeight(true)) 76 } 77 } 78 }) 79 } 80 81// if ( $('.navbar-style2').length ){ 82// $('.navbar-style2').affix({ 83// offset: { 84// top: 200, 85// bottom: function () { 86// return (this.bottom = $('.site-footer').outerHeight(true)) 87// } 88// } 89// }) 90// } 91 92 if( $(".customer-testimonial").length ){ 93 $(".customer-testimonial").on("slid.bs.carousel", function() { 94 var to_slide; 95 to_slide = $(".carousel-item.active").attr("data-slide-no"); 96 $(".myCarousel-target.active").removeClass("active"); 97 $(".carousel-indicators.dotv [data-slide-to=" + to_slide + "]").addClass("active") 98 }) 99 $(".myCarousel-target").on("click", function(e) { 100 e.preventDefault(); 101 $(".customer-testimonial").carousel(parseInt($(this).attr("data-slide-to"))); 102 $(".myCarousel-target.active").removeClass("active"); 103 $(this).addClass("active") 104 }) 105 } 106 107 if( $(".popup-video").length ){ 108 $('.popup-video').magnificPopup({ 109 disableOn: 700, 110 type: 'iframe', 111 mainClass: 'mfp-fade', 112 removalDelay: 160, 113 preloader: true, 114 115 fixedContentPos: false 116 }); 117 } 118 119 if ( $('.go-back').length ){ 120 $('.go-back').on('click', function(){ 121 parent.history.back(); 122 return false 123 }); 124 } 125 126 if ( $('.counter').length ){ 127 $('.counter').counterUp(); 128 } 129 130 131 132 if ( $('.gmapbox').length ){ 133 var $lat = $('.gmapbox').data('lat'); 134 var $lon = $('.gmapbox').data('lon'); 135 var $zoom = $('.gmapbox').data('zoom'); 136 var $marker = $('.gmapbox').data('marker'); 137 var map = new GMaps({ 138 el: '.gmapbox', 139 lat: $lat, 140 lng: $lon, 141 scrollwheel: false, 142 scaleControl: true, 143 streetViewControl: false, 144 panControl: true, 145 disableDoubleClickZoom: true, 146 mapTypeControl: false, 147 zoom: $zoom, 148 styles: [ 149 {"featureType":"all","stylers":[{"saturation":0},{"hue":"#e7ecf0"}]},{"featureType":"road","stylers":[{"saturation":-70}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"water","stylers":[{"visibility":"simplified"},{"saturation":-60}]} 150 ] 151 }); 152 153 map.addMarker({ 154 lat: $lat, 155 lng: $lon, 156 icon: $marker 157 }) 158 } 159 160 if ( $('.widget select').length ){ 161 $('.widget select').selectpicker() 162 } 163 164 if ( $('.number-spinner').length ){ 165 $(document).on('click', '.number-spinner button', function () { 166 var btn = $(this), 167 oldValue = btn.closest('.number-spinner').find('input').val().trim(), 168 newVal = 0; 169 170 if (btn.attr('data-dir') == 'up') { 171 newVal = parseInt(oldValue) + 1 172 } else { 173 if (oldValue > 1) { 174 newVal = parseInt(oldValue) - 1 175 } else { 176 newVal = 1 177 } 178 } 179 btn.closest('.number-spinner').find('input').val(newVal) 180 }) 181 } 182 183 if ( $( "#slider-range" ).length ){ 184 $( "#slider-range" ).slider({ 185 range: true, 186 min: 0, 187 max: 500, 188 values: [ 75, 300 ], 189 slide: function( event, ui ) { 190 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); 191 $( "[for='amount']" ).html( "Price: <sup>$</sup>" + $( "#slider-range" ).slider( "values", 0 ) + " - <sup>$</sup>" + $( "#slider-range" ).slider( "values", 1 ) ) 192 } 193 }); 194 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + " - $" + $( "#slider-range" ).slider( "values", 1 ) ); 195 $( "[for='amount']" ).html( "Price: <sup>$</sup>" + $( "#slider-range" ).slider( "values", 0 ) + " - <sup>$</sup>" + $( "#slider-range" ).slider( "values", 1 ) ) 196 } 197
198 if ( $('.flipstar-carousel').length ){ 199 $('.flipstar-carousel').flipster({ 200 nav: true, 201 style: 'flat', 202 loop: true, 203 touch: true, 204 spacing: -0.4, 205 }) 206 } 207 208 209 210 211 212})(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.