1jQuery(document).ready(function(){ 2 "use strict"; 3 4 jQuery(document).setNav(); 5 6 var moduloThumbnail = false; 7 if(jQuery('#tg_lightbox_thumbnails').val() == 'thumbnail') 8 { 9 moduloThumbnail = true; 10 } 11 12 var lightboxTimer = jQuery('#tg_lightbox_timer').val(); 13 14 // create instance of ModuloBox 15 var mobx = ''; 16 17 mobx = new ModuloBox({ 18 // options 19 mediaSelector : '.tg_gallery_lightbox, .woocommerce-product-gallery__image a', 20 scrollToZoom : true, 21 controls : ['zoom', 'play', 'fullScreen', 'share', 'close'], 22 shareButtons : ['facebook', 'googleplus', 'twitter', 'pinterest', 'linkedin'], 23 slideShowInterval : parseInt(lightboxTimer), 24 countTimer: true, 25 thumbnails: moduloThumbnail, 26 videoAutoPlay: true, 27 thumbnailSizes : { 28 1920 : { // browser width in 'px' 29 width : 110, // thumbnail width in 'px' - 0 in width will hide thumbnails 30 height : 80, // thumbnail height in 'px' - 0 in height will hide thumbnails 31 gutter : 10 // gutter width in 'px' between thumbnails 32 }, 33 1280 : { 34 width : 90, 35 height : 65, 36 gutter : 10 37 }, 38 680 : { 39 width : 70, 40 height : 50, 41 gutter : 8 42 }, 43 480 : { 44 width : 60, 45 height : 44, 46 gutter : 5 47 } 48 } 49 }); 50 51 // initialize the instance 52 mobx.init(); 53 54 jQuery(window).resize(function(){ 55 //Resize main menu 56 jQuery(document).setNav(); 57 58 if(jQuery(this).width() < 768) 59 { 60 //Remove sticky sidebar for mobile & tablet devices 61 jQuery("#page_content_wrapper .sidebar_wrapper").trigger("sticky_kit:detach"); 62 } 63 else 64 { 65 //Calculate wrapper padding top value 66 if(jQuery('#tg_header_content').val() == 'menu') 67 { 68 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px'); 69 } 70 else 71 { 72 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); 73 } 74 75 //Reset menu padding top and bottom 76 jQuery('#menu_wrapper div .nav > li > a').attr('style', ''); 77 jQuery('#menu_wrapper div .nav > li > a').attr('style', ''); 78 } 79 80 //Calculate revolution slider height 81 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0) 82 { 83 var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height(); 84 var topBarHeight = jQuery('.top_bar').height(); 85 86 if(jQuery('.above_top_bar').length > 0) 87 { 88 topBarHeight+= jQuery('.above_top_bar').height(); 89 } 90 91 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0) 92 { 93 var topBarHeight = 55; 94 } 95 96 jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 97 jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 98 } 99 }); 100 101 jQuery('#menu_expand_wrapper a').on( 'click', function(){ 102 jQuery('#menu_wrapper').fadeIn(); 103 jQuery('#custom_logo').animate({'left': '15px', 'opacity': 1}, 400); 104 jQuery('#menu_close').animate({'left': '-10px', 'opacity': 1}, 400); 105 jQuery(this).animate({'left': '-60px', 'opacity': 0}, 400); 106 jQuery('#menu_border_wrapper select').animate({'left': '0', 'opacity': 1}, 400).fadeIn(); 107 }); 108 109 jQuery('#menu_close').on( 'click', function(){ 110 jQuery('#custom_logo').animate({'left': '-200px', 'opacity': 0}, 400); 111 jQuery(this).stop().animate({'left': '-200px', 'opacity': 0}, 400); 112 jQuery('#menu_expand_wrapper a').animate({'left': '20px', 'opacity': 1}, 400); 113 jQuery('#menu_border_wrapper select').animate({'left': '-200px', 'opacity': 0}, 400).fadeOut(); 114 jQuery('#menu_wrapper').fadeOut(); 115 }); 116 117 //Add to top button when scrolling 118 jQuery(window).scroll(function() { 119 var calScreenWidth = jQuery(window).width(); 120 121 if(jQuery(this).scrollTop() > 200) { 122 jQuery('#toTop').css({opacity: 1, "visibility": "visible"}).animate({"visibility": "visible"}, {duration:1000,easing:"easeOutExpo"}); 123 } else if(jQuery(this).scrollTop() == 0) { 124 jQuery('#toTop').css({opacity: 0, "visibility": "hidden"}).animate({"visibility": "hidden"}, {duration:1500,easing:"easeOutExpo"}); 125 } 126 }); 127 128 jQuery('#toTop, .hr_totop').on( 'click', function() { 129 jQuery('body,html,#page_content_wrapper.split').animate({scrollTop:0},800); 130 }); 131 132 var isDisableDragging = jQuery('#pp_enable_dragging').val(); 133 134 if(isDisableDragging!='') 135 { 136 jQuery("img").mousedown(function(){ 137 return false;
138 }); 139 } 140 141 if(jQuery('#pp_topbar').val()==0) 142 { 143 var topBarHeight = jQuery('.header_style_wrapper').height(); 144 } 145 else 146 { 147 var topBarHeight = parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height()); 148 } 149 150 var logoHeight = jQuery('#custom_logo img').height(); 151 var logoTransHeight = jQuery('#custom_logo_transparent img').height(); 152 var logoMargin = parseInt(jQuery('#custom_logo').css('marginTop')); 153 var logoTransMargin = parseInt(jQuery('#custom_logo_transparent').css('marginTop')); 154 var menuPaddingTop = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop')); 155 var menuPaddingBottom = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom')); 156 var SearchPaddingTop = parseInt(jQuery('.top_bar #searchform button').css('paddingTop')); 157 var menuLayout = jQuery('#pp_menu_layout').val(); 158 159 if(menuLayout != 'leftmenu' || jQuery(window).width()<=768) 160 { 161 //Calculate wrapper padding top value 162 if(jQuery('#tg_header_content').val() == 'menu') 163 { 164 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px'); 165 } 166 else 167 { 168 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); 169 setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); }, 200); 170 setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor_header').height())+'px'); }, 1000); 171 } 172 } 173 174 if(menuLayout != 'leftmenu' || jQuery(window).width()<=960) 175 { 176 jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px'); 177 jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('paddingBottom', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px'); 178 179 jQuery(window).scroll(function(){ 180 if(jQuery('#pp_fixed_menu').val()==1 && jQuery('html').data('style') != 'fullscreen' && jQuery('html').data('style') != 'fullscreen_white') 181 { 182 if(jQuery(this).scrollTop() >= 200){ 183 jQuery('.extend_top_contact_info').hide(); 184 185 jQuery('.header_style_wrapper').addClass('scroll'); 186 jQuery('.top_bar').addClass('scroll'); 187 188 if(jQuery('.top_bar').hasClass('hasbg')) 189 { 190 jQuery('.top_bar').removeClass('hasbg'); 191 jQuery('.top_bar').data('hasbg', 1); 192 193 jQuery('#custom_logo').removeClass('hidden'); 194 jQuery('#custom_logo_transparent').addClass('hidden'); 195 } 196 } 197 else if(jQuery(this).scrollTop() < 200) 198 { 199 jQuery('.extend_top_contact_info').show(); 200 201 jQuery('#custom_logo img').removeClass('zoom'); 202 jQuery('#custom_logo img').css('maxHeight', ''); 203 jQuery('#custom_logo_transparent img').removeClass('zoom'); 204 205 jQuery('#custom_logo').css('marginTop', parseInt(logoMargin)+'px'); 206 jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin)+'px'); 207 208 jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', menuPaddingTop+'px'); 209 jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', menuPaddingBottom+'px'); 210 211 if(jQuery('.top_bar').data('hasbg')==1) 212 { 213 jQuery('.top_bar').addClass('hasbg'); 214 jQuery('#custom_logo').addClass('hidden'); 215 jQuery('#custom_logo_transparent').removeClass('hidden'); 216 } 217 218 jQuery('.header_style_wrapper').removeClass('scroll'); 219 jQuery('.top_bar').removeClass('scroll'); 220 } 221 } 222 else 223 { 224 if(jQuery(this).scrollTop() >= 200) 225 { 226 jQuery('.header_style_wrapper').addClass('nofixed'); 227 } 228 else 229 { 230 jQuery('.header_style_wrapper').removeClass('nofixed'); 231 } 232 } 233 }); 234 235 if(jQuery('#tg_smart_fixed_menu').val()==1 && jQuery('html').data('style') != 'fullscreen' && jQuery('html').data('style') != 'fullscreen_white') 236 { 237 //Smart sticky menu 238 if(!is_touch_device()) 239 { 240 var lastScrollTop = 0; 241 jQuery(window).scroll(function(event){ 242 var st = jQuery(this).scrollTop(); 243 if (st > lastScrollTop && st > 0){ 244 jQuery('.top_bar').removeClass('scroll_up'); 245 jQuery('.header_style_wrapper').removeClass('scroll_up'); 246 jQuery('.header_style_wrapper').addClass('scroll_down'); 247 } else { 248 jQuery('.top_bar').addClass('scroll_up'); 249 jQuery('.header_style_wrapper').addClass('scroll_up'); 250 jQuery('.header_style_wrapper').removeClass('scroll_down'); 251 } 252 lastScrollTop = st; 253 254 jQuery('.header_style_wrapper').attr('data-st', st); 255 jQuery('.header_style_wrapper').attr('data-lastscrolltop', lastScrollTop); 256 }); 257 } 258 else 259 {
260 var lastY; 261 jQuery(document).bind('touchmove', function (e){ 262 var currentY = e.originalEvent.touches[0].clientY; 263 264 if(currentY > 200){ 265 jQuery('.top_bar').addClass('scroll_up'); 266 jQuery('.header_style_wrapper').addClass('scroll_up'); 267 jQuery('.header_style_wrapper').removeClass('scroll_down'); 268 269 } else { 270 jQuery('.top_bar').removeClass('scroll_up'); 271 jQuery('.header_style_wrapper').removeClass('scroll_up'); 272 jQuery('.header_style_wrapper').addClass('scroll_down'); 273 } 274 275 jQuery('.header_style_wrapper').attr('data-pos', currentY); 276 }); 277 } 278 } 279 } //If not left menu layout 280 281 //script for Elementor header 282 jQuery(window).scroll(function(){ 283 if(jQuery('#pp_fixed_menu').val()==1) 284 { 285 if(jQuery(this).scrollTop() >= 100){ 286 jQuery('#elementor_header').removeClass('visible'); 287 jQuery('#elementor_sticky_header').addClass('visible'); 288 } 289 else if(jQuery(this).scrollTop() < 100) 290 { 291 jQuery('#elementor_header').addClass('visible'); 292 jQuery('#elementor_sticky_header').removeClass('visible'); 293 } 294 } 295 }); 296 297 jQuery(document).mouseenter(function() 298 { 299 jQuery('body').addClass('hover'); 300 }); 301 302 jQuery(document).mouseleave(function() 303 { 304 jQuery('body').removeClass('hover'); 305 }); 306 307 jQuery('#post_more_close').on( 'click', function(){ 308 jQuery('#post_more_wrapper').animate({ right: '-380px' }, 300); 309 310 return false; 311 }); 312 313 jQuery('#mobile_nav_icon, #elementor_mobile_nav, .elementor_mobile_nav').on( 'click', function() { 314 jQuery('body').addClass('js_nav'); 315 jQuery('body').addClass('modalview'); 316 jQuery('#close_mobile_menu').addClass('open'); 317 318 if(is_touch_device()) 319 { 320 jQuery('body.js_nav').css('overflow', 'auto'); 321 } 322 }); 323 324 jQuery('#close_mobile_menu').on( 'click', function() { 325 jQuery('body').removeClass('js_nav'); 326 setTimeout(function () { jQuery('body').removeClass('modalview'); }, 400); 327 jQuery(this).removeClass('open'); 328 }); 329 330 jQuery('.mobile_menu_close a, #mobile_menu_close').on( 'click', function() { 331 jQuery('body').removeClass('js_nav'); 332 setTimeout(function () { jQuery('body').removeClass('modalview'); }, 400); 333 jQuery('#close_mobile_menu').removeClass('open'); 334 }); 335 336 jQuery('.post_share').on( 'click', function() { 337 var targetShareID = jQuery(this).attr('data-share'); 338 var targetParentID = jQuery(this).attr('data-parent'); 339 340 jQuery(this).toggleClass('visible'); 341 jQuery('#'+targetShareID).toggleClass('slideUp'); 342 jQuery('#'+targetParentID).toggleClass('sharing'); 343 344 return false; 345 }); 346 347 348 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0) 349 { 350 var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height(); 351 var topBarHeight = jQuery('.top_bar').height(); 352 353 if(jQuery('.above_top_bar').length > 0) 354 { 355 topBarHeight+= jQuery('.above_top_bar').height(); 356 } 357 358 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0) 359 { 360 var topBarHeight = 55; 361 } 362 363 jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 364 jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 365 } 366 367 jQuery('#demo_apply').on( 'click', function(){ 368 jQuery('#ajax_loading').addClass('visible'); 369 jQuery('body').addClass('loading'); 370 jQuery("form#form_option").submit(); 371 }); 372 373 jQuery('#option_wrapper').mouseenter(function() 374 { 375 jQuery('body').addClass('overflow_hidden'); 376 }); 377 378 jQuery('#option_wrapper').mouseleave(function() 379 { 380 jQuery('body').removeClass('overflow_hidden'); 381 }); 382 383 var calScreenHeight = jQuery(window).height()-108; 384 var miniRightPos = 800; 385 386 jQuery('#overlay_background').on( 'click', function(){ 387 if(!jQuery('body').hasClass('js_nav')) 388 { 389 jQuery('#overlay_background').removeClass('visible'); 390 jQuery('#overlay_background').removeClass('share_open'); 391 jQuery('#fullscreen_share_wrapper').css('visibility', 'hidden'); 392 } 393 }); 394 395 var menuLayout = jQuery('#pp_menu_layout').val(); 396 397 jQuery('.rev_slider_wrapper.fullscreen-container').each(function(){ 398 jQuery(this).append('<div class="icon-scroll"></div>'); 399 }); 400 401 if(jQuery('.one.fullwidth.slideronly').length > 0) 402 { 403 jQuery('body').addClass('overflow_hidden'); 404 } 405 406 jQuery('#post_share_text').on( 'click', function() { 407 jQuery('body').addClass('overflow_hidden'); 408 jQuery('body').addClass('blur'); 409 jQuery('#side_menu_wrapper').addClass('visible'); 410 jQuery('#side_menu_wrapper').addClass('share_open'); 411 jQuery('#fullscreen_share_wrapper').css('visibility', 'visible'); 412 }); 413 414 jQuery('#close_share').on( 'click', function() { 415 jQuery('body').removeClass('overflow_hidden'); 416 jQuery('body').removeClass('blur'); 417 jQuery('#side_menu_wrapper').removeClass('visible'); 418 jQuery('#side_menu_wrapper').removeClass('share_open'); 419 jQuery('#fullscreen_share_wrapper').css('visibility', 'hidden'); 420 }); 421 422 // Find all YouTube & Vimeo videos 423 jQuery('iframe[src*="youtube.com"]').each(function() { 424 jQuery(this).wrap('<div class="video-container"></div>'); 425 }); 426 427 jQuery('iframe[src*="vimeo.com"]').each(function() { 428 jQuery(this).wrap('<div class="video-container"></div>'); 429 }); 430 431 jQuery('.blog-tilt').tilt({ 432 perspective: 5000 433 }); 434 435 jQuery(".input_wrapper input").focusout(function(){ 436 if(jQuery(this).val() != "") 437 { 438 $(this).addClass("has-content"); 439 } else { 440 jQuery(this).removeClass("has-content"); 441 } 442 }); 443 444 jQuery(window).scroll(function() { 445 var oVal; 446 oVal = jQuery(window).scrollTop() / 300; 447 if(oVal>1) 448 { 449 oVal = 1; 450 } 451 oVal = parseFloat(1-oVal); 452 453 jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css('opacity', oVal); 454 455 var posVal = -(jQuery(window).scrollTop() * 0.005); 456 jQuery('#page_caption.hasbg .page_title_wrapper .page_title_inner').css({'transform':'translate(0px,'+posVal+'px)'}); 457 }); 458 459 jQuery('#page_title_nav li a').on( 'click', function(event){ 460 var documentScroll = jQuery(document).scrollTop(); 461 var linkURL = jQuery(this).attr('href'); 462 var sectionID = jQuery(this).attr('href').substr(1); 463 464 if(linkURL.slice(0,1)=='#' && sectionID != '') 465 { 466 var topBarHeight = 0; 467 if(jQuery('.top_bar').length > 0) {
468 var topBarHeight = parseInt(jQuery('.top_bar').height()); 469 } 470 else if(jQuery('#elementor_sticky_header').length > 0) { 471 var topBarHeight = parseInt(jQuery('#elementor_sticky_header').height()); 472 } 473 474 var scrollToPos = parseInt(jQuery('#'+sectionID).offset().top-topBarHeight); 475 476 jQuery('body,html').animate({ 477 scrollTop: scrollToPos 478 }, 1200); 479 } 480 else 481 { 482 return true; 483 } 484 }); 485 486 jQuery('#singleroom_book').on( 'click', function(event){ 487 var formID = jQuery(this).attr('data-formid'); 488 489 jQuery('#singleroom_book_form'+formID).toggleClass('visible'); 490 }); 491 492 jQuery('.mphb-gateways-list li input[type=radio]').change(function() { 493 jQuery('.mphb-gateways-list li').removeClass('active'); 494 jQuery(this).parent('.mphb-gateway').addClass('active'); 495 }); 496 497 jQuery('.mphb-gateways-list li').each(function() { 498 var radioInput = jQuery(this).find('input[type=radio]:first-child'); 499 500 if(radioInput.is(':checked')) { 501 radioInput.parent('.mphb-gateway').addClass('active'); 502 } 503 }); 504 505 jQuery('.mphb-gateways-list li').on( 'click', function(event){ 506 jQuery('.mphb-gateways-list li').removeClass('active'); 507 jQuery(this).addClass('active'); 508 509 var radioID = jQuery(this).find('input[type=radio]').attr('id'); 510 jQuery("#"+radioID).prop("checked", true); 511 }); 512 513 if(!is_touch_device()) 514 { 515 jQuery('.stellar').each(function() { 516 jQuery(this).attr('data-stellar-ratio', '1.15'); 517 }); 518 519 jQuery(window).stellar({ 520 positionProperty: 'transform', 521 responsive: true, 522 parallaxBackgrounds: false, 523 horizontalScrolling: false, 524 hideDistantElements: false, 525 }); 526 } 527 528 setTimeout(function () { jQuery('#elementor_header').addClass('visible'); }, 200); 529 530 //Apply all entrance animation 531 jQuery('.smoove').each(function() { 532 var minWidth = 1; 533 if(typeof jQuery(this).attr('data-minwidth') != 'undefined') 534 { 535 minWidth = jQuery(this).attr('data-minwidth'); 536 } 537 538 var offset = '20%'; 539 if(typeof jQuery(this).attr('data-offset') != 'undefined') 540 { 541 offset = jQuery(this).attr('data-offset'); 542 } 543 544 jQuery(this).smoove({ 545 min_width : parseInt(minWidth), 546 offset : offset 547 }); 548 }); 549}); 550 551jQuery(window).on('resize load',adjustIframes);
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.