1/* 2 * All Scripts and Custom Scripts. 3 * Author & Copyright: VictorThemes 4 * URL: http://themeforest.net/user/VictorThemes 5 */ 6 7/* ************* SOME FUNTION INIT INDEX ****************** 81.SERCH BOX FOCUS FUNCTION 92.OFF CANVES TOGGLE CLASS CUSTOM FUNCTION 103.CLASSIC HEADER MENU CUSTOM FUNCTION 114.HEIGHT FOR FULL SCREEN SLIDER CUSTOM FUNCTION 125.SPECIAL DISHES SECTION OWL CAROUSEL INIT FUNCTION 136.TESTIMONIAL OWL CAROUSEL INIT INIT FUNCTION 147.CLASSIC TESTIMONIAL OWL CAROUSEL INIT INIT FUNCTION 158.LIGHT GALLERY INIT FUNCTION 169.FOOTER COLUM AUTO ADJUST FUNCTION 1710.DROPDOWN MENU A CLICK FALSE FUNTION CALL 1811.CUSTOM SLIDEDOWN MENU FUNCTION 1912.PARALLAX INIT FUNCTION 2013.ONE PAGE SMOOTH SCROLL INIT FUNCTION 2114.INLINE FORM RESPOSIVE CLASS INIT FUNCTION 2215.COUNTER UP INIT FUNCTION 2316.SERVICES PAGE SERVICE COLUM FIX INIT FUNCTION 2417.SOME CUSTOM STYLE FOR CONTACT FORM FUNCTION 2518.GOOGLE MAP INIT FUNCTION 2619.SIDEBAR SERCH FORM FOCUS FUNCTION 2720.ISOTOPE FILTER INIT FUNCTION 2821.WOOCOMMERCE SPINNER INIT FUNCTION 2922.WOOCOMMERCE CHCKBOX AND RADIO INPUT STYLE INIT FUNCTION 3023.WOOCOMMERCE CART LIST HOVER INIT FUNCTION 3124.CUSTOM DEFAULT HTML TABLE CLASS FUNCTION 3225.CUSTOM MOBIL HOVER TRIGGER FUNCTION 3326.CUSTOM BLOG SINGLE ICON EXPAND FUNCTION 34-------------------- 35->DOCUMENT READY ALL FUNCTION CALL 36->WINDOW LOAD RESIZE ALL FUNCTION CALL 37->ONLY WINDOW LOAD FUNTION CALL 38 39************************************* */ 40 41(function($){ 42'use strict'; 43 44 // Sticky Script 45 $('.roch-sticky').sticky ({ 46 topSpacing: 0, 47 zIndex: 4 48 }); 49 $('.roch-sticky').on('sticky-start', function() { $(this).addClass('header-classic'); }); 50 $('.roch-sticky').on('sticky-end', function() { $(this).removeClass('header-classic'); }); 51 52/*============ 1.SERCH BOX FOCUS FUNCTION ===========*/ 53function roch_search_box(){ 54 $(".roch-search-icon").on("click",function(){ 55 $("#roch-search-form").toggleClass('roch-search-active'); 56 }); 57} 58/*============ 2.OFF CANVES TOGGLE CLASS CUSTOM FUNCTION ===========*/ 59function roch_off_canves(){ 60 $(".roch-off-canves-nav-icon, .roch-off-canves-close-btn").on("click",function(e){ 61 e.preventDefault(); 62 $("#roch_full_layout").toggleClass('off-canves-open'); 63 return false; 64 }); 65 $(".roch-off-canves-overly").on("click",function(e){ 66 if("roch-off-canves-overly" === e.target.className){ 67 $("#roch_full_layout") 68 .removeClass('off-canves-open'); 69 } 70 return; 71 }); 72 73} 74 75 76/*============ 3.CLASSIC HEADER MENU CUSTOM FUNCTION ===========*/ 77function roch_header_classic(){ 78 // header area condition without Banner 79 var $conHeaderCla = $("body").has(".roch-slider-area, .wpb_revslider_element, .revslider-initialised").length; 80 if(true != $conHeaderCla){ 81 $(".roch-header-area") 82 .after('<div class="roch-header-space"></div>') 83 .addClass("roch-header-active"); 84 } 85 86 // onpage nave hash link animation 87 var topMenu = $("#roch-main-menu,#roch-off-canves-menu"), 88 offset = 40, 89 topMenuHeight = topMenu.outerHeight()+offset, 90 // All list items 91 menuItems = topMenu.find('a[href*="#"]'), 92 // Anchors corresponding to menu items 93 scrollItems = menuItems.map(function(){ 94 var href = $(this).attr("href"), 95 id = href.substring(href.indexOf('#')), 96 item = $(id); 97 //console.log(item) 98 if (item.length) { return item; } 99 }); 100 101 // so we can get a fancy scroll animation 102 menuItems.click(function(e){ 103 var href = $(this).attr("href"), 104 id = href.substring(href.indexOf('#')); 105 var offsetTop = href === "#" ? 0 : $(id).offset().top-78; 106 $('html, body').stop().animate({ 107 scrollTop: offsetTop 108 }, 1000); 109 e.preventDefault(); 110 }); 111 112 // Bind to scroll 113 $(window).scroll(function(){ 114 // Get container scroll position 115 var fromTop = $(this).scrollTop()+topMenuHeight; 116 117 // Get id of current scroll item 118 var cur = scrollItems.map(function(){ 119 if ($(this).offset().top < fromTop) 120 return this; 121 }); 122 123 // Get the id of the current element 124 cur = cur[cur.length-1]; 125 var id = cur && cur.length ? cur[0].id : ""; 126 127 menuItems.parent().removeClass("active"); 128 if(id){ 129 menuItems.parent().end().filter("[href*='#"+id+"']").parent().addClass("active"); 130 } 131 132 }); 133 134} 135 136/*============ 4.HEIGHT FOR FULL SCREEN SLIDER CUSTOM FUNCTION ===========*/ 137function roch_slider_full_screen_height(){ 138 var $ContentFullHeight = $("body").has(".roch-full-screen-window-height").length; 139 if(true == $ContentFullHeight){ 140 $(".roch-full-screen-window-height").height($(window).height()); 141 } 142 return; 143} 144 145/*============ 5.SPECIAL DISHES SECTION OWL CAROUSEL INIT FUNCTION ===========*/ 146function roch_special_dishes_init(){ 147 var $Content = $("body").has("#roch-special-dishes-cuarosel").length; 148 if(true == $Content){ 149 150 // blog post carousel
151 var spDiCaroselet = $("#roch-special-dishes-cuarosel"); 152 spDiCaroselet.owlCarousel({ 153 autoplay:true, 154 loop: true, 155 items: 3, 156 dots:true, 157 nav: false, 158 margin:30, 159 responsive:{ 160 0:{ 161 items:1, 162 }, 163 750:{ 164 items:2, 165 }, 166 970:{ 167 items:3, 168 }, 169 1170:{ 170 items:3, 171 172 } 173 } 174 175 }); 176 } 177 return; 178} 179/*============ 6.TESTIMONIAL OWL CAROUSEL INIT INIT FUNCTION ===========*/ 180function roch_testimonial_caro(){ 181 var $testicontent = $("body").has(".roch-testimonial-carousel").length; 182 if(true == $testicontent){ 183 var loopItem = $(".roch-testimonial-carousel .roch-testimonial-single-item"); 184 loopItem = (loopItem.length > 1) ? true : false; 185 $(".roch-testimonial-carousel").owlCarousel({ 186 autoplay:false, 187 loop: loopItem, 188 items:1, 189 dots:false, 190 nav: true, 191 navText:['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'] 192 }); 193 } 194 return; 195} 196 197/*============ 7.CLASSIC TESTIMONIAL OWL CAROUSEL INIT INIT FUNCTION ===========*/ 198function roch_classic_testimonial_caro(){ 199 var $testicontent = $("body").has(".roch-classic-testimonial-curosel").length; 200 if(true == $testicontent){ 201 var loopItem = $(".roch-classic-testimonial-curosel .roch-clas-tes-single-item"); 202 loopItem = (loopItem.length > 1) ? true : false; 203 $(".roch-classic-testimonial-curosel").owlCarousel({ 204 autoplay:false, 205 loop: loopItem, 206 items:1, 207 dots:true, 208 nav: false, 209 210 }); 211 } 212 return; 213} 214 215/*============ 8.LIGHT GALLERY INIT FUNCTION ===========*/ 216function roch_lightbox_g(){ 217 var $popupGroup = $("body").has(".roch-light-popup-group").length; 218 if(true == $popupGroup){ 219 $(".roch-light-popup-group").each(function(){ 220 var $this = $(this); 221 $this.lightGallery({ 222 selector: "[data-lg-popup*='"+$this.find('[data-lg-popup]').attr('data-lg-popup')+"']", 223 download: false, 224 thumbnail:false 225 }); 226 }); 227 } 228} 229 230function roch_bootstrap_time_date_rating_picker(){ 231 $('.roch-text-date-fi').children('input').addClass('datepicker_fil'); 232 $('.roch-text-time-fi').addClass('bootstrap-timepicker timepicker'); 233 $('.roch-text-time-fi').children('input').addClass('timepicker_fil'); 234 $('.datepicker_fil').datepicker({ 235 format: 'yyyy/mm/dd', 236 startDate: '-3d' 237 }); 238 $(".datepicker_btn").on("click",function(){ 239 $(".datepicker_fil").trigger("focus"); 240 }); 241 242 // time picker 243 $('.timepicker_fil').timepicker(); 244 245 // rating 246 $('.roch-rating-tooltip-manual').rating(); 247} 248 249$( "#tbDate" ).datepicker({dateFormat:"yy/mm/dd"}).datepicker("setDate",new Date()); 250 251$('#tbDate, #tbTime').bind('keypress blur', function() { 252 $('#tbDateTime').val($('#tbDate').val() + ' ' + $('#tbTime').val()); 253}); 254 255/*============ 9.FOOTER COLUM AUTO ADJUST FUNCTION ===========*/ 256function roch_footer_colum_auto_adjust(){ 257 var $Content = $("body").has(".roch-footer-widgets > .col-sm-6").length; 258 if(true == $Content){ 259 $(".roch-footer-widgets .col-sm-6").eq(1).after('<div class="clearfix visible-sm-block"></div>'); 260 } 261 return; 262} 263 264/*============= 10.DROPDOWN MENU A CLICK FALSE FUNTION CALL ===========*/ 265function roch_mainmenu_dropdown_click_false(){ 266 var $Content,$searchIcon; 267 $Content = $("body").has(".menu-item-has-children").length; 268 $searchIcon = $("body").has("a.roch-search-icon").length; 269 if(true == $Content){ 270 $(".menu-item-has-children > a, .roch-food-menu-nav > li > a").on("click",function(e){ 271 e.preventDefault(); 272 }); 273 }if(true == $searchIcon){ 274 $("a.roch-search-icon").on("click",function(e){ 275 e.preventDefault(); 276 }); 277 } 278 return; 279} 280/*============ 11.CUSTOM SLIDEDOWN MENU FUNCTION ===========*/ 281function roch_offCanves_Dropdown_menu(){ 282 $.sidebarMenu($('#roch-off-canves-menu')); 283} 284 285/*============ 12.PARALLAX INIT FUNCTION ===========*/ 286function roch_pralax_helium_init(){ 287 var $Content,$searchIcon; 288 $Content = $("body").has(".roch-distance-parallax").length; 289 if(true == $Content){ 290 $('#roch-parax-1').heliumParallax({ 291 paraStart:400, 292 paraEnd: 1200, 293 minVal: ['-30px'], 294 maxVal: ['30px'], 295 relate: ['swing'] 296 }); 297 298 $('#roch-parax-2').heliumParallax({ 299 paraStart:400, 300 paraEnd: 1200, 301 minVal: ['30px'], 302 maxVal: ['-30px'], 303 relate: ['swing'] 304 }); 305 306 } 307 return; 308 309} 310 311/*============ 13.ONE PAGE SMOOTH SCROLL INIT FUNCTION ===========*/ 312// function roch_onepage_smooth_hash_link(){ 313// var $Content = $("body").has(".roch-smooth-hash-link").length; 314// if(true == $Content){ 315// $('.roch-smooth-hash-link').onePageNav({ 316// currentClass: 'current_page_item', 317// offsetHeight: 100, 318// }); 319// } 320// return; 321// } 322 323/*============ 14.INLINE FORM RESPOSIVE CLASS INIT FUNCTION ===========*/ 324function roch_onepage_table_form(){ 325 var $Content = $("body").has(".roch-inline-online-reser-from").length; 326 if(true == $Content){ 327 var cseckSelect = $(".roch-slider-area"); 328 if($(window).width()<=767){ 329 cseckSelect 330 .has(".roch-inline-online-reser-from") 331 .next() 332 .addClass("reser-from-respons"); 333 } 334 else{ 335 cseckSelect 336 .has(".roch-inline-online-reser-from") 337 .next() 338 .removeClass("reser-from-respons"); 339 } 340 } 341 return; 342} 343/*============ 15.COUNTER UP INIT FUNCTION ===========*/ 344function roch_counter_up_init(){ 345 var $Content = $("body").has(".roch-counter").length; 346 if(true == $Content){ 347 $('.roch-counter').counterUp({ 348 delay: 10, 349 time: 1000 350 }); 351 } 352 return; 353} 354 355/*============ 16.SERVICES PAGE SERVICE COLUM FIX INIT FUNCTION ===========*/ 356function roch_service_page_area_fix(){ 357 var $Content = $("body").has(".roch-services-page-service-row .col-md-3.roch-custom-col").length; 358 if(true == $Content){ 359 $(".roch-services-page-service-row .roch-custom-col").each(function(i){ 360 if($(window).width() > 991){ 361 $(this).next(".clearfix").remove(); 362 var check = (i==3 || i==7 || i==11 || i==15 || i == 19 || i == 23 || i==27 || i==31); 363 if(check){ 364 $(this).after('<div class="clearfix"></div>'); 365 } 366 }else if($(window).width() <992){ 367 $(this).next(".clearfix").remove(); 368 var check = (i==2 || i==5 || i==8 || i==11 || i == 15 || i == 18 || i==21 || i==24); 369 if(check){ 370 $(this).after('<div class="clearfix visible-sm-block"></div>'); 371 } 372 }else{ 373 $(this).next(".clearfix").remove(); 374 } 375 }); 376 } 377 return; 378} 379 380/*============= 17.SOME CUSTOM STYLE FOR CONTACT FORM FUNCTION ===========*/ 381function roch_contact_form_input(){ 382 // input range and number filed 383 var $rangeSelect,$numberFi; 384 $rangeSelect = $(".roch-stylest-contact-form input[type='range'], .wpcf7-form-control-wrap input[type='range']"); 385 $numberFi = $(".roch-stylest-contact-form input[type='number'] , .wpcf7-form-control-wrap input[type='number']"); 386 387 $numberFi.on("change",function(){ 388 var max = parseInt($(this).attr('max')); 389 var min = parseInt($(this).attr('min')); 390 391 if ($(this).val() > max) 392 { 393 $(this).attr("disabled","disabled"); 394 $(this).val(max); 395 } 396 if($(this).val() < min){ 397 $(this).attr("disabled","disabled"); 398 $(this).val(min); 399 } 400 401 $rangeSelect.val($(this).val()); 402 403 }); 404 405 $rangeSelect.on("change",function(){ 406 var $rangeVal = $(this).val(); 407 $numberFi.removeAttr("disabled"); 408 $numberFi.val($rangeVal); 409 }); 410 411 // input file upload 412 var fileSelec = $(".roch-stylest-contact-form input[type='file'], .wpcf7-form-control-wrap input[type='file']"); 413 fileSelec.parent().addClass("roch-file-upload"); 414 fileSelec.before("<span class='roch-file-btn'>Upload</span>"); 415 fileSelec.after("<span class='roch-file-name'>No file selected</span>"); 416 fileSelec.on("change",function(){ 417 var fileName = $(this).val(); 418 $(this).next(".roch-file-name").text(fileName); 419 }); 420 421 // input checkbox 422 var $checkBoxSelector = $(".roch-stylest-contact-form input[type='checkbox'], .wpcf7-checkbox label input[type='checkbox']"); 423 $checkBoxSelector.after("<span class='roch-checkbox-btn'></span>"); 424 425 // input radio 426 var $radioSelector = $(".roch-stylest-contact-form input[type='radio'], .wpcf7-radio label input[type='radio']"); 427 $radioSelector.after("<span class='roch-radio-btn'></span>"); 428} 429 430 431 /*============= 18.GOOGLE MAP INIT FUNCTION ===========*/ 432function roch_google_map_api(){ 433 var $contentGoogleMap = $("body").has("#roch_google_map").length; 434 if(true == $contentGoogleMap){ 435 $("#roch_google_map").googleMap({ 436 zoom: 14, 437 type: "ROADMAP", 438 streetViewControl: false, 439 scrollwheel: false, 440 mapTypeControl: false, 441 coords: ['40.712784', '-74.005941'], 442 styles: [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}], 443 }); 444 $("#roch_google_map").addMarker({ 445 coords: ['40.712784', '-74.005941'], 446 icon: 'http://garrybuckland.com/wp-content/uploads/2015/12/map-marker-icon.png', 447 title: 'My Own Heading!!!', 448 text: 'And Some of my Own Texts' 449 }); 450 } 451 return; 452 453} 454 455/*============= 19.SIDEBAR SERCH FORM FOCUS FUNCTION ===========*/ 456function roch_sidebar_search_focus(){ 457 var $content = $("body").has(".roch-side-widget .search-form input.search-field").length; 458 if(true == $content){ 459 var $selector = $(".roch-side-widget .search-form input.search-field"); 460 $selector.on("focusin",function(e){ 461 $(this) 462 .parents(".search-form") 463 .children('.search-submit') 464 .addClass("roch-sideserch-active"); 465 }); 466 $selector.on("focusout",function(e){ 467 $(this) 468 .parents(".search-form") 469 .children('.search-submit') 470 .removeClass("roch-sideserch-active"); 471 }); 472 } 473 return; 474} 475 476/*============ 20.ISOTOPE FILTER INIT FUNCTION ===========*/ 477function roch_filter_function(){ 478 var $content = $("body").has(".roch-shop-filter-list-warp").length; 479 if(true == $content){ 480 $('.roch-filter-btn-group').on( 'click', 'li', function() { 481 $("#roch_sorters.roch-filter-btn-group ul > li").removeClass('is-checked'); 482 $(this).addClass('is-checked'); 483 }); 484 } 485 return; 486} 487 488/*============ 22.WOOCOMMERCE CHCKBOX AND RADIO INPUT STYLE INIT FUNCTION ===========*/ 489function roch_input_chckbox_radio_style(){ 490 $(".woocommerce-checkout, .woocommerce-page, .woocommerce").find("input[type='checkbox']") 491 .after("<span class='roch-woo-check-style'></span>"); 492 $(".woocommerce-checkout, .woocommerce-page, .woocommerce").find("input[type='radio']") 493 .after("<span class='roch-woo-radio-style'></span>"); 494} 495/*============ 23.WOOCOMMERCE CART LIST HOVER INIT FUNCTION ===========*/ 496function roch_cart_list_hover(){ 497 var $content = $("body").has(".roch-cart-count").length; 498 499 if($(".roch-cart-count").text() == 0){ 500 $(".roch-cart-count").css("padding","0"); 501 } 502 503 $(".add_to_cart_button").on("click",function(){ 504 if($(".roch-cart-count").text() > 0){ 505 $(".roch-cart-count").css("padding","0 5px"); 506 } 507 }); 508 509 var itemWarp = $(".roch-shop-btn-main"); 510 if(itemWarp.has(".mini_cart_item").length == 0){ 511 itemWarp.addClass("item-has-no"); 512 } 513 itemWarp.hover(function(){ 514 var $this = $(this); 515 if($this.has(".mini_cart_item").length == 0){ 516 $this.addClass("item-has-no"); 517 }else{ 518 $this.removeClass("item-has-no"); 519 } 520 return false;
521 }); 522} 523 524 // Rodich hover script 525 $('.roch-single-service').hover ( 526 function() { 527 $(this).find(".roch-sin-ser-capt-title").delay("fast").hide(); 528 $(this).find(".roch-sin-ser-caption-hover-warp").slideDown('fast'); 529 }, 530 function() { 531 $(this).find(".roch-sin-ser-caption-hover-warp").slideUp('fast'); 532 $(this).find(".roch-sin-ser-capt-title").show(140); 533 } 534 ); 535 536 537/*============= 24.CUSTOM DEFAULT HTML TABLE CLASS FUNCTION ===========*/ 538function roch_default_table_addclass(){ 539 var tableclass = $(".roch-blog-single-strandard-entry-content table, .comment-content table").attr("class"); 540 if(undefined == tableclass || null == tableclass){ 541 $(".roch-blog-single-strandard-entry-content table, .comment-content table").addClass("table"); 542 } 543 return; 544} 545 546/*============= 25.CUSTOM MOBIL HOVER TRIGGER FUNCTION ===========*/ 547function roch_mobil_touch(){ 548 $('.roch-food-menu-nav a').on("click touchend",function (e) { 549 e.preventDefault(); 550 $(this).tab('show'); 551 }); 552 553 $('.roch-great-service-single, .roch-home-gallery-single-item, .roch-single-service, .roch-single-staff') 554 .on('click touchend', function(e) { 555 $(this).trigger('hover'); 556 }); 557} 558 559/*============= 26.CUSTOM BLOG SINGLE ICON EXPAND FUNCTION ===========*/ 560function roch_blogSIngle_icon_expand(){ 561 $('.roch-blg-sin-scoial li.roch-bsSExpand_btn a').on("click",function (e) { 562 e.preventDefault(); 563 $(".roch-blg-sin-scoial").toggleClass("roch-expand"); 564 }); 565} 566 567/*============= xxxxxxxxxxxxxxxxxxxxxxxxx ===========*/ 568 569/*============= DOCUMENT READY ALL FUNCTION CALL ===========*/ 570$(function(){ 571 if (typeof roch_search_box == 'function'){ 572 roch_search_box(); 573 } 574 575 if (typeof roch_off_canves == 'function'){ 576 roch_off_canves(); 577 } 578 579 if (typeof roch_header_classic == 'function'){ 580 roch_header_classic(); 581 } 582 583 if (typeof roch_special_dishes_init == 'function'){ 584 roch_special_dishes_init(); 585 } 586 587 if (typeof roch_testimonial_caro == 'function'){ 588 roch_testimonial_caro(); 589 } 590 591 if (typeof roch_classic_testimonial_caro == 'function'){ 592 roch_classic_testimonial_caro(); 593 } 594 595 if (typeof roch_lightbox_g == 'function'){ 596 roch_lightbox_g(); 597 } 598 599 if (typeof roch_bootstrap_time_date_rating_picker == 'function'){ 600 roch_bootstrap_time_date_rating_picker(); 601 } 602 603 if (typeof roch_footer_colum_auto_adjust == 'function'){ 604 roch_footer_colum_auto_adjust(); 605 } 606 607 if (typeof roch_mainmenu_dropdown_click_false == 'function'){ 608 roch_mainmenu_dropdown_click_false(); 609 } 610 611 if (typeof roch_offCanves_Dropdown_menu == 'function'){ 612 roch_offCanves_Dropdown_menu(); 613 } 614 615 // if (typeof roch_onepage_smooth_hash_link == 'function'){ 616 // roch_onepage_smooth_hash_link(); 617 // } 618 if (typeof roch_counter_up_init == 'function'){ 619 roch_counter_up_init(); 620 } 621 if (typeof roch_contact_form_input == 'function'){ 622 roch_contact_form_input(); 623 } 624 if (typeof roch_sidebar_search_focus == 'function'){ 625 roch_sidebar_search_focus(); 626 } 627 if (typeof roch_filter_function == 'function'){ 628 roch_filter_function(); 629 } 630 if (typeof roch_input_chckbox_radio_style == 'function'){ 631 roch_input_chckbox_radio_style(); 632 } 633 if (typeof roch_cart_list_hover == 'function'){ 634 roch_cart_list_hover(); 635 } 636 if (typeof roch_default_table_addclass == 'function'){ 637 roch_default_table_addclass(); 638 } 639 if (typeof roch_mobil_touch == 'function'){ 640 roch_mobil_touch(); 641 } 642 if (typeof roch_blogSIngle_icon_expand == 'function'){ 643 roch_blogSIngle_icon_expand(); 644 } 645 646 647}); 648 649 650/*============= WINDOW LOAD RESIZE FUNTION CALL ===========*/ 651$(window).on("load resize",function(){ 652 if (typeof roch_pralax_helium_init == 'function'){ 653 roch_pralax_helium_init(); 654 } 655 if (typeof roch_onepage_table_form == 'function'){ 656 roch_onepage_table_form(); 657 } 658 if (typeof roch_service_page_area_fix == 'function'){ 659 roch_service_page_area_fix(); 660 } 661 if (typeof roch_google_map_api == 'function'){ 662 roch_google_map_api(); 663 } 664}); 665/*============= ONLY WINDOW LOAD FUNTION CALL ===========*/ 666$(window).load(function(){ 667 $("#roch-preloder-warp").delay(350).fadeOut("slow"); // will fade out the white DIV that covers the website. 668 $("body").removeAttr("data-preloder"); 669}); 670/*============= Banner custom height fix ===========*/ 671$(document).ready(function(){ 672 var $targetClass = ".rodich-banner-custom-height", 673 $target = $($targetClass), 674 $content = $("body").has($targetClass).length; 675 if(true == $content){ 676 var $height = $target.data("height"); 677 $target.parents('.vc_row').addClass("rodich-banner-custom").css({'height': $height}); 678 } 679 680 var has_banner_form = $("body").has('.roch-find-table-form-area').length; 681 if(true == has_banner_form){ 682 $('.roch-find-table-form-area').parents('#roch_full_layout').addClass('banner-form-active'); 683 } 684 685 $('.roch-food-menu-row .onsale').addClass('roch-food-menu-item-highlight'); 686}); 687 688})(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.