1 2 3 4 5jQuery(window).load(function($){ 6 7 8 9 jQuery( function($) { 10 11 var mastheadheight; 12 13 //$(window).stellar(); 14 15 16 17 function makeeven(e){ 18 $(e).css('height','inherit'); 19 var maxHeight; 20 var heights = $(e).map(function () 21 { 22 return $(this).outerHeight(); 23 }).get(), 24 25 maxHeight = Math.max.apply(null, heights); 26 $(e).css('height',maxHeight); 27 } 28 29 /* fix vertical when not overflow 30 call fullscreenFix() if .fullscreen content changes */ 31 function fullscreenFix(){ 32 var h = $('body').height(); 33 // set .fullscreen height 34 $(".content-b").each(function(i){ 35 if($(this).innerHeight() > h){ 36 $(this).closest(".fullscreen").addClass("overflow"); 37 } 38 }); 39 } 40 $(window).resize(fullscreenFix); 41 fullscreenFix(); 42 43 /* resize background images */ 44 function backgroundResize(){ 45 var windowH = $(window).height(); 46 var windowW = $(window).width(); 47 $(".background").each(function(i){ 48 var path = $(this); 49 // variables 50 var contW = path.width(); 51 var contH = path.height(); 52 var imgW = path.attr("data-img-width"); 53 var imgH = path.attr("data-img-height"); 54 var ratio = imgW / imgH; 55 // overflowing difference 56 var diff = parseFloat(path.attr("data-diff")); 57 diff = diff ? diff : 0; 58 // remaining height to have fullscreen image only on parallax 59 var remainingH = 0; 60 if(path.hasClass("parallax")){ 61 var maxH = contH > windowH ? contH : windowH; 62 remainingH = windowH - contH; 63 } 64 // set img values depending on cont 65 imgH = contH + remainingH + diff; 66 imgW = imgH * ratio; 67 // fix when too large 68 if(contW > imgW){ 69 imgW = contW; 70 imgH = imgW / ratio; 71 } 72 // 73 path.data("resized-imgW", imgW); 74 path.data("resized-imgH", imgH);
75 path.css("background-size", imgW + "px " + imgH + "px"); 76 }); 77 78 79 80 var grid_block_width = $('.grid_block').outerWidth(); 81 $('.grid_block').css('height',grid_block_width); 82 83 mastheadheight = $('.masthead').height(); 84 85 $( ".event_block_wrap" ).each(function() { 86 var image_box = $( this ).find( ".event_image" ); 87 var text_box_height = $( this ).find( ".box_wrap" ).outerHeight(); 88 89 if($(window).width() > 768) { 90 $(image_box).css('height',text_box_height); 91 92 93 } else { 94 $(image_box).css('height',text_box_height/1.6); 95 96 } 97 }); 98 99 if($(window).width() > 768) { 100 makeeven('.feature_even'); 101 makeeven('.home_property_block .text'); 102 makeeven('.evenit'); 103 makeeven('.evenit2'); 104 105 makeeven('.location_box'); 106 107 makeeven('.even_double'); 108 makeeven('.even_single'); 109 } 110 111 112 113 makeeven('.even_stat_white'); 114 makeeven('.even_stat_red'); 115 116 var instawidth = $('.insta_box').width(); 117 $(".insta_box, .insta_box_first").css('height', instawidth/1.1); 118 119 } 120 $(window).resize(backgroundResize); 121 //$(window).focus(backgroundResize); 122 //backgroundResize(); 123 124 setTimeout( 125 function() 126 { 127 backgroundResize(); 128 $('.main_wrap, .top_nav, .navbar-brand-new').css('opacity','1'); 129 if ($("body.home")[0]){ 130 if($(window).width() > 767) { 131 132 $(window).stellar({ 133 horizontalScrolling: false, 134 verticalOffset: 0, 135 horizontalOffset: 0 136 137 }); 138 139 } 140 } else { 141 142 if($(window).width() > 767) { 143 144 $(window).stellar({ 145 horizontalScrolling: false, 146 //verticalOffset: 0, 147 horizontalOffset: 0 148 149 }); 150 151 } else { 152 /* 153 $(window).stellar({ 154 horizontalScrolling:false, 155 verticalOffset: 0, 156 horizontalOffset: 0 157 158 }); */ 159 } 160 161 162 } 163 }, 400); 164 165 166 167 setTimeout( 168 function() 169 { 170 backgroundResize(); 171 172 }, 600); 173 174 175 var home_url = $('.navbar-brand-new').attr('href'); 176 177 function pageScroll(){ 178 179 var w = $(window).width(); 180 var h = $(window).height(); 181 182 $window = $(window); 183 var s = $window.scrollTop(); 184 185 186 187 188 if($(window).width() > 768 ){ 189 190 var percent = s/30; 191 var percent2 = s*1.8; 192 var translate = (0)+percent; 193 var translate2 = (0)+percent2; 194 var minustranslate = (0)-percent; 195 196 //$('.masthead').css({transform: 'translateX(0%) translateY(' + translate +'%)'}); 197 //$('.menu_tab').css({transform: 'translateX(0%) translateY(' + translate2 +'%)'}); 198 199 200 var stickyHeaderTop = $('.masthead').height()/1.2; 201 202 if($(".masthead").length){ 203 204 205 var fadeout = 1-($(window).scrollTop()/(stickyHeaderTop*2)); 206 207 if( $(window).scrollTop() > stickyHeaderTop ) { 208 209 //$('.navbar').css('background','rgba(255,255,255,1)'); 210 $('.navbar .bg').css('opacity','1'); 211 $('.order_btn').css('color','#f00;'); 212 $('.nav_top > li > a, .nav_top li').css('color','#111 !important'); 213 $('.cart_icon').removeClass('white'); 214 $('.side_menu .menu_lines span').css('background','#111'); 215 //$('.social_top a').css('color','#111 !important'); 216 217 $('.franchise_nav_wrap_top').css('display','block'); 218 $('.franchise_nav_wrap_top').css('opacity','1'); 219 220 221 } else { 222 $('.navbar .bg').css('opacity','0'); 223 $('.order_btn').css('color','#fff;'); 224 $('.nav_top > li > a, .nav_top li').css('color','#fff !important'); 225 $('.cart_icon').addClass('white'); 226 //$('.social_top a').css('color','#fff !important'); 227 $('.side_menu .menu_lines span').css('background','#fff'); 228 $('.franchise_nav_wrap_top').css('display','none'); 229 $('.franchise_nav_wrap_top').css('opacity','0'); 230 } 231 232 233 } else { 234 235 $('.nav_top > li > a, .nav_top li').css('color','#111 !important'); 236 $('.cart_icon').removeClass('white'); 237 $('.side_menu .menu_lines span').css('background','#111'); 238 239 if( $(window).scrollTop() > 100 ) { 240 $('.navbar .bg').css('opacity','1'); 241 $('.order_btn').css('color','#f00;'); 242 } else { 243 $('.navbar .bg').css('opacity','0'); 244 $('.order_btn').css('color','#fff;'); 245 } 246 247 } 248 249 250 251 252 253 254 255 256 } else { 257 258 $('.side_menu .menu_lines span').css('background','#111'); 259 $('.navbar .bg').css('opacity','1'); 260 $('.order_btn').css('color','#f00;'); 261 $('.franchise_nav_wrap_top').css('display','none !important'); 262 263 } 264 265 266 267 268 } 269 $(window).resize(pageScroll); 270 //$(window).focus(pageScroll); 271 $(window).scroll(pageScroll); 272 //pageScroll(); 273 //setInterval(pageScroll, 20); 274 setTimeout( 275 function() 276 { 277 pageScroll(); 278 }, 400); 279 280 281 $('.scroll_arrow_image, .view_menu').on('click', function() { 282 283 $('body, html').animate({scrollTop: mastheadheight-85}, 1000, 'easeInOutCubic'); 284 }); 285 286 287 288 var home_url = $('.navbar-brand-new').attr('href'); 289
290 // $('.masthead_slider').slick({ 291 // dots: false, 292 // infinite: true, 293 // arrows:false, 294 // pauseOnHover:false, 295 // prevArrow: '<div class="slideprev"><img src="'+home_url+'/wp-content/themes/sitetheme/library/images/slide_left_white.svg"></div>', 296 // nextArrow: '<div class="slidenext"><img src="'+home_url+'/wp-content/themes/sitetheme/library/images/slide_right_white.svg"></div>', 297 // autoplay: true, 298 // autoplaySpeed: 4000, 299 // speed: 1000, 300 // fade: true, 301 // cssEase: 'ease', 302 // slidesToShow: 1, 303 // lazyLoad: 'ondemand', 304 // slidesToScroll: 1 305 // }); 306 307 // $( ".slidenext" ).click(function() { 308 // $('.masthead_slider').slick('slickNext'); 309 // }); 310 // $( ".slideprev" ).click(function() { 311 // $('.masthead_slider').slick('slickPrev'); 312 // }); 313 314 315 $('.home_body_slide').slick({ 316 dots: false, 317 infinite: true, 318 arrows:true, 319 pauseOnHover:true, 320 prevArrow: '<div class="slideprev"><img src="'+home_url+'/wp-content/themes/sitetheme/library/images/slide_left_white.svg"></div>', 321 nextArrow: '<div class="slidenext"><img src="'+home_url+'/wp-content/themes/sitetheme/library/images/slide_right_white.svg"></div>', 322 autoplay: true, 323 autoplaySpeed: 4000, 324 speed: 1000, 325 fade: true, 326 cssEase: 'ease', 327 slidesToShow: 1, 328 lazyLoad: 'ondemand', 329 slidesToScroll: 1 330 }); 331 332 $('.property_slider').slick({ 333 dots: true, 334 infinite: true, 335 arrows:true, 336 pauseOnHover:true, 337 prevArrow: '<div class="slideprev"></div>', 338 nextArrow: '<div class="slidenext"></div>', 339 autoplay: true, 340 autoplaySpeed: 4000, 341 speed: 1000, 342 fade: false, 343 focusOnSelect: true, 344 cssEase: 'ease', 345 slidesToShow: 3, 346 centerMode: true, 347 lazyLoad: 'ondemand', 348 slidesToScroll: 1, 349 variableWidth: true, 350 responsive: [ 351 { 352 breakpoint: 768, 353 settings: { 354 arrows: false, 355 centerMode: true, 356 centerPadding: '40px', 357 slidesToShow: 2 358 } 359 }, 360 { 361 breakpoint: 480, 362 settings: { 363 arrows: false, 364 centerMode: true, 365 centerPadding: '40px', 366 slidesToShow: 1 367 } 368 } 369 ] 370 }); 371 372 $('.weddings_testimonials_slider').slick({ 373 dots: true, 374 infinite: true, 375 arrows:true, 376 pauseOnHover:true, 377 prevArrow: '<div class="slideprev"></div>', 378 nextArrow: '<div class="slidenext"></div>', 379 autoplay: true, 380 autoplaySpeed: 4000, 381 speed: 1000, 382 fade: false, 383 focusOnSelect: true, 384 cssEase: 'ease', 385 slidesToShow: 2, 386 lazyLoad: 'ondemand', 387 slidesToScroll: 1, 388 responsive: [ 389 { 390 breakpoint: 768, 391 settings: { 392 arrows: false, 393 slidesToShow: 1 394 } 395 }, 396 { 397 breakpoint: 480, 398 settings: { 399 arrows: false, 400 slidesToShow: 1 401 } 402 } 403 ] 404 }); 405 406 407 $('.feature_block_slider').slick({ 408 dots: true, 409 infinite: true, 410 arrows:true, 411 pauseOnHover:true, 412 prevArrow: '<div class="slideprev"></div>', 413 nextArrow: '<div class="slidenext"></div>', 414 autoplay: true, 415 autoplaySpeed: 4000, 416 speed: 1000, 417 fade: false, 418 focusOnSelect: true, 419 cssEase: 'ease', 420 slidesToShow: 1, 421 lazyLoad: 'ondemand', 422 slidesToScroll: 1, 423 }); 424 425 426 427 428 $("#my-menu").mmenu({ 429 //options 430 navbar: { 431 title: '<div id="menu_close_wrap"><div class="menu_close"></div><span>Close</span></div>' 432 }, 433 extensions: ["border-full"], 434 extensions: ["theme-dark"], 435 "extensions": [ 436 "position-back", 437 "position-left" 438 ], 439 offCanvas: { 440 position : "left", 441 pageSelector: "#my-wrapper" 442 }, 443 classNames: { 444 fixedElements: { 445 fixed: "fix", 446 sticky: "stick" 447 } 448 } 449 450 451 }); 452 453 var api = $("#my-menu").data( "mmenu" ); 454 455 api.bind('open:finish', function () { 456 console.log('opened'); 457 458 $(".menu_close, #menu_close_wrap span").click(function() { 459 //console.log('close'); 460 api.close(); 461 }); 462 }); 463 464 465 466 467 $('.content_blocks').isotope({ 468 itemSelector: '.m-item', 469 layoutMode: 'masonry', 470 masonry: { 471 columnWidth:'.m-item', 472 gutter: 0 473 }, 474 resizesContainer: true 475 }); 476 477 478 479 480 $( ".book_venues" ).click(function() { 481 event.preventDefault(); 482 //var venue_book = $('#venue_book').find(":selected").text(); 483 //var linkValue = $('#venue_book').find(':selected').data('link'); 484 //console.log(venue_book); 485 //var optionValue = $('#venue_book').val(); 486 //$('.open_table_id').html(optionValue); 487 //$('.venue_name').html(venue_book); 488 $('.popform').css('opacity',0.1); 489 //$("#venue_book").val($("#venue_book option:first").val()); 490 491 $.magnificPopup.open({ 492 items: { 493 src: '#info-popup', // can be a HTML string, jQuery object, or CSS selector 494 type:'inline', 495 }, 496 mainClass: 'mfp-fade', 497 showCloseBtn: false, 498 midClick: true, 499 closeOnBgClick: false, 500 501 }); 502 503 504 }); 505 506 $('.open-popup').magnificPopup({ 507 type:'inline', 508 mainClass: 'mfp-fade', 509 showCloseBtn: false, 510 midClick: true, 511 closeOnBgClick:false, 512 callbacks: { 513 open: function() { 514 $('html').css('margin-right', 0); 515 } 516 } 517 }); 518 519 $('#venue_book').on('change', function() { 520 521 var optionValue = $(this).val(); 522 var venue_book = $(this).find(":selected").text(); 523 var linkValue = $(this).find(':selected').data('link'); 524 $('.open_table_id').html(optionValue); 525 $('.venue_name').html(venue_book); 526 527 $('.popform').css('opacity',1); 528 console.log(venue_book); 529 //$('.book_page_book').css('opacity',1); 530 if(optionValue){ 531 /* $('.reserve_wrap').css('opacity',1); 532 $('.book_link').css('opacity',0); 533 $('.book_link').css('z-index',-1); */ 534 } else { 535 /* $('.reserve_wrap').css('opacity',0); 536 $(".book_link_external").attr("href", linkValue); 537 $('.book_link').css('opacity',1); 538 $('.book_link').css('z-index',10); */ 539 } 540 }); 541 542 $( ".enquiry_popup" ).click(function(event) { 543 event.preventDefault(); 544 $.magnificPopup.open({ 545 items: { 546 src: '#enquiry-popup', // can be a HTML string, jQuery object, or CSS selector 547 type:'inline', 548 }, 549 mainClass: 'mfp-fade', 550 showCloseBtn: false, 551 midClick: true, 552 closeOnBgClick: false, 553 554 }); 555 }); 556
557 $('.popup_youtube').magnificPopup({ 558 disableOn: 700, 559 type: 'iframe', 560 mainClass: 'mfp-faded', 561 removalDelay: 160, 562 preloader: false, 563 564 fixedContentPos: false 565 }); 566 567 function findproperty(){ 568 var theID = $('.theID').text(); 569 570 //console.log(theID); 571 //var thevenue = $('#venue_book').find(":selected").text(); 572 573 $("#venue_book option").filter(function() { 574 return $(this).data('post') == theID; 575 }).prop("selected", true); 576 } 577 findproperty(); 578 579 $( ".popup_close" ).click(function() { 580 $('.masthead_slider').slick('slickNext'); 581 582 setTimeout( 583 function() 584 { 585 $.magnificPopup.close(); 586 }, 400); 587 588 }); 589 590 591 $( "#resDate" ).datepicker({ dateFormat: 'dd M yy', minDate: 0 }); 592 //$("#resDate").datepicker("setDate", new Date()); 593 $( "#resDate2" ).datepicker({ dateFormat: 'dd M yy', minDate: 0 }); 594 595 596 $( ".book_it" ).click(function() { 597 otSubmit(); 598 }); 599 600 $( ".book_it2" ).click(function() { 601 otSubmit2(); 602 }); 603 604 605 606 607 608 function otSubmit() { 609 var venue_book = $('#venue_book').find(":selected").text(); 610 var linkValue = $('#venue_book').find(':selected').data('link'); 611 //console.log(venue_book); 612 var optionValue = $('#venue_book').val(); 613 $('.open_table_id').html(optionValue); 614 $('.venue_name').html(venue_book); 615 616 var open_table_id = $('.open_table_id').text(); 617 //console.log(open_table_id); 618 var date = $('#resDate').datepicker().val(); 619 date = $.datepicker.parseDate("dd M yy", date); 620 date = $.datepicker.formatDate( "yy-mm-dd", date ); 621 var rid = open_table_id; 622 var partySize = document.getElementById('partySize').value; 623 var dateTime = date + 'T' + 624 document.getElementById('resTime').value; 625 var url = '//www.opentable.ie/restaurant/profile/' + rid + 626 '/reserve?covers=' + partySize + '&datetime=' + dateTime + '&restref=' + rid; 627 628 window.open(url); 629 } 630 631 632 633 function otSubmit2() { 634 //var venue_book = $('.single_book_wrap #venue_book').find(":selected").text(); 635 //var linkValue = $('.single_book_wrap #venue_book').find(':selected').data('link'); 636 //console.log(venue_book); 637 //var optionValue = $('.single_book_wrap #venue_book').val(); 638 //$('.open_table_id').html(optionValue); 639 //$('.venue_name').html(venue_book); 640 641 var open_table_id = $('.open_table_id_single').text(); 642 //console.log(open_table_id); 643 var date = $('#resDate2').datepicker().val(); 644 date = $.datepicker.parseDate("dd M yy", date); 645 date = $.datepicker.formatDate( "yy-mm-dd", date ); 646 var rid = open_table_id; 647 var partySize = document.getElementById('partySize2').value; 648 var dateTime = date + 'T' + 649 document.getElementById('resTime2').value; 650 var url = '//www.opentable.ie/restaurant/profile/' + rid + 651 '/reserve?covers=' + partySize + '&datetime=' + dateTime + '&restref=' + rid; 652 653 window.open(url); 654 } 655 656 AOS.init({ 657 easing: 'ease-in-out-cubic', 658 startEvent: 'myEvent' 659 }); 660 661 662 setTimeout( 663 function() 664 { 665 document.dispatchEvent(new Event('myEvent')); 666 }, 1000); 667 668 /* 669 $('#tool-category-select').submit(function(){ 670 event.preventDefault(); 671 var filter = $('#tool-category-select'); 672 var selected = $(filter).find(":selected").val(); 673 //$(this).find('.the_submit').text('loading...'); 674 //var thelink = home_url + '/vacancies/'; 675 var contents = home_url + '/vacancy_sector/' + selected + '/#vacancy-listing > *'; 676 //http://localhost:8888/pressupnew/vacancy_sector/back-of-house/ 677 console.log(contents); 678 679 $("#vacancy-listing").load(contents, function(e){ 680 //$(this).find('.the_submit').text('View'); 681 //console.log(contents); 682 }); 683 684 $.get('http://localhost:8888/pressupnew/vacancy_sector/back-of-house/#vacancy-listing', function(data) { 685 $("#vacancy-listing").replaceWith(data); 686 }); 687 //return false; 688 }); */ 689 690 $('.vacancy_filter').niceSelect(); 691 692 $('#filter').submit(function(){ 693 var filter = $('#filter'); 694 $.ajax({ 695 url:filter.attr('action'), 696 data:filter.serialize(), // form data 697 type:filter.attr('method'), // POST 698 beforeSend:function(xhr){ 699 filter.find('button').text('Loading....'); // changing the button label 700 $('#response').css('opacity','0.3'); 701 }, 702 success:function(data){ 703 filter.find('button').text('Apply filter'); // changing the button label back 704 $('#response').html(data); // insert data 705 $('#response').css('opacity','1'); 706 } 707 }); 708 return false;
709 }); 710 711 712 $('.contact_form .contact_select select').on('change', function() { 713 //alert( this.value ); 714 $('.email_send_field input').val(this.value ); 715 }); 716 717 var instagram_userid = $('.instagram_userid').text(); 718 var instagram_useridn = parseInt(instagram_userid); 719 var instagram_accesstoken = $('.instagram_accesstoken').text(); 720 721 if($('#instafeed').length){ 722 var feed = new Instafeed({ 723 get: 'user', 724 userId: instagram_useridn, 725 accessToken: instagram_accesstoken, 726 limit: 3, 727 template: '<div class="col-sm-4 col-md-4 col-xs-12 insta_col"><div class="not-fullscreen insta_box background" style="background-image:url(\'{{image}}\');" data-img-width="{{width}}" data-img-height="{{height}}"><div class="instawrap"><div class="content"><div class="insttext">{{caption}}</div><a class="more" target="_blank" href="{{link}}">view more</a></div></div></div></div>', 728 //template: '<div class="col-xs-6 col-sm-3"><a href="{{link}}" target="_blank"><img class="image_full" src="{{image}}" /></a></div>', 729 resolution: 'standard_resolution', 730 after: function() { 731 732 //addinstafirst(); 733 backgroundResize(); 734 $(".instawrap .insttext").each(function(i){ 735 var words = $(this).text().split(' ', 35).join(' '); 736 //console.log(words); 737 $(this).text(words+' ...'); 738 }); 739 } 740 }); 741 feed.run(); 742 } 743 744 745 var contentSections = $('.cd-section'), 746 navigationItems = $('.franchise_nav_wrap ul li a'), 747 navigationItems2 = $('.franchise_nav_wrap2 ul li a'); 748 749 750 function smoothScroll(target) { 751 $('body,html').animate( 752 {'scrollTop':target.offset().top-150}, 753 600 754 ); 755 } 756 757 updateNavigation(); 758 $(window).on('scroll', function(){ 759 updateNavigation(); 760 }); 761 762 //smooth scroll to the section 763 navigationItems.on('click', function(event){ 764 event.preventDefault(); 765 smoothScroll($(this.hash)); 766 767 }); 768 769 770 771 function updateNavigation() { 772 contentSections.each(function(){ 773 $this = $(this); 774 var activeSection = $('.franchise_nav_wrap ul li a[href="#'+$this.attr('id')+'"]').data('number') - 1; 775 if ( ( $this.offset().top - $(window).height()/2 < $(window).scrollTop() ) && ( $this.offset().top + $this.height() - $(window).height()/2 > $(window).scrollTop() ) ) { 776 navigationItems.eq(activeSection).parent().addClass('active'); 777 }else { 778 navigationItems.eq(activeSection).parent().removeClass('active'); 779 } 780 }); 781 } 782 783 updateNavigation2(); 784 $(window).on('scroll', function(){ 785 updateNavigation2(); 786 }); 787 788 //smooth scroll to the section 789 navigationItems2.on('click', function(event){ 790 event.preventDefault(); 791 smoothScroll($(this.hash)); 792 793 }); 794 795 796 797 function updateNavigation2() { 798 contentSections.each(function(){ 799 $this = $(this); 800 var activeSection = $('.franchise_nav_wrap2 ul li a[href="#'+$this.attr('id')+'"]').data('number') - 1; 801 if ( ( $this.offset().top - $(window).height()/2 < $(window).scrollTop() ) && ( $this.offset().top + $this.height() - $(window).height()/2 > $(window).scrollTop() ) ) { 802 navigationItems2.eq(activeSection).parent().addClass('active'); 803 }else { 804 navigationItems2.eq(activeSection).parent().removeClass('active'); 805 } 806 }); 807 } 808 809 $('#online_book').on('change', function() { 810 var collection_link, 811 delivery_flipdish, 812 delivery_justeat, 813 delivery_deliveroo, 814 delivery_uber, 815 collection_link, 816 delivery_flipdish, 817 delivery_justeat, 818 delivery_deliveroo, 819 delivery_uber; 820 821 var collection_link = $(this).find(':selected').data('collection'); 822 var delivery_flipdish = $(this).find(':selected').data('flipdish'); 823 var delivery_justeat = $(this).find(':selected').data('justeat'); 824 var delivery_deliveroo = $(this).find(':selected').data('deliveroo'); 825 var delivery_uber = $(this).find(':selected').data('uber'); 826 827 828 829 $('.collection_link a').attr('href',collection_link); 830 $('.delivery_flipdish a').attr('href',delivery_flipdish); 831 $('.delivery_justeat a').attr('href',delivery_justeat); 832 $('.delivery_deliveroo a').attr('href',delivery_deliveroo); 833 $('.delivery_uber a').attr('href',delivery_uber); 834 835 $('.order_details').css('opacity',1); 836 837 if(collection_link === ''){ 838 $('.collection_link').css('display','none'); 839 } else { 840 $('.collection_link').css('display','block'); 841 842 } 843 if(delivery_flipdish === ''){ 844 $('.delivery_flipdish').css('display','none'); 845 $('.or').css('display','none'); 846 $('.please').css('display','inline'); 847 } else { 848 $('.delivery_flipdish').css('display','block'); 849 $('.or').css('display','inline'); 850 $('.please').css('display','none'); 851 852 } 853 if(delivery_justeat === ''){ 854 $('.delivery_justeat').css('display','none'); 855 } else { 856 $('.delivery_justeat').css('display','block'); 857 858 } 859 if(delivery_deliveroo === ''){ 860 $('.delivery_deliveroo').css('display','none'); 861 } else { 862 $('.delivery_deliveroo').css('display','block'); 863 864 } 865 866 if(delivery_uber === ''){ 867 $('.delivery_uber').css('display','none'); 868 } else { 869 $('.delivery_uber').css('display','block'); 870 871 } 872 }); 873 874 }); 875});
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.