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