1if(jQuery('#pp_page_title_img_blur').val()!='') { 2 (function() { 3 jQuery(window).scroll(function() { 4 var oVal; 5 oVal = jQuery(window).scrollTop() / 300; 6 if(oVal>1) 7 { 8 oVal = 1; 9 } 10 11 if(oVal==1) 12 { 13 jQuery('body.single.single-post .post_share_bubble a.post_share, body.single.single-projects .post_share_bubble a.post_share, body.single.single-attachment .post_share_bubble a.post_share').css('display', 'block'); 14 } 15 16 if(oVal==0) 17 { 18 jQuery('body.single.single-post .post_share_bubble a.post_share, body.single.single-projects .post_share_bubble a.post_share, body.single.single-attachment .post_share_bubble a.post_share').css('display', 'none'); 19 } 20 21 return jQuery("#bg_blurred").css("opacity", oVal); 22 }); 23 24 }).call(this); 25} 26 27if(jQuery('#pp_page_title_img_blur').val()!='') { 28 (function() { 29 jQuery(window).scroll(function() { 30 var oVal; 31 oVal = jQuery(window).scrollTop() / 300; 32 if(oVal>1) 33 { 34 oVal = 1; 35 } 36 oVal = parseFloat(1-oVal); 37 38 return jQuery("#page_caption.hasbg .page_title_wrapper .page_title_inner").css("opacity", oVal); 39 }); 40 41 }).call(this); 42} 43 44jQuery(document).ready(function(){ 45 "use strict"; 46 47 jQuery(document).setNav(); 48 49 jQuery(window).resize(function(){ 50 jQuery(document).setNav(); 51 }); 52 53 //Add gallery lightbox navigation to WooCommerce single product gallery 54 if( jQuery('body').hasClass('single-product') ){ 55 jQuery('.woocommerce-product-gallery__wrapper').children('div').each(function(){ 56 jQuery(this).find('a').attr('data-rel', 'woo-product-gallery'); 57 }); 58 } 59 60 var moduloLightboxLoad = false; 61 if(jQuery('#tg_enable_theme_lightbox').val() == 1) 62 { 63 moduloLightboxLoad = true; 64 } 65 66 var moduloThumbnail = false; 67 if(jQuery('#tg_lightbox_thumbnails').val() == 'thumbnail') 68 { 69 moduloThumbnail = true; 70 } 71 72 if(moduloLightboxLoad) { 73 // create instance of ModuloBox 74 var mobx = new ModuloBox({ 75 // options 76 mediaSelector : '.fancy-gallery, .grandrestaurant_gallery_lightbox, .pp_gallery a, .img_frame, .lightbox_vimeo, .lightbox_youtube, .woocommerce-product-gallery__image a', 77 scrollToZoom : true, 78 controls : ['zoom', 'play', 'fullScreen', 'close'], 79 countTimer: true, 80 thumbnails: moduloThumbnail, 81 caption: jQuery('#tg_lightbox_enable_title').val(), 82 videoAutoPlay: true, 83 thumbnailSizes : { 84 1920 : { // browser width in 'px' 85 width : 110, // thumbnail width in 'px' - 0 in width will hide thumbnails 86 height : 80, // thumbnail height in 'px' - 0 in height will hide thumbnails 87 gutter : 10 // gutter width in 'px' between thumbnails 88 }, 89 1280 : { 90 width : 90, 91 height : 65, 92 gutter : 10 93 }, 94 680 : { 95 width : 70, 96 height : 50, 97 gutter : 8 98 }, 99 480 : { 100 width : 60, 101 height : 44, 102 gutter : 5 103 } 104 } 105 }); 106 107 // initialize the instance 108 mobx.init(); 109 } 110 111 jQuery('#menu_expand_wrapper a').on( 'click', function(){ 112 jQuery('#menu_wrapper').fadeIn(); 113 jQuery('#custom_logo').animate({'left': '15px', 'opacity': 1}, 400); 114 jQuery('#menu_close').animate({'left': '-10px', 'opacity': 1}, 400); 115 jQuery(this).animate({'left': '-60px', 'opacity': 0}, 400); 116 jQuery('#menu_border_wrapper select').animate({'left': '0', 'opacity': 1}, 400).fadeIn(); 117 }); 118 119 jQuery('#menu_close').on( 'click', function(){ 120 jQuery('#custom_logo').animate({'left': '-200px', 'opacity': 0}, 400); 121 jQuery(this).stop().animate({'left': '-200px', 'opacity': 0}, 400); 122 jQuery('#menu_expand_wrapper a').animate({'left': '20px', 'opacity': 1}, 400); 123 jQuery('#menu_border_wrapper select').animate({'left': '-200px', 'opacity': 0}, 400).fadeOut(); 124 jQuery('#menu_wrapper').fadeOut(); 125 }); 126 127 // Isotope 128 // modified Isotope methods for gutters in masonry 129 jQuery.Isotope.prototype._getMasonryGutterColumns = function() { 130 var gutter = this.options.masonry && this.options.masonry.gutterWidth || 0; 131 var containerWidth = this.element.width(); 132 133 this.masonry.columnWidth = this.options.masonry && this.options.masonry.columnWidth || 134 // or use the size of the first item 135 this.$filteredAtoms.outerWidth(true) || 136 // if there's no items, use size of container 137 containerWidth; 138 139 this.masonry.columnWidth += gutter; 140 141 this.masonry.cols = Math.floor( ( containerWidth + gutter ) / this.masonry.columnWidth ); 142 this.masonry.cols = Math.max( this.masonry.cols, 1 ); 143 }; 144 145 jQuery.Isotope.prototype._masonryReset = function() { 146 // layout-specific props 147 this.masonry = {}; 148 // FIXME shouldn't have to call this again 149 this._getMasonryGutterColumns(); 150 var i = this.masonry.cols; 151 this.masonry.colYs = []; 152 while (i--) { 153 this.masonry.colYs.push( 0 ); 154 } 155 }; 156 157 jQuery.Isotope.prototype._masonryResizeChanged = function() { 158 var prevSegments = this.masonry.cols; 159 // update cols/rows 160 this._getMasonryGutterColumns(); 161 // return if updated cols/rows is not equal to previous 162 return ( this.masonry.cols !== prevSegments ); 163 }; 164 165 // cache jQuery window 166 var $window = jQuery(window); 167 168 // filter items when filter link is clicked 169 var dropdowns = jQuery(".portfolio_filter_dropdown"); 170 171 dropdowns.find(".portfolio_filter_dropdown_title").on( 'click', function(){ 172 dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select").hide(); 173 jQuery(this).next().children().toggle(); 174 }); 175 176 dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select li a").on( 'click', function(){ 177 var leSpan = jQuery(this).parents(".portfolio_filter_dropdown").find(".portfolio_filter_dropdown_title a span"); 178 179 jQuery(this).parents(".portfolio_filter_dropdown").find('.portfolio_filter_dropdown_select a').each(function(){ 180 jQuery(this).removeClass('selected'); 181 }); 182 183 leSpan.html(jQuery(this).html()); 184 185 if(jQuery(this).hasClass('default')) 186 { 187 leSpan.removeClass('selected') 188 } 189 else 190 { 191 leSpan.addClass('selected'); 192 jQuery(this).addClass('selected'); 193 } 194 195 jQuery(this).parents("ul").hide(); 196 }); 197 198 // Close all dropdown onclick on another element 199 jQuery(document).bind('click', function(e){ 200 if (! jQuery(e.target).parents().hasClass("portfolio_filter_dropdown")) jQuery(".portfolio_filter_dropdown .portfolio_filter_dropdown_select ul.portfolio_select").hide(); 201 }); 202 203 204 function reLayout() { 205 var jQuerycontainer = jQuery('#photo_wall_wrapper, .photo_wall_wrapper');
206 var windowWidth = parseInt(jQuerycontainer.width()); 207 var jQueryportfolioColumn = 4; 208 var columnValue; 209 var masonryOpts; 210 211 if(windowWidth < 480) 212 { 213 jQueryportfolioColumn = 1; 214 } 215 else if(windowWidth >= 480 && windowWidth < 960) 216 { 217 jQueryportfolioColumn = 2; 218 } 219 else if(windowWidth >= 960) 220 { 221 jQueryportfolioColumn = 4; 222 } 223 224 $container.addClass('visible'); 225 226 $container.isotope({ 227 resizable: false, 228 itemSelector : '.wall_entry', 229 }).isotope(); 230 231 } 232 233 var $container = jQuery('#photo_wall_wrapper, .photo_wall_wrapper'); 234 235 // start up isotope with default settings 236 $container.imagesLoaded( function(){ 237 reLayout(); 238 $window.smartresize(reLayout); 239 240 $container.children('.wall_entry').children('.gallery_type').each(function(){ 241 jQuery(this).addClass('fade-in'); 242 }); 243 244 $container.children('.wall_entry').mouseenter(function(){ 245 //$container.children('.wall_entry').addClass('fade'); 246 //jQuery(this).removeClass('fade'); 247 jQuery(this).addClass('hover'); 248 }); 249 250 $container.children('.wall_entry').mouseleave(function(){ 251 //$container.children('.wall_entry').removeClass('fade'); 252 $container.children('.wall_entry').removeClass('hover'); 253 }); 254 255 jQuery(window).trigger('hwparallax.reconfigure'); 256 }); 257 258 jQuery(window).resize(function() { 259 if(jQuery(this).width() < 768) 260 { 261 jQuery('#menu_expand_wrapper a').trigger('click'); 262 } 263 }); 264 265 var isDisableRightClick = jQuery('#pp_enable_right_click').val(); 266 267 if(isDisableRightClick!='') 268 { 269 jQuery(this).bind("contextmenu", function(e) { 270 e.preventDefault(); 271 }); 272 } 273 274 function rePortfolioLayout() { 275 276 var jQuerycontainer = jQuery('#portfolio_filter_wrapper, .portfolio_filter_wrapper'); 277 var windowWidth = jQuerycontainer.width(); 278 279 if(jQuery('#pp_menu_layout').val() == 'leftmenu' && jQuery(window).width() > 768) 280 { 281 windowWidth = parseInt(windowWidth + 265); 282 } 283 284 var jQueryportfolioColumn = jQuery('#pp_portfolio_columns').attr('value'); 285 var columnValue; 286 var masonryOpts; 287 288 if(jQuery('#pp_menu_layout').val() == 'leftmenu') 289 { 290 var windowWidth = jQuerycontainer.width(); 291 } 292 293 if(jQuery.type(jQueryportfolioColumn) === "undefined") 294 { 295 if(windowWidth < 481) 296 { 297 jQueryportfolioColumn = 1; 298 } 299 else if(windowWidth >= 480 && windowWidth < 960) 300 { 301 jQueryportfolioColumn = 2; 302 } 303 else if(windowWidth >= 960) 304 { 305 jQueryportfolioColumn = 4; 306 } 307 } 308 else 309 { 310 if(windowWidth <= 768) 311 { 312 jQueryportfolioColumn = 2; 313 } 314 } 315 316 masonryOpts = { 317 columnWidth: columnValue 318 }; 319 320 jQuerycontainer.isotope({ 321 resizable: false, 322 itemSelector : '.element', 323 masonry: masonryOpts 324 } ).isotope(); 325 326 } 327 328 // cache jQuery window 329 var $window = jQuery(window); 330 331 // cache container 332 var jQuerycontainer = jQuery('#portfolio_filter_wrapper, .portfolio_filter_wrapper'); 333 334 // start up isotope with default settings 335 jQuerycontainer.imagesLoaded( function(){ 336 rePortfolioLayout(); 337 $window.smartresize( rePortfolioLayout ); 338 339 jQuerycontainer.children('.element').children('.gallery_type').each(function(){ 340 jQuery(this).addClass('fadeIn'); 341 }); 342 343 jQuerycontainer.children('.element').children('.portfolio_type').each(function(){ 344 jQuery(this).addClass('fadeIn'); 345 }); 346 347 jQuerycontainer.children('.element').mouseenter(function(){ 348 //jQuerycontainer.children('.element').addClass('fade'); 349 //jQuery(this).removeClass('fade'); 350 jQuery(this).addClass('hover'); 351 }); 352 353 jQuerycontainer.children('.element').mouseleave(function(){ 354 //jQuerycontainer.children('.element').removeClass('fade'); 355 jQuerycontainer.children('.element').removeClass('hover'); 356 }); 357 358 jQuery(this).addClass('visible'); 359 jQuery(window).trigger('hwparallax.reconfigure'); 360 }); 361 362 // filter items when filter link is clicked 363 if(jQuery('#tg_project_filterable_link').val()!=1) 364 { 365 jQuery('#project_services_filters li a').on( 'click', function(){ 366 var selector = jQuery(this).attr('data-filter'); 367 var selector_combine = jQuery('#project_sectors_filters').find('li').find('a.active').attr('data-filter'); 368 369 if(selector_combine!='*') 370 { 371 selector+= selector_combine; 372 } 373 374 jQuerycontainer.isotope({ filter: selector }); 375 jQuery('#project_services_filters li a').removeClass('active'); 376 jQuery(this).addClass('active'); 377 return false;
378 }); 379 380 jQuery('#project_sectors_filters li a').on( 'click', function(){ 381 var selector = jQuery(this).attr('data-filter'); 382 var selector_combine = jQuery('#project_services_filters').find('li').find('a.active').attr('data-filter'); 383 384 if(selector_combine!='*') 385 { 386 selector+= selector_combine; 387 } 388 389 jQuerycontainer.isotope({ filter: selector }); 390 jQuery('#project_sectors_filters li a').removeClass('active'); 391 jQuery(this).addClass('active'); 392 return false; 393 }); 394 } 395 396 function reBlogLayout() { 397 var windowWidth = jQuery(window).width(); 398 var jQueryblogcontainer = jQuery('#blog_grid_wrapper, .blog_grid_wrapper'); 399 var containerWidth = jQuery('#blog_grid_wrapper, .blog_grid_wrapper').width(); 400 401 var $blogGridColumn = 3; 402 var columnValue = 0; 403 var masonryOpts; 404 if(containerWidth >= 960) 405 { 406 columnValue = containerWidth / $blogGridColumn; 407 } 408 else if(containerWidth < 960 && containerWidth >= 660) 409 { 410 columnValue = containerWidth / 2; 411 } 412 else 413 { 414 columnValue = containerWidth/1; 415 } 416 417 //alert($blogGridColumn); 418 masonryOpts = { 419 columnWidth: columnValue 420 }; 421 422 jQueryblogcontainer.isotope({ 423 resizable: false, // disable resizing by default, we'll trigger it manually 424 itemSelector : '.status-publish', 425 masonry: masonryOpts 426 } ).isotope(); 427 } 428 429 var jQueryblogcontainer = jQuery('#blog_grid_wrapper, .blog_grid_wrapper'); 430 431 jQueryblogcontainer.imagesLoaded( function(){ 432 reBlogLayout(); 433 $window.smartresize( reBlogLayout ); 434 jQuery(window).trigger('hwparallax.reconfigure'); 435 }); 436 437 //Add to top button when scrolling 438 jQuery(window).scroll(function() { 439 var calScreenWidth = jQuery(window).width(); 440 441 if(jQuery(this).scrollTop() > 200) { 442 jQuery('#toTop').stop().css({opacity: 0.5, "visibility": "visible"}).animate({"visibility": "visible"}, {duration:1000,easing:"easeOutExpo"}); 443 } else if(jQuery(this).scrollTop() == 0) { 444 jQuery('#toTop').stop().css({opacity: 0, "visibility": "hidden"}).animate({"visibility": "hidden"}, {duration:1500,easing:"easeOutExpo"}); 445 } 446 }); 447 448 jQuery('#toTop, .hr_totop').on( 'click', function() { 449 jQuery('body,html').animate({scrollTop:0},800); 450 }); 451 452 var isDisableDragging = jQuery('#pp_enable_dragging').val(); 453 454 if(isDisableDragging!='') 455 { 456 jQuery("img").mousedown(function(){ 457 return false; 458 }); 459 } 460 461 if(jQuery('#pp_topbar').val()==0) 462 { 463 var topBarHeight = jQuery('.header_style_wrapper').height(); 464 } 465 else 466 { 467 var topBarHeight = parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height()); 468 } 469 470 var logoHeight = jQuery('#custom_logo img').height(); 471 var logoTransHeight = jQuery('#custom_logo_transparent img').height(); 472 var logoMargin = parseInt(jQuery('#custom_logo').css('marginTop')); 473 var logoTransMargin = parseInt(jQuery('#custom_logo_transparent').css('marginTop')); 474 var menuPaddingTop = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop')); 475 var menuPaddingBottom = parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom')); 476 var SearchPaddingTop = parseInt(jQuery('.top_bar #searchform button').css('paddingTop')); 477 var menuLayout = jQuery('#pp_menu_layout').val(); 478 var headercontent = jQuery('#grandrestaurant_header_content').val(); 479 var fixedMenu = jQuery('#pp_fixed_menu').val(); 480 481 if(menuLayout != 'leftmenu' || jQuery(window).width()<=768) 482 { 483 //Calculate wrapper padding top value 484 if(headercontent == 'menu') 485 { 486 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px'); 487 } 488 else 489 { 490 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor-header').height())+'px'); 491 setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor-header').height())+'px'); }, 200); 492 setTimeout(function () { jQuery('#wrapper').css('paddingTop', parseInt(jQuery('#elementor-header').height())+'px'); }, 1000); 493 } 494 } 495 496 jQuery(window).resize(function(){ 497 if(jQuery(this).width()>960) 498 { 499 if(menuLayout != 'leftmenu') 500 { 501 //jQuery('.top_bar').css('height', 'auto'); 502 var resizedTopBarHeight = jQuery('.header_style_wrapper').height(); 503 504 jQuery('#wrapper').css('paddingTop', resizedTopBarHeight+'px'); 505 jQuery('.logo_wrapper').css('marginTop', ''); 506 jQuery('.top_bar #searchform button').css('paddingTop', ''); 507 } 508 else 509 { 510 jQuery('#wrapper').css('paddingTop', 0); 511 } 512 } 513 else 514 {
515 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px'); 516 } 517 }); 518 519 if(menuLayout != 'leftmenu' || jQuery(window).width()<=960) 520 { 521 if(jQuery(window).width()>960) 522 { 523 jQuery('#wrapper').css('paddingTop', parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px'); 524 jQuery('.top_bar').css('height', topBarHeight+'px'); 525 } 526 else 527 { 528 jQuery('#wrapper').css('paddingTop', parseInt(jQuery('.header_style_wrapper').height())+'px'); 529 } 530 531 jQuery(window).scroll(function(){ 532 if(jQuery('#pp_fixed_menu').val()==1) 533 { 534 if(jQuery(this).scrollTop() >= 200){ 535 jQuery('.header_style_wrapper .above_top_bar').hide(); 536 jQuery('.extend_top_contact_info').hide(); 537 538 if(jQuery(window).width()>=1024) 539 { 540 jQuery('.top_bar').addClass('scroll'); 541 jQuery('.top_bar').css('height', parseInt(topBarHeight/1.5)+'px'); 542 jQuery('.top_bar').css('height', parseInt(topBarHeight/1.5)+'px'); 543 544 jQuery('#custom_logo img').addClass('zoom'); 545 jQuery('#custom_logo img').css('width', 'auto'); 546 jQuery('#custom_logo img').css('maxHeight', parseInt(topBarHeight/3)+'px'); 547 jQuery('#custom_logo_transparent img').addClass('zoom'); 548 549 jQuery('#custom_logo').css('marginTop', parseInt(logoMargin/1.5)+'px'); 550 jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin/1.5)+'px'); 551 552 jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', parseInt(menuPaddingTop/1.7)+'px'); 553 jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', parseInt(menuPaddingBottom/1.7)+'px'); 554 555 if(menuLayout == 'centermenu') 556 { 557 jQuery('.logo_container').addClass('hidden'); 558 } 559 } 560 561 if(jQuery('.top_bar').hasClass('hasbg')) 562 { 563 jQuery('.top_bar').removeClass('hasbg'); 564 jQuery('.top_bar').data('hasbg', 1); 565 566 jQuery('#custom_logo').removeClass('hidden'); 567 jQuery('#custom_logo_transparent').addClass('hidden'); 568 } 569 } 570 else if(jQuery(this).scrollTop() < 200) 571 { 572 jQuery('.header_style_wrapper .above_top_bar').show(); 573 jQuery('.extend_top_contact_info').show(); 574 575 jQuery('.top_bar').removeClass('scroll'); 576 jQuery('.top_bar').css('height', topBarHeight+'px'); 577 578 jQuery('#custom_logo img').removeClass('zoom'); 579 jQuery('#custom_logo img').css('maxHeight', ''); 580 jQuery('#custom_logo_transparent img').removeClass('zoom'); 581 582 jQuery('#custom_logo').css('marginTop', parseInt(logoMargin)+'px'); 583 jQuery('#custom_logo_transparent').css('marginTop', parseInt(logoTransMargin)+'px'); 584 585 jQuery('#menu_wrapper div .nav > li > a').css('paddingTop', menuPaddingTop+'px'); 586 jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom', menuPaddingBottom+'px'); 587 588 if(menuLayout == 'centermenu') 589 { 590 if(jQuery('.top_bar').data('hasbg')==1) 591 { 592 jQuery('#logo_transparent.logo_container').removeClass('hidden'); 593 } 594 else 595 { 596 jQuery('#logo_normal.logo_container').removeClass('hidden'); 597 } 598 } 599 600 if(jQuery('.top_bar').data('hasbg')==1) 601 { 602 jQuery('.top_bar').addClass('hasbg'); 603 jQuery('#custom_logo').addClass('hidden'); 604 jQuery('#custom_logo_transparent').removeClass('hidden'); 605 606 } 607 } 608 } 609 else 610 { 611 if(jQuery(this).scrollTop() >= 200) 612 { 613 jQuery('.header_style_wrapper').addClass('nofixed'); 614 } 615 else 616 { 617 jQuery('.header_style_wrapper').removeClass('nofixed'); 618 } 619 } 620 }); 621 } //If not left menu layout 622 623 jQuery('.post_img img').imagesLoaded(function(){ 624 jQuery(this).parent('.post_img').addClass('fadeIn'); 625 }); 626 627 jQuery(document).mouseenter(function() 628 { 629 jQuery('body').addClass('hover'); 630 }); 631 632 jQuery(document).mouseleave(function() 633 { 634 jQuery('body').removeClass('hover'); 635 }); 636 637 jQuery('#slidecaption').center(); 638 jQuery(window).resize(function(){ 639 jQuery('#slidecaption').center(); 640 }); 641 642 var siteBaseURL = jQuery('#pp_homepage_url').val(); 643 if(jQuery('#pp_ajax_search').val() != '') 644 { 645 jQuery('#s').on('input', function() { 646 jQuery.ajax({ 647 url:siteBaseURL+"/wp-admin/admin-ajax.php", 648 type:'POST', 649 data:'action=pp_ajax_search&s='+jQuery('#s').val(), 650 success:function(results) { 651 jQuery("#autocomplete").html(results); 652 653 if(results != '') 654 { 655 jQuery("#autocomplete").addClass('visible'); 656 jQuery("#autocomplete").show(); 657 jQuery("body.js_nav .mobile_menu_wrapper").css('overflow', 'visible'); 658 } 659 else 660 { 661 jQuery("#autocomplete").hide(); 662 jQuery("body.js_nav .mobile_menu_wrapper").css('overflow', 'scroll'); 663 } 664 } 665 }) 666 }); 667 668 jQuery("#s").keypress(function(event) { 669 if (event.which == 13) { 670 event.preventDefault(); 671 jQuery("form#searchform").submit(); 672 } 673 }); 674 675 jQuery('#s').focus(function(){ 676 if (jQuery('#autocomplete').html() != ''){ 677 jQuery("#autocomplete").addClass('visible'); 678 jQuery("#autocomplete").fadeIn(); 679 } 680 }); 681 682 jQuery('#s').blur(function(){ 683 jQuery("#autocomplete").fadeOut(); 684 }); 685 } 686 687 jQuery('.animated').imagesLoaded(function() { 688 var windowWidth = jQuery(window).width(); 689 var animatedElement = jQuery(this); 690 691 if(windowWidth >= 960) 692 { 693 animatedElement.waypoint(function(direction) { 694 var animationClass = animatedElement.data('animation'); 695 696 animatedElement.addClass(animationClass, direction === 'down'); 697 698 } , { offset: '100%' }); 699 } 700 }); 701 702 jQuery('#post_more_close').on( 'click', function(){ 703 jQuery('#post_more_wrapper').animate({ right: '-380px' }, 300); 704 705 return false;
706 }); 707 708 jQuery('.parallax').each(function(){ 709 var parallaxHeight = jQuery(this).data('content-height'); 710 parallaxHeight = parseInt((parallaxHeight/100)*jQuery(window).height()); 711 712 jQuery(this).css('height', parallaxHeight+'px'); 713 }); 714 715 if (jQuery(window).width() >= 960) 716 { 717 jQuery('.parallax').parallax(); 718 } 719 else 720 { 721 jQuery('.parallax').each(function(){ 722 var dataImgURL = jQuery(this).data('image'); 723 if(jQuery.type(dataImgURL) != "undefined") 724 { 725 jQuery(this).css('background-image', 'url('+dataImgURL+')'); 726 jQuery(this).css('background-size', 'cover'); 727 jQuery(this).css('background-position', 'center center'); 728 } 729 }); 730 } 731 732 jQuery(window).resize(function(){ 733 if (jQuery(window).width() >= 960) 734 { 735 jQuery('.parallax').each(function(){ 736 var parallaxHeight = jQuery(this).data('content-height'); 737 parallaxHeight = parseInt((parallaxHeight/100)*jQuery(window).height()); 738 739 jQuery(this).css('height', parallaxHeight+'px'); 740 }); 741 742 jQuery(window).trigger('hwparallax.reconfigure'); 743 } 744 else 745 { 746 jQuery('.parallax').each(function(){ 747 var dataImgURL = jQuery(this).data('image'); 748 if(jQuery.type(dataImgURL) != "undefined") 749 { 750 jQuery(this).css('background-image', 'url('+dataImgURL+')'); 751 jQuery(this).css('background-size', 'cover'); 752 jQuery(this).css('background-position', 'center center'); 753 } 754 }); 755 } 756 }); 757 758 var stellarActivated = false; 759 if (jQuery(window).width() >= 1024) 760 { 761 stellarActivated = true; 762 jQuery(window).stellar({ positionProperty: 'transform', parallaxBackgrounds: false, responsive: true, horizontalScrolling: false, hideDistantElements: true }); 763 } 764 765 if (jQuery(window).width() <= 1024) { 766 if (stellarActivated == true) { 767 stellarActivated = false; 768 } 769 } else { 770 if (stellarActivated == false) { 771 772 jQuery(window).stellar({ positionProperty: 'transform', parallaxBackgrounds: false, responsive: true, horizontalScrolling: false, hideDistantElements: true }); 773 stellarActivated = true; 774 } 775 } 776 777 jQuery(window).resize(function(){ 778 if (jQuery(window).width() >= 1024) 779 { 780 stellarActivated = true; 781 jQuery(window).stellar({ positionProperty: 'transform', parallaxBackgrounds: false, responsive: true, horizontalScrolling: false, hideDistantElements: true }); 782 } 783 784 if (jQuery(window).width() <= 1024) { 785 if (stellarActivated == true) { 786 stellarActivated = false; 787 } 788 } else { 789 if (stellarActivated == false) { 790 791 jQuery(window).stellar({ positionProperty: 'transform', parallaxBackgrounds: false, responsive: true, horizontalScrolling: false, hideDistantElements: true }); 792 stellarActivated = true; 793 } 794 } 795 }); 796 797 jQuery('#mobile_nav_icon').on( 'click', function() { 798 jQuery('body,html').animate({scrollTop:0},100); 799 jQuery('body').toggleClass('js_nav'); 800 }); 801 802 jQuery('#close_mobile_menu, #overlay_background').on( 'click', function() { 803 jQuery('body').removeClass('js_nav'); 804 805 setTimeout(function(){ 806 jQuery('.rev_slider_wrapper').css('left', '0px'); 807 }, 500); 808 }); 809 810 jQuery('.mobile_menu_close a').on( 'click', function() { 811 jQuery('body').removeClass('js_nav'); 812 813 setTimeout(function(){ 814 jQuery('.rev_slider_wrapper').css('left', '0px'); 815 }, 500); 816 }); 817 818 jQuery('.close_alert').on( 'click', function() { 819 var target = jQuery(this).data('target'); 820 jQuery('#'+target).fadeOut(); 821 }); 822 823 jQuery('.progress_bar').waypoint(function(direction) { 824 jQuery(this).addClass('fadeIn'); 825 var progressContent = jQuery(this).children('.progress_bar_holder').children('.progress_bar_content'); 826 var progressWidth = progressContent.data('score'); 827 828 progressContent.css({'width': progressWidth+'%'}); 829 } , { offset: '100%' }); 830 831 jQuery('.tooltip').tooltipster(); 832 jQuery('.demotip').tooltipster({ 833 position: 'left', 834 //trigger: 'click', 835 theme: 'tooltipster-themegoods-demo', 836 }); 837 838 jQuery('.portfolio_prev_next_link').each(function(){ 839 jQuery(this).tooltipster({ 840 content: jQuery('<img src="'+jQuery(this).attr('data-img')+'" /><br/><div style="text-align:center;margin:7px 0 5px 0;"><strong>'+jQuery(this).attr('data-title')+'</strong></div>') 841 }); 842 }); 843 844 jQuery('.post_prev_next_link').each(function(){ 845 jQuery(this).tooltipster({ 846 content: jQuery('<img src="'+jQuery(this).attr('data-img')+'" />') 847 }); 848 }); 849 850 jQuery('.rev_slider_wrapper.fullscreen-container').each(function(){ 851 jQuery(this).append('<div class="icon-scroll"></div>'); 852 }); 853 854 jQuery('.post_share').on( 'click', function() { 855 var targetShareID = jQuery(this).attr('data-share'); 856 var targetParentID = jQuery(this).attr('data-parent'); 857 858 jQuery(this).toggleClass('visible'); 859 jQuery('#'+targetShareID).toggleClass('slideUp'); 860 jQuery('#'+targetParentID).toggleClass('sharing'); 861 862 return false;
863 }); 864 865 866 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0) 867 { 868 var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height(); 869 var topBarHeight = jQuery('.top_bar').height(); 870 871 if(jQuery('.above_top_bar').length > 0) 872 { 873 topBarHeight+= jQuery('.above_top_bar').height(); 874 } 875 876 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0) 877 { 878 var topBarHeight = 55; 879 } 880 881 jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 882 jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 883 } 884 885 jQuery(window).resize(function(){ 886 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length > 0) 887 { 888 var sliderHeight = jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height(); 889 var topBarHeight = jQuery('.top_bar').height(); 890 891 if(jQuery('.above_top_bar').length > 0) 892 { 893 topBarHeight+= jQuery('.above_top_bar').height(); 894 } 895 896 if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length > 0) 897 { 898 var topBarHeight = 55; 899 } 900 901 jQuery('.ppb_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 902 jQuery('#page_content_wrapper').css('marginTop', sliderHeight-topBarHeight+'px'); 903 } 904 }); 905 906 jQuery('.skin_box').on( 'click', function(){ 907 jQuery('.skin_box').removeClass('selected'); 908 jQuery(this).addClass('selected'); 909 jQuery('#skin').val(jQuery(this).attr('data-color')); 910 }); 911 912 jQuery('#demo_apply').on( 'click', function(){ 913 jQuery('#ajax_loading').addClass('visible'); 914 jQuery('body').addClass('loading'); 915 jQuery("form#form_option").submit(); 916 }); 917 918 jQuery('#option_wrapper').mouseenter(function() 919 { 920 jQuery('body').addClass('overflow_hidden'); 921 }); 922 923 jQuery('#option_wrapper').mouseleave(function() 924 { 925 jQuery('body').removeClass('overflow_hidden'); 926 }); 927 928 jQuery('.animate').waypoint(function(direction) { 929 var windowWidth = jQuery(window).width(); 930 931 jQuery(this).addClass('visible', direction === 'down'); 932 933 } , { offset: '80%' }); 934 935 var calScreenHeight = jQuery(window).height()-108; 936 var miniRightPos = 800; 937 938 var cols = 3 939 var masonry = jQuery('.gallery_mansory_wrapper'); 940 941 // initialize masonry 942 masonry.imagesLoaded(function(){ 943 944 masonry.masonry({ 945 itemSelector: '.mansory_thumbnail', 946 isResizable: true, 947 isAnimated: true, 948 isFitWidth: true, 949 columnWidth:Math.floor((masonry.width()/ cols)) 950 }); 951 952 masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){ 953 jQuery(this).addClass('fade-in'); 954 }); 955 956 jQuery(window).trigger('hwparallax.reconfigure'); 957 }); 958 959 jQuery(window).resize(function(){ 960 var masonry = jQuery('.gallery_mansory_wrapper'); 961 962 masonry.imagesLoaded(function(){ 963 964 masonry.masonry({ 965 itemSelector: '.mansory_thumbnail', 966 isResizable: true, 967 isAnimated: true, 968 isFitWidth: true, 969 columnWidth:Math.floor((masonry.width()/ cols)) 970 }); 971 972 masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){ 973 jQuery(this).addClass('fade-in'); 974 }); 975 }); 976 }); 977 978 jQuery('#tg_reservation:not(.custom_link), .tg_reservation').on( 'click', function(e) { 979 e.preventDefault(); 980 981 jQuery('#reservation_wrapper').fadeIn(); 982 jQuery('body').removeClass('js_nav'); 983 jQuery('body').addClass('overflow_hidden'); 984 jQuery('html').addClass('overflow_hidden'); 985 }); 986 987 jQuery('#tg_sidemenu_reservation:not(.custom_link)').on( 'click', function(e) { 988 e.preventDefault(); 989 990 jQuery('#reservation_wrapper').fadeIn(); 991 jQuery('body').removeClass('js_nav'); 992 jQuery('body').addClass('overflow_hidden'); 993 jQuery('html').addClass('overflow_hidden'); 994 }); 995 996 jQuery('#reservation_cancel_btn').on( 'click', function() { 997 jQuery('#reservation_wrapper').fadeOut(); 998 jQuery('body').removeClass('overflow_hidden'); 999 jQuery('html').removeClass('overflow_hidden'); 1000 }); 1001 1002 jQuery('.mobile_main_nav li a, #sub_menu li a').on( 'click', function() { 1003 if(!jQuery(this).parent('li').hasClass('menu-item-has-children')) { 1004 jQuery('body').removeClass('js_nav'); 1005 } 1006 }); 1007 1008 jQuery('body').on('adding_to_cart', function(event, param1, param2) {
1009 var currentCartCount = parseInt(jQuery('.header_cart_wrapper .cart_count').html()); 1010 currentCartCount = currentCartCount + 1; 1011 jQuery('.header_cart_wrapper .cart_count').html(currentCartCount); 1012 }); 1013 1014 if(jQuery('.one.fullwidth.slideronly').length > 0) 1015 { 1016 jQuery('body').addClass('overflow_hidden'); 1017 } 1018 1019 var menuLayout = jQuery('#pp_menu_layout').val(); 1020 1021 if(jQuery(window).width()<960 && menuLayout == 'leftmenu') 1022 { 1023 document.getElementById("leftmenu.css-css").disabled = true; 1024 jQuery('.mobile_menu_wrapper .logo_container').hide(); 1025 } 1026 1027 jQuery(window).resize(function(){ 1028 if(jQuery(window).width()>=960 && menuLayout == 'leftmenu') 1029 { 1030 document.getElementById("leftmenu.css-css").disabled = false; 1031 jQuery('.mobile_menu_wrapper .logo_container').show(); 1032 } 1033 else if(jQuery(window).width()<960 && menuLayout == 'leftmenu') 1034 { 1035 document.getElementById("leftmenu.css-css").disabled = true; 1036 jQuery('.mobile_menu_wrapper .logo_container').hide(); 1037 } 1038 }); 1039 1040 //script for Elementor header 1041 jQuery(window).scroll(function(){ 1042 if(fixedMenu==1) 1043 { 1044 if(jQuery(this).scrollTop() >= 100){ 1045 jQuery('#elementor-header').removeClass('visible'); 1046 jQuery('#elementor-sticky-header').addClass('visible'); 1047 1048 jQuery('#elementor-header').addClass('scrolling'); 1049 jQuery('#elementor-sticky-header').addClass('scrolling'); 1050 } 1051 else if(jQuery(this).scrollTop() < 100) 1052 { 1053 jQuery('#elementor-header').addClass('visible'); 1054 jQuery('#elementor-sticky-header').removeClass('visible'); 1055 1056 jQuery('#elementor-header').removeClass('scrolling'); 1057 jQuery('#elementor-sticky-header').removeClass('scrolling'); 1058 } 1059 } 1060 else 1061 { 1062 if(jQuery(this).scrollTop() >= 100){ 1063 jQuery('#elementor-header').removeClass('visible'); 1064 jQuery('#elementor-header').addClass('scrolling'); 1065 } 1066 else if(jQuery(this).scrollTop() < 100) 1067 { 1068 jQuery('#elementor-header').addClass('visible'); 1069 jQuery('#elementor-header').removeClass('scrolling'); 1070 } 1071 } 1072 }); 1073 1074 if(jQuery(window).scrollTop() < 100){ 1075 setTimeout(function () { jQuery('#elementor-header').addClass('visible'); }, 200); 1076 } 1077 else 1078 { 1079 setTimeout(function () { jQuery('#elementor-sticky-header').addClass('visible'); }, 200); 1080 } 1081 1082 //Apply all entrance animation 1083 jQuery('.smoove').each(function() { 1084 var minWidth = 1; 1085 if(typeof jQuery(this).attr('data-minwidth') != 'undefined') 1086 { 1087 minWidth = jQuery(this).attr('data-minwidth'); 1088 } 1089 1090 var offset = '20%'; 1091 if(typeof jQuery(this).attr('data-offset') != 'undefined') 1092 { 1093 offset = jQuery(this).attr('data-offset'); 1094 } 1095 1096 jQuery(this).smoove({ 1097 min_width : parseInt(minWidth), 1098 offset : offset 1099 }); 1100 }); 1101}); 1102 1103jQuery(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.