1/*---------------------------------------------------------------------*/ 2 3var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 4 5;(function($){ 6 7/*---------------------------------------------------------------------*/ 8 9$(document).ready( function(){ 10 11/*---------------------------------------------------------------------*/ 12 13 14 15cloneDiv(); 16 17 $('.popup-gallery').magnificPopup({ 18 19 delegate: 'a', 20 21 type: 'image', 22 23 tLoading: 'Loading image #%curr%...', 24 25 mainClass: 'mfp-img-mobile', 26 27 gallery: { 28 29 enabled: true, 30 31 navigateByImgClick: true, 32 33 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 34 35 }, 36 37 image: { 38 39 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 40 41 titleSrc: function(item) { 42 43 return item.el.attr('title');// + '<small>by Marsel Van Oosten</small>' 44 45 } 46 47 } 48 49 }); 50 51 52 53if($('a[data-toggle="tab"]').length){ 54 55 if(window.location.hash) { 56 57 var hash = window.location.href; 58 59 var res = '#' + hash.split('#')[1]; 60 61 if($(res).length){ 62 63 setTimeout(function(){ 64 65 $("a[data-toggle='tab']").each(function(){ 66 67 if($(this).attr("href")=== res){ 68 69 $(this).trigger('click'); 70 71 } 72 73 }); 74 75 },800); 76 77 } 78 79 } 80 81 } 82 83if($(".chatItemPhotosSlider").length){ 84 85 $(".chatItemPhotosSlider").owlCarousel({ 86 87 loop:true 88 89 ,autoplay:false 90 91 ,autoplayTimeout:3000 92 93 ,smartSpeed:1200 94 95 ,margin:0 96 97 ,nav:false 98 99 ,dots:true 100 101 ,items:1 102 103 104 105 }); 106 107} 108 109 //Banner Slider 110 111if($(".toggleLink").length){ 112 113 $(".toggleLink").click(function(event){ 114 115 event.preventDefault() 116 117 if($(this).hasClass("active")){ 118 119 $(this).next(".slideDownDiv").slideUp(); 120 121 $(this).removeClass("active"); 122 123 }else{ 124 125 $(".toggleLink").removeClass("active"); 126 127 $(".slideDownDiv").slideUp(); 128 129 $(this).addClass("active"); 130 131 $(this).next(".slideDownDiv").slideDown(); 132 133 } 134 135 }); 136 137 } 138 139 140 $('.dropdown > .caption').on('click', function() { 141 $(this).parent().toggleClass('open'); 142 }); 143 144 // $('.price').attr('data-currency', 'RUB'); 145 146 $('.dropdown > .list > .item').on('click', function() { 147 $('.dropdown > .list > .item').removeClass('selected'); 148 $(this).addClass('selected').parent().parent().removeClass('open').children('.caption').html($(this).html()); 149 150 if ($(this).data("item") == "RUB") { 151 console.log('RUB'); 152 } else if ($(this).data("item") == "UAH") { 153 console.log('UAH'); 154 } else { 155 console.log('USD'); 156 } 157// if ($(this).data("item") == "RUB") { 158// $('.price').attr('data-currency', 'RUB'); 159// $('.currency').text('ÑÑб.'); 160 161// } else if ($(this).data("item") == "UAH") { 162// $('.price').attr('data-currency', 'UAH'); 163// $('.currency').text('гÑн.'); 164 165// } else { 166// $('.price').attr('data-currency', 'USD'); 167// $('.currency').text('долл.'); 168// } 169 170 171 172 }); 173 174 $(document).on('keyup', function(evt) { 175 if ((evt.keyCode || evt.which) === 27) { 176 $('.dropdown').removeClass('open'); 177 } 178 }); 179 180 $(document).on('click', function(evt) { 181 if ($(evt.target).closest(".dropdown > .caption").length === 0) { 182 $('.dropdown').removeClass('open'); 183 } 184 }); 185 186 187 188 189 190if($(".likeIcon").length){ 191 192 $(".likeIcon").on("click",function(event){ 193 194 event.preventDefault() 195 196 $(this).addClass("active"); 197 198 $(this).next().slideDown(); 199 200 }); 201 202} 203 204/*if($(".toggleBtnClick").length){ 205 206 $(".toggleBtnClick").on("click",function(event){ 207 208 event.preventDefault(); 209 210 if($(this).next().length){ 211 212 $(this).next().slideToggle(); 213 214 }else{ 215 216 $(this).parent().next().slideToggle(); 217 218 } 219 220 }); 221 222 }*/ 223 224if($(".takePicBtn").length){ 225 226 $(".takePicBtn").on("click",function(){ 227 228 $(this).addClass("active"); 229 230 $(this).find(".uploadBtnText").text("Upload"); 231 232 }); 233 234} 235 236if($('.accordianTrigger').length){ 237 238$('.accordianTrigger').click(function(){ 239 240 $(this).next().slideToggle(); 241 242 $(this).toggleClass("inactive"); 243 244 }); 245 246} 247 248if($(".AaTxt").length){ 249 250 $(".AaTxt").click(function(){ 251 252 if($(this).hasClass("active")){ 253 254 $(this).removeClass("active"); 255 256 $(this).parent().find(".showHideDiv").fadeOut(); 257 258 }else{ 259 260 $(this).addClass("active"); 261 262 $(this).parent().find(".showHideDiv").fadeIn(); 263 264 } 265 266 }); 267 268} 269 270 271 272//Banner Slider 273 274 if($('.bannerSlider .item').length > 1){ 275 276 $(".bannerSlider").owlCarousel({ 277 278 autoplay:true, 279 280 autoplayTimeout:5000, 281 282 loop:true, 283 284 nav:true, 285 286 dot:false, 287 288 margin:0, 289 290 items:1 291 292 }); 293 294 } 295 296 297 if($('.bannerSlidertwo .item').length > 1){ 298 299 $(".bannerSlidertwo").owlCarousel({ 300 301 autoplay:true, 302 303 autoplayTimeout:5000, 304 305 loop:true, 306 307 nav:true, 308 309 dot:false, 310 311 margin:0, 312 313 items:1 314 315 }); 316 317 } 318 319
320 321 322 323 if($('.InnerBannerSlider').length){ 324 325 $('.InnerBannerSlider').owlCarousel({ 326 327 //animateOut: 'fadeOut', 328 329 autoplay:7000, 330 331 loop:true, 332 333 dots:false, 334 335 stagePadding:0, 336 337 merge:true, 338 339 nav:false, 340 341 margin:0, 342 343 items:1 344 345 346 347}) 348 349 } 350 351 352 353 354 355 if($('.covidSlider .item').length > 1){ 356 357 $(".covidSlider").owlCarousel({ 358 359 autoplay:true, 360 361 autoplayTimeout:20000, 362 363 364 365 loop:true, 366 367 nav:true, 368 369 dot:false, 370 371 margin:0, 372 373 items:1 374 375 }); 376 377 } 378 379 380 381 if($('.RealReviewsSlider .item').length){ 382 383 $('.RealReviewsSlider').owlCarousel({ 384 385 //animateOut: 'fadeOut', 386 387 autoplay:true, 388 389 autoplayTimeout:4000, 390 391 loop:true, 392 393 dots:false, 394 395 nav:true, 396 397 margin:30, 398 399 items:3, 400 401 responsive : { 402 403 // breakpoint from 0 up 404 405 0 : { 406 407 items:1 408 409 }, 410 411 412 413 768 : { 414 415 items:2 416 417 }, 418 419 900 : { 420 421 items:2 422 423 }, 424 425 1023 : { 426 427 items:3 428 429 } 430 431} 432 433 }); 434 435} 436 437 438 439if($('.ReviewsSlider .item').length){ 440 reviewsSlider(); 441} 442 443 444 445if($(".tableShowhideBtn").length){ 446 447 $(".tableShowhideBtn").on("click", function(event){ 448 449 event.preventDefault(); 450 451 $(this).toggleClass("active"); 452 453 $(".showHideCont").slideToggle("slow"); 454 455 }); 456 457 } 458 459 460 461if($('.testimaonialSlidersingle .item').length){ 462 463 $(".testimaonialSlidersingle").owlCarousel({ 464 465 autoplay:5000, 466 467 loop:true, 468 469 margin:0, 470 471 dots:false, 472 473 nav:false, 474 475 items:1 476 477 }); 478 479} 480 481 482 483 484 485 if($('#Testslider .item').length > 1){ 486 487 $("#Testslider").owlCarousel({ 488 489 animateOut: '', 490 491 autoplay:true, 492 493 autoplayTimeout:5000, 494 495 loop:true, 496 497 nav:true, 498 499 dots:true, 500 501 margin:0, 502 503 items:1 504 505 }) 506 507 508 509 } 510 511 512 if($('.GMSadsslider .item').length){ 513 $('.GMSadsslider').owlCarousel({ 514 //animateOut: 'fadeOut', 515 autoplay:true, 516 autoplayTimeout:5000, 517 loop:true, 518 margin:10, 519 520 dots:false, 521 nav:true, 522 lazyLoad:true, 523 thumbs: false, 524 thumbImage: false, 525 items:1, 526 responsive : { 527 // breakpoint from 0 up 528 0 : { 529 items:1, 530 531 }, 532 533 450 : { 534 items:1 535 }, 536 768 : { 537 items:1 538 } 539} 540}) 541 542 543 } 544 545 546 547 548 if($('.laptopSlider').length){ 549 550 $(".laptopSlider").owlCarousel({ 551 552 items:1, 553 554 loop:true, 555 556 margin:0, 557 558 autoplay:true, 559 560 autoplayTimeout:4000, 561 562 autoplayHoverPause:true, 563 564 lazyLoad:true 565 566 }); 567 568 } 569 570 571 572 if($('.singleImgSlider').length){ 573 574 $('.singleImgSlider').owlCarousel({ 575 576 //animateOut: 'fadeOut', 577 578 autoplay:7000, 579 580 loop:true, 581 582 dots:false, 583 584 stagePadding:0, 585 586 merge:true, 587 588 nav:false, 589 590//autoHeight:true, 591 592 margin:0, 593 594 items:1 595 596 597 598}) 599 600 } 601 602 603 604 if($('.testimonailSlider').length){ 605 606 $('.testimonailSlider').owlCarousel({ 607 608 //animateOut: 'fadeOut', 609 610 autoplay:7000, 611 612 loop:true, 613 614 dots:true, 615 616 stagePadding:0, 617 618 merge:true, 619 620 nav:false, 621 622 margin:0, 623 624 items:1 625 626 627 628}) 629 630 } 631 632 if($('.bannerSliderMob').length){ 633 634 $('.bannerSliderMob').owlCarousel({ 635 636 //animateOut: 'fadeOut', 637 638 autoplay:7000, 639 640 loop:true, 641 642 dots:true, 643 644 stagePadding:0, 645 646 merge:true, 647 648 nav:false, 649 650 margin:0, 651 652 items:1 653 654 655 656}) 657 658$(".bannerSliderMob .item img").each(function () { 659 660 661 662 var imgSrc = $(this).attr('src'); 663 664 $(this).parents('.item').css('background-image', 'url(' + imgSrc + ')'); 665 666 667 668 }) 669 670 } 671 672 /*---------------------------------------------------------------------*/ 673 674 675 676 if($(".readMoreExpand").length){ 677 678 $(".readMoreExpand").click(function(event){ 679 680 event.preventDefault(); 681 682 if($(this).hasClass("active")){ 683 684 $(this).removeClass("active").text("Read More"); 685 686 $(this).prev(".expandDiv").removeClass("active"); 687 688 } 689 690 else{ 691 692 $(this).addClass("active").text("Read Less"); 693 694 $(this).prev(".expandDiv").addClass("active"); 695 696 } 697 698 699 700 }); 701 702 } 703 704 705 706 707 708 709 710 711 712 if($(".readMoreExpandDiv").length){ 713 714 $(".readMoreExpandDiv").click(function(event){ 715 716 event.preventDefault(); 717 718 if($(this).hasClass("active")){ 719 720 $(this).removeClass("active").text("Read More"); 721 722 $(this).parent().prev(".hideContentDiv").slideUp(); 723 724 } 725 726 else{ 727 728 $(this).addClass("active").text("View Less"); 729 730 $(this).parent().prev(".hideContentDiv").slideDown(); 731 732 } 733 734 735 736 }); 737 738 } 739 740
741 742 if($(".viewAllExpand").length){ 743 744 $(".viewAllExpand").click(function(event){ 745 746 event.preventDefault(); 747 748 if($(this).hasClass("active")){ 749 750 $(this).removeClass("active").text("View All"); 751 752 $(this).parent().prev(".hideContentDiv").slideUp(); 753 754 } 755 756 else{ 757 758 $(this).addClass("active").text("View Less"); 759 760 $(this).parent().prev(".hideContentDiv").slideDown(); 761 762 } 763 764 765 766 }); 767 768 } 769 770 771 772 if($(".viewAllExpand1").length){ 773 774 $(".viewAllExpand1").click(function(event){ 775 776 event.preventDefault(); 777 778 if($(this).hasClass("active")){ 779 780 $(this).removeClass("active").text("View More"); 781 782 $(this).parent().prev(".hideContentDiv").hide(); 783 784 } 785 786 else{ 787 788 $(this).addClass("active").text("View Less"); 789 790 $(this).parent().prev(".hideContentDiv").show(); 791 792 } 793 794 }); 795 796 } 797 798 799 800 if($(".viewAllExpandVehicle").length){ 801 802 $(".viewAllExpandVehicle").click(function(event){ 803 804 event.preventDefault(); 805 806 if($(this).hasClass("active")){ 807 808 $(this).removeClass("active").text("More Vehicles"); 809 810 $(this).parent().prev(".divHideRow").slideUp(); 811 812 } 813 814 else{ 815 816 $(this).addClass("active").text("Less Vehicles"); 817 818 $(this).parent().prev(".divHideRow").slideDown(); 819 820 } 821 822 823 824 }); 825 826 } 827 828 if($(".CheckMoreDealsExpand").length){ 829 830 $(".CheckMoreDealsExpand").click(function(event){ 831 832 event.preventDefault(); 833 834 if($(this).hasClass("active")){ 835 836 $(this).removeClass("active").text("Check more deals"); 837 838 $(this).parent().prev(".hideContentDiv").slideUp(); 839 840 } 841 842 else{ 843 844 $(this).addClass("active").text("Check more deals"); 845 846 $(this).parent().prev(".hideContentDiv").slideDown(); 847 848 } 849 850 851 852 }); 853 854 } 855 856 857 858 859 860 if($(".doubleArrowIcon").length){ 861 862 $(".doubleArrowIcon").click(function(event){ 863 864 event.preventDefault(); 865 866 if($(this).hasClass("active")){ 867 868 $(this).removeClass("active"); 869 870 $(this).parents("form").next(".hideContentDiv").removeClass("active"); 871 872 } 873 874 else{ 875 876 $(this).addClass("active"); 877 878 $(this).parents("form").next(".hideContentDiv").addClass("active"); 879 880 } 881 882 }); 883 884 } 885 886 887 888 889 890if($('.mainCategory').length){ 891 892 $(".mainCategory a").click(function(event){ 893 894 event.preventDefault(); 895 896 $(".mainCategory a").removeClass("active"); 897 898 $(".lastCategoryDiv").fadeOut(); 899 900 $(".ChristianToursCategoryDiv").fadeOut(); 901 902 }); 903 904 } 905 906 if($('.mainCategory').length){ 907 908 $(".mainCategory .filterLink").click(function(event){ 909 910 event.preventDefault(); 911 912 var hash = $(this).attr("href"); 913 914 var titleText = $(this).attr("title"); 915 916 var res = hash.split('#')[1]; 917 918 $(".mainCategory .filterLink").removeClass("active"); 919 920 $(this).addClass("active"); 921 922 $(".mainTitle span").text(titleText); 923 924 $(".subCategoryWrap").fadeIn(); 925 926 $(".subCategoryWrap .showHideFilter").fadeOut(); 927 928 $(".subCategoryWrap").find("."+res).fadeIn(); 929 930 $('html, body').animate({ 931 932 scrollTop: parseInt($(".subCategoryWrap").offset().top - 50) 933 934 }, 1000); 935 936 }); 937 938 } 939 940 /*if($('.subCategoryWrap').length){ 941 942 $(".subCategoryWrap a").click(function(event){ 943 944 event.preventDefault(); 945 946 $(".subCategoryWrap a").removeClass("active"); 947 948 $(".lastCategoryDiv").fadeOut(); 949 950 $(".ChristianToursCategoryDiv").fadeOut(); 951 952 }); 953 954 $(".subCategoryWrap .filterLink").click(function(event){ 955 956 event.preventDefault(); 957 958 var hash = $(this).attr("href"); 959 960 var res = hash.split('#')[1]; 961 962 963 964 $(".subCategoryWrap .filterLink").removeClass("active"); 965 966 $(this).addClass("active"); 967 968 $(".lastCategoryDiv").fadeIn(); 969 970 $(".lastCategoryDiv .showHideFilter").fadeOut(); 971 972 $(".lastCategoryDiv").find("."+res).fadeIn(); 973 974 $('html, body').animate({ 975 976 scrollTop: parseInt($(".lastCategoryDiv").offset().top - 50) 977 978 }, 1000); 979 980 }); 981 982 983 984 }*/ 985 986 987 988 if($('.lastCategoryDiv').length){ 989 990 $(".lastCategoryDiv a").click(function(event){ 991 992 event.preventDefault(); 993 994 $(".lastCategoryDiv a").removeClass("active"); 995 996 $(".ChristianToursCategoryDiv").fadeOut(); 997 998 }); 999 1000 $(".lastCategoryDiv .filterLink").click(function(event){ 1001 1002 event.preventDefault(); 1003 1004 var hash = $(this).attr("href"); 1005 1006 var res = hash.split('#')[1]; 1007 1008 $(".lastCategoryDiv .filterLink").removeClass("active"); 1009 1010 $(this).addClass("active"); 1011 1012 $(".ChristianToursCategoryDiv").fadeIn(); 1013
1014 $(".ChristianToursCategoryDiv .showHideFilter").fadeOut(); 1015 1016 $(".ChristianToursCategoryDiv").find("."+res).fadeIn(); 1017 1018 $('html, body').animate({ 1019 1020 scrollTop: parseInt($(".ChristianToursCategoryDiv").offset().top - 50) 1021 1022 }, 1000); 1023 1024 }); 1025 1026 1027 1028 } 1029 1030 function smoothScrollingTo(target){ 1031 1032 var position = $(target).offset().top; 1033 1034 if($(target).closest('.bannerTabs').length){ 1035 1036 position = $(target).offset().top - 50; 1037 1038 } 1039 1040 $("html,body").animate({scrollTop: position},1200); 1041 1042 } 1043 1044 if($(".hashLink").length){ 1045 1046 $(".hashLink[href*=\\#]").on("click", function(e){ 1047 1048 //e.preventDefault(); 1049 1050 smoothScrollingTo(this.hash); 1051 1052 }); 1053 1054 /*$(document).ready(function(){ 1055 1056 smoothScrollingTo(location.hash); 1057 1058 });*/ 1059 1060 } 1061 1062 if($(".ListIteamBx").length){ 1063 1064 $(".ListIteamBx li").each(function(){ 1065 1066 if($(this).find("ul").length){ 1067 1068 $(this).append('<i class="menuIcon"></i>'); 1069 1070 } 1071 1072 }); 1073 1074 $(".menuIcon").on("click", function(){ 1075 1076 $(this).toggleClass("active"); 1077 1078 $(this).parent().toggleClass("active"); 1079 1080 $(this).prev().slideToggle(); 1081 1082 }) 1083 1084 } 1085 1086 if($(".selectChange").length){ 1087 1088 $(".selectChange").on("change",function(){ 1089 1090 var valueFeild = $(this).val(); 1091 1092 if(valueFeild == "1"){ 1093 1094 $(".privateSection").show(); 1095 1096 $(".hideDIvPrivate").hide(); 1097 1098 } 1099 1100 if(valueFeild == "2"){ 1101 1102 $(".corporateDiv, .hideDIvPrivate").show(); 1103 1104 $(".hideDiv, .privateSection").hide(); 1105 1106 } 1107 1108 if(valueFeild == "3"){ 1109 1110 $(".travelAgent, .hideDIvPrivate").show(); 1111 1112 $(".corporateDiv, .privateSection").hide(); 1113 1114 } 1115 1116 }); 1117 1118 } 1119 1120 $(".navTogglebtn").click(function(){ 1121 1122 $(".ListIteamBx").slideToggle("slow"); 1123 1124 }); 1125 1126 1127 1128 if($(".viewAllExpandCo").length){ 1129 1130 $(".viewAllExpandCo").click(function(event){ 1131 1132 event.preventDefault(); 1133 1134 if($(this).hasClass("active")){ 1135 1136 $(this).removeClass("active").text("View More"); 1137 1138 $(this).parent().prev(".hideContentDiv").hide(); 1139 1140 } 1141 1142 else{ 1143 1144 $(this).addClass("active").text("View Less"); 1145 1146 $(this).parent().prev(".hideContentDiv").show(); 1147 1148 } 1149 1150 }); 1151 1152 } 1153 1154 1155 1156 1157 1158 if($(".selectChange").length){ 1159 1160 $(".selectChange").on("change",function(){ 1161 1162 var valueFeild = $(this).val(); 1163 1164 if(valueFeild == "1"){ 1165 1166 $(".privateSection").show(); 1167 1168 $(".hideDIvPrivate").hide(); 1169 1170 } 1171 1172 if(valueFeild == "2"){ 1173 1174 $(".corporateDiv, .hideDIvPrivate").show(); 1175 1176 $(".hideDiv, .privateSection").hide(); 1177 1178 } 1179 1180 if(valueFeild == "3"){ 1181 1182 $(".travelAgent, .hideDIvPrivate").show(); 1183 1184 $(".corporateDiv, .privateSection").hide(); 1185 1186 } 1187 1188 }); 1189 1190 } 1191 1192 1193 1194 if($("#switcher").length){ 1195 1196$("#is_round_trip, .rt_savings_title").on("click", function(){ 1197 1198 if($(this).is(":checked")){ 1199 1200$(".roundTripOption").show(); 1201 1202$(".roundTripOptionWrap .round-trip-status").text("Yes"); 1203 1204 }else{ 1205 1206 $(".roundTripOption").hide(); 1207 1208$(".roundTripOptionWrap .round-trip-status").text("No"); 1209 1210 } 1211 1212}); 1213 1214} 1215 1216 1217 1218if($(".selectRideMain").length){ 1219 1220 1221 1222 $(".selectRideMain").on("change",function(){ 1223 1224$(".roundTripOptionWrap .round-trip-status").text("No"); 1225 1226 $(".showSelect, .roundTripOptionWrap, .checkListBox, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").hide(); 1227 1228$(".fullWidthDiv").removeClass("col-sm-12"); 1229 1230 $(".topLocation").attr("placeholder","Pickup: Address, City, or Zip"); 1231 1232 $(".dropTime").hide(); 1233 1234 var valueFeild = $(this).val(); 1235 1236 var textVal = $(this).find('option:selected').text(); 1237 1238 setTimeout(function(){ 1239 1240 if(valueFeild == 1000){ 1241 1242 $(".fullWidthDiv").removeClass("col-sm-12"); 1243 1244 $(".showSelect, .roundTripOptionWrap, .checkListBox, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").show(); 1245 1246 $(".dropTime").hide(); 1247 1248 $(".topLocation").attr("placeholder","Pickup: Address, city, or zip-code"); 1249 1250 $(".showSelect").find(".form-control").attr("placeholder","Drop-off: Airport Name, Code or
1250City"); 1251 1252 1253 1254 } 1255 1256 if(valueFeild == 1001){ 1257 1258 $(".fullWidthDiv").removeClass("col-sm-12"); 1259 1260 $(".showSelect, .roundTripOptionWrap, .checkListBox, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").show(); 1261 1262 $(".dropTime").hide(); 1263 1264 $(".topLocation").attr("placeholder","Pickup: Airport Name, Code or City"); 1265 1266 $(".showSelect").find(".form-control").attr("placeholder","Drop-off: Address, city, or zip-code"); 1267 1268 1269 1270 } 1271 1272 if(valueFeild == 1002){ 1273 1274 $(".showSelect, .checkListBox").show(); 1275 1276 $(".roundTripOptionWrap, .dropTime, .mob-location .departingTitleMob, .mob-location .returnTripDiv").hide(); 1277 1278 $(".fullWidthDiv").removeClass("col-sm-12"); 1279 1280 $(".topLocation").attr("placeholder","Pickup: Address, City, or Zip"); 1281 1282 $(".showSelect").find(".form-control").attr("placeholder","Drop-off: Address, City, or Zip"); 1283 1284 1285 1286 } 1287 1288 if(valueFeild == 1003){ 1289 1290 $(".showSelect").show(); 1291 1292 $(".dropTime, .checkListBox").show(); 1293 1294 $(".roundTripOptionWrap, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").hide(); 1295 1296 $(".fullWidthDiv").addClass("col-sm-12"); 1297 1298 $(".topLocation").attr("placeholder","Pickup: Address, City, or Zip"); 1299 1300 $(".showSelect").hide(); 1301 1302 1303 1304 } 1305 1306 if(valueFeild == 30){ 1307 1308 $(".showSelect").show(); 1309 1310 $(".roundTripOptionWrap, .dropTime, .checkListBox, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").hide(); 1311 1312 $(".fullWidthDiv").removeClass("col-sm-12"); 1313 1314 $(".topLocation").attr("placeholder","Pickup: Cruiseport Name or City"); 1315 1316 $(".showSelect").find(".form-control").attr("placeholder","Drop-off: Address, City, or Zip"); 1317 1318 1319 1320 } 1321 1322 1323 1324 if(valueFeild == 27 || valueFeild == 25 || valueFeild == 24 || valueFeild == 3 || valueFeild == 12 || valueFeild == 11 || valueFeild == 10 || valueFeild == 7 || valueFeild == 31){ 1325 1326 $(".showSelect, .checkListBox, .mob-location .departingTitleMob, .mob-location .dropAddress, .mob-location .returnTripDiv").hide(); 1327 1328 $(".dropTime").show(); 1329 1330 $(".fullWidthDiv").addClass("col-sm-12"); 1331 1332 } 1333 1334 1335 1336 },100); 1337 1338 }) 1339 1340 } 1341 1342if($(".selectYourVeRideMain").length){ 1343 1344 $(".selectYourVeRideMain").on("change",function(){ 1345 1346 $(".dropOffAddressText, .dropoffAddressFeild").hide(); 1347 1348 var valueFeild = $(this).val(); 1349 1350 var textVal = $(this).find('option:selected').text(); 1351 1352 //$("#searchFiltersWrap .pickDataTime").insertAfter("#searchFiltersWrap .pickAddress"); 1353 1354 $(".dropTime1, .rentalPeriodFeild, .dropTime1, .dropTime2, .rentalPeriod1").show(); 1355 1356 $(".dropOffTimeText, .rentalPeriodText, .dropOffTime, .rentalPeriod").css("display","inline-block"); 1357 1358 $(".dropoffAddressFeild, .dropOffAddressText, .rentalPeriodFeild, .roundTripDiv, .allTripsDiv, .derpartingTrip, .returnTrip, .dipatingTripTitle, .returnTripTitle").hide(); 1359 1360 $(".PickuplistSelection").removeClass("changeWidth"); 1361 1362 setTimeout(function(){ 1363 1364 if(valueFeild == 1000){ 1365 1366 //$("#searchFiltersWrap .pickDataTime").insertBefore("#searchFiltersWrap .pickAddress"); 1367 1368 $(".dropoffAddressFeild, .allTripsDiv, .derpartingTrip, .returnTrip, .dipatingTripTitle, .returnTripTitle").show(); 1369 1370 $(".dropOffAddressText, .rentalPeriodText").css("display","inline-block"); 1371 1372 $(".dropOffTimeText, .rentalPeriodFeild, .rentalPeriodText, .roundTripDiv, .dropOffTime, .rentalPeriod, .dropTime1, .dropTime2, .rentalPeriod1").hide(); 1373 1374 $(".PickuplistSelection").addClass("changeWidth"); 1375 1376 } 1377 1378 if(valueFeild == 1001){ 1379 1380 1381 //$("#searchFiltersWrap .pickDataTime").insertBefore("#searchFiltersWrap .pickAddress"); 1382 1383 $(".dropoffAddressFeild, .allTripsDiv, .derpartingTrip, .returnTrip, .dipatingTripTitle, .returnTripTitle").show(); 1384 1385 $(".dropOffAddressText, .rentalPeriodText").css("display","inline-block"); 1386 1387 $(" .dropOffTimeText, .rentalPeriodFeild, .rentalPeriodText, .roundTrip
1387Div, .dropOffTime, .rentalPeriod, .dropTime1, .dropTime2, .rentalPeriod1").hide(); 1388 1389 $(".PickuplistSelection").addClass("changeWidth"); 1390 1391 } 1392 1393 if(valueFeild == 1002){ 1394 1395 //$("#searchFiltersWrap .pickDataTime").insertBefore("#searchFiltersWrap .pickAddress"); 1396 1397 $(".dropoffAddressFeild, .dropTime1, .dropTime2, .rentalPeriod1").show(); 1398 1399 $(".dropOffAddressText, .dropOffTime, .rentalPeriod").css("display","inline-block"); 1400 1401 $(".dropOffTimeText, .rentalPeriodFeild, .rentalPeriodText, .roundTripDiv, .allTripsDiv, .returnTrip, .dipatingTripTitle, .returnTripTitle").hide(); 1402 1403 $(".PickuplistSelection").addClass("changeWidth"); 1404 1405 } 1406 1407 if(valueFeild == 300){ 1408 1409 $(".roundTripDiv").show(); 1410 1411 } 1412 1413 if(valueFeild == 27 || valueFeild == 25 || valueFeild == 24 || valueFeild == 3 || valueFeild == 12 || valueFeild == 11 || valueFeild == 10 || valueFeild == 7 || valueFeild == 31 || valueFeild == 30 || valueFeild == 1003){ 1414 1415 //$("#searchFiltersWrap .pickDataTime").insertAfter("#searchFiltersWrap .pickAddress"); 1416 1417 $(".dropTime1, .rentalPeriodFeild, .dropTime1, .dropTime2, .rentalPeriod1").show(); 1418 1419 $(".dropoffAddressFeild, .dropOffAddressText, .roundTripDiv, .allTripsDiv, .returnTrip, .dipatingTripTitle, .returnTripTitle").hide(); 1420 1421 $(".dropOffTimeText, .rentalPeriodText, .dropOffTime, .rentalPeriod").css("display","inline-block"); 1422 1423 $(".vehicle-fields").removeClass("changeWidth"); 1424 1425 } 1426 1427 1428 1429 },100); 1430 1431 }) 1432 1433 } 1434 1435 1436 1437 1438 1439 1440 1441if($(".tabBtnsRow a").length){ 1442 1443 $(".tabBtnsRow a").on("click", function(event){ 1444 1445 event.preventDefault(); 1446 1447 var tabId = $(this).attr("href"); 1448 1449 $(".tabBtnsRow a").siblings("a").removeClass("active"); 1450 1451 $(this).addClass("active"); 1452 1453 $(tabId).siblings(".showHideCont").fadeOut(); 1454 1455 $(tabId).fadeIn("fast"); 1456 1457 if($(tabId).children().find(".showHideCont").length){ 1458 1459 1460 1461 } else{ 1462 1463 $(tabId).find(".tabBtnsRow a.commonBtn:first").trigger("click"); 1464 1465 $(tabId).parents(".showHideCont").show(); 1466 1467 } 1468 1469 }); 1470 1471 $(".tabBtnsRow a:first").trigger("click"); 1472 1473 1474 1475} 1476 1477 1478 1479 1480 1481 if($(".contetnTabsBtn").length){ 1482 1483 $(".contetnTabsBtn").on("click", function(event){ 1484 1485 event.preventDefault(); 1486 1487 var tabId = $(this).attr("href"); 1488 1489 $(this).parent().siblings().find(".contetnTabsBtn").removeClass("active"); 1490 1491 $(this).addClass("active"); 1492 1493 $(tabId).siblings(".showHideCont").fadeOut(); 1494 1495 $(tabId).fadeIn("fast"); 1496 1497 }); 1498 1499 $(".contetnTabsBtn.active").each(function(){ 1500 1501 $(this).trigger("click"); 1502 1503 }); 1504 1505} 1506 1507 //$(function() { 1508 1509// $('.reviewSideMenu a.contetnTabsBtn, .commentNav a.contetnTabsBtn, .tabBtnsRow a').bind('click',function(event){ 1510 1511// var $anchor = $(this); 1512 1513// setTimeout(function(){ 1514 1515// $('html, body').stop().animate({ 1516 1517// scrollTop: $($anchor.attr('href')).offset().top 1518 1519// }, 2000,'easeInOutExpo'); 1520 1521// },500); 1522 1523// }); 1524 1525// }); 1526 1527 1528 1529 1530 1531 1532 1533 if($(".Txtchangesearch").length){ 1534 1535 $(".Txtchangesearch a").click(function(){ 1536 1537 $(this).toggleClass("active"); 1538 1539 $("#searchFiltersWrap").slideToggle(); 1540 1541 }); 1542 1543 } 1544 1545 1546 1547 1548 1549 1550if($('.imgSlider .item').length){ 1551 1552 $(".imgSlider").owlCarousel({ 1553 1554 animateOut: '', 1555 1556 autoplay:true, 1557 1558 autoplayTimeout:3000, 1559 1560 loop:true, 1561 1562 nav:true, 1563 1564 mouseDrag:true, 1565 1566 dots:false, 1567 1568 stagePadding:10, 1569 1570 margin:10, 1571 1572 items:1 1573 1574 }); 1575 1576 } 1577 1578 1579 1580if($(".filterBtn").length){ 1581 1582$(".filterBtn").on("click",function(){ 1583 1584$(".mobileFilterWrap").addClass("active"); 1585 1586$("body").addClass("overFlowhidden"); 1587 1588}); 1589 1590} 1591 1592 1593 1594if($(".closeBtn").length){ 1595 1596$(".closeBtn").on("click",function(){ 1597 1598$(".mobileFilterWrap, .infoPopup, .mobileFormWrap").removeClass("active"); 1599 1600$("body").removeClass("overFlowhidden"); 1601 1602}); 1603 1604} 1605 1606if($(".loceditBtn").length){ 1607 1608$(".loceditBtn").on("click",function(){ 1609 1610$(".mobileFormWrap").addClass("active"); 1611 1612$("body").addClass("overFlowhidden"); 1613 1614}); 1615 1616} 1617 1618if($(".txtViewVehicleinfo").length){ 1619 1620$(".txtViewVehicleinfo").on("click",function(event){ 1621 1622 event.preventDefault(); 1623 1624 $(this).parents(".row").find(".slideSection").toggleClass("active"); 1625 1626 if($(this).parents(".row").find(".slideSection").hasClass("active")){ 1627 1628 $(this).parents(".row").find(".txtViewVehicleinfo").text("Close Vehicle Information"); 1629 1630 }else{ 1631 1632 $(this).parents(".row").find(".txtViewVehicleinfo").text("View Vehicle Information"); 1633 1634 } 1635 1636}); 1637 1638} 1639 1640if($(".slideSection .slideImg, .slideSection .slideContent").length){ 1641 1642$(".slideSection .slideContent").on("click",function(event){ 1643 1644 event.preventDefault(); 1645 1646 $(this).parent().toggleClass("active"); 1647 1648 if($(this).parent().hasClass("active")){ 1649 1650 $(this).parents(".row").find(".txtViewVehicleinfo").text("Close Vehicle Information"); 1651 1652 }else{ 1653 1654 $(this).parents(".row").find(".txtViewVehicleinfo").text("View Vehicle Information"); 1655 1656 } 1657 1658}); 1659 1660 } 1661 1662 1663 1664 if($(".VehicleinfoIcon").length){ 1665 1666 $(".VehicleinfoIcon").on("click",function(event){ 1667 1668 event.preventDefault(); 1669 1670$(".infoPopup").addClass("active"); 1671 1672$("body").addClass("overFlowhidden"); 1673 1674}); 1675 1676 } 1677 1678
1679 1680if($(".infoIcondes").length){ 1681 1682 $(".infoIcondes").on("click",function(e){ 1683 1684 e.preventDefault(); 1685 1686 $(this).parents(".btncaption").find(".infoSmallPopupWrap").slideToggle(); 1687 1688 }); 1689 1690 $(".smallCloseBtn").on("click",function(e){ 1691 1692 e.preventDefault(); 1693 1694 $(this).parent().slideToggle(); 1695 1696 }); 1697 1698 } 1699 1700 1701 1702 if($(".smallCloseBtn").length){ 1703 1704 $(".smallCloseBtn").on("click",function(e){ 1705 1706 e.preventDefault(); 1707 1708 $(".covidfixtbtn").hide(); 1709 1710 }); 1711 1712 } 1713 1714 1715 1716 if($(".backBtnclose").length){ 1717 1718 $(".backBtnclose").on("click",function(e){ 1719 1720 e.preventDefault(); 1721 1722 $(".mobileFormWrap").hide(); 1723 1724 }); 1725 1726 } 1727 1728 1729 1730if($(".infoIcondes").length){ 1731 1732 $(".infoIcondes").on("click",function(e){ 1733 1734 e.preventDefault(); 1735 1736 $(this).parents("li").find(".infoSmallPopupWrap").slideToggle(); 1737 1738 }); 1739 1740 } 1741 1742 1743 1744 if($(".securewebsitetx").length){ 1745 1746 $(".securewebsitetx").on("click",function(e){ 1747 1748 e.preventDefault(); 1749 1750 $(this).parents("li").find(".infoSmallPopupsw").slideToggle(); 1751 1752 }); 1753 1754 } 1755 1756 1757 1758if($(".infoIcondes").length){ 1759 1760 $(".infoIcondes").on("click",function(e){ 1761 1762 e.preventDefault(); 1763 1764 $(this).parents(".pickupsec, .drop-offsec").find(".infoSmallPopupWrap").slideToggle("fast", function() { 1765 1766 // Animation complete. 1767 1768 }); 1769 1770 }); 1771 1772 } 1773 1774 1775 1776 if($(".infoIcondes").length){ 1777 1778 $(".infoIcondes").on("click",function(e){ 1779 1780 e.preventDefault(); 1781 1782 $(this).parents(".fieldzipcodepadd").find(".infoSmallPopupWrap").slideToggle(); 1783 1784 }); 1785 1786 } 1787 1788 1789 1790 if($(".infoIcondes").length){ 1791 1792 $(".infoIcondes").on("click",function(e){ 1793 1794 e.preventDefault(); 1795 1796 $(this).parents(".infopopupwrapbx").find(".infoSmallPopupWrap").slideToggle(); 1797 1798 }); 1799 1800 } 1801 1802 1803 1804 if($(".infoIcondespop").length){ 1805 1806 $(".infoIcondespop").on("click",function(e){ 1807 1808 e.preventDefault(); 1809 1810 $(this).parents(".infopopupwrapbx").find(".infoSmallPopupWrap").slideToggle(); 1811 1812 }); 1813 1814 } 1815 1816 1817 1818 1819 1820if($(".txtViewVideo").length){ 1821 1822 $(".txtViewVideo").on("click",function(e){ 1823 1824 e.preventDefault(); 1825 1826 var videourl = $(this).attr("href"); 1827 1828$(".videopopupModal").find("iframe").attr("src",videourl); 1829 1830 }); 1831 1832 } 1833 1834 1835 1836 if($(".close").length){ 1837 1838 $(".close").on("click",function(e){ 1839 1840 e.preventDefault(); 1841 1842$(".videopopupModal").find("iframe").attr("src",""); 1843 1844 }); 1845 1846 } 1847 1848 1849 1850 1851 1852 if($(".divDealOfTheDayTRow").length){ 1853 1854$(window).scroll(function(){ 1855 1856 if ($(this).scrollTop() > 135) { 1857 1858 $('.divDealOfTheDayTRow').addClass('fixed'); 1859 1860 } else { 1861 1862 $('.divDealOfTheDayTRow').removeClass('fixed'); 1863 1864 } 1865 1866 }); 1867 1868} 1869 1870 1871 1872$(".bookbuttonscroll").click(function() { 1873 1874 1875 1876 $('html, body').animate({ 1877 1878 1879 1880 scrollTop: $("#ContactInfoId").offset().top 1881 1882 1883 1884 }, 2000); 1885 1886 1887 1888 1889 1890 1891 1892 }); 1893 1894 1895 1896 $(".bookbuttonscrollB").click(function() { 1897 1898 1899 1900 $('html, body').animate({ 1901 1902 1903 1904 scrollBottom: $("#ContactInfoId").offset().bottom 1905 1906 1907 1908 }, 500); 1909 1910 1911 1912 1913 1914 1915 1916 }); 1917 1918 1919 1920 1921 1922 if($(".divButtonTRow").length){ 1923 1924$(window).scroll(function(){ 1925 1926 if ($(this).scrollTop() > 135) { 1927 1928 $('.divButtonTRow').addClass('fixed'); 1929 1930 } else { 1931 1932 $('.divButtonTRow').removeClass('fixed'); 1933 1934 } 1935 1936 }); 1937 1938} 1939 1940 1941 1942if($(".datepicker").length){ 1943 1944 $( ".datepicker" ).datepicker({ 1945 1946 minDate: 0, 1947 onSelect: function(date) { 1948 //alert(date); 1949 $('.datepicker').css("border", "2px solid #009933"); 1950 } 1951 }); 1952 1953 } 1954 1955 1956 1957 1958 1959 if($(".dateTimePicker").length){ 1960 1961 $('.dateTimePicker').datetimepicker({ 1962 1963 format: 'LT' 1964 1965 }); 1966 1967 } 1968 1969if($(".timeList").length){ 1970 1971 $(".timeList input").on("click", function(){ 1972 1973 if($(this).hasClass("active")){ 1974 1975 $(this).removeClass("active"); 1976 1977 $(this).next().slideUp(); 1978 1979 }else{ 1980 1981 $(this).addClass("active"); 1982 1983 $(this).next().slideDown(); 1984 1985 } 1986 1987 }); 1988 1989 } 1990 1991 if($(".showFormLink").length){ 1992 1993 1994 1995 $(".showFormLink").on("click", function(e){
1996 1997 e.preventDefault(); 1998 1999 var targetLink = $(this).attr("href"); 2000 2001 $(".showHideForm").removeClass("active"); 2002 2003 $(targetLink).addClass("active"); 2004 2005 }); 2006 2007 } 2008 2009 2010 2011if($(".ddlList").length){ 2012 2013$(".ddlList li").on("click",function(){ 2014 2015 var inputText = $(this).text(); 2016 2017 $(this).parents(".timeList").find("input").val(inputText); 2018 2019 $(this).siblings().removeClass("selected"); 2020 2021 $(this).addClass("selected"); 2022 2023 $(this).parent().slideUp(); 2024 2025 $(".timeList input").removeClass("active"); 2026 2027 }); 2028 2029} 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043$(document).bind('mousedown touchstart', function(e) { 2044 2045 //if (ww < 767) { 2046 2047 if ($(e.target).closest('.ddlList').length === 0) { 2048 2049 $(".timeList input").removeClass("active"); 2050 2051 $(".ddlList").slideUp(); 2052 2053 } 2054 2055 //} 2056 2057 }); 2058 2059}); 2060 2061 2062 2063 2064 2065$(window).resize(function() { 2066 2067 checkWindow(); 2068 2069 mobileAppend(); 2070 2071if($(".mobileFilterWrap").length){ 2072 2073filterCheckBox(); 2074 2075} 2076 2077}); 2078 2079})(jQuery); 2080 2081function reviewsSlider(){ 2082 $('.ReviewsSlider').owlCarousel({ 2083 //animateOut: 'fadeOut', 2084 2085 autoplay: true, 2086 autoplayTimeout: 4000, 2087 loop: true, 2088 dots: false, 2089 nav: true, 2090 margin: 30, 2091 items: 3, 2092 responsive: { 2093 // breakpoint from 0 up 2094 2095 0: { 2096 items: 1 2097 2098 }, 2099 768: { 2100 items: 2 2101 2102 }, 2103 900: { 2104 items: 2 2105 2106 }, 2107 1023: { 2108 items: 3 2109 2110 } 2111 2112 } 2113 2114 }); 2115} 2116 2117function mobileAppend(){ 2118 2119 if($(window).width() > 767){ 2120 2121 $(".mobileShow").appendTo(".headerLeftLinks").removeClass("mobileShow"); 2122 2123 $(".mobileShowRight.text-center").appendTo(".headerRightLinks").removeClass("mobileShowRight text-center"); 2124 2125 $(".mobileShowRight").appendTo(".headerRightLinks").removeClass("mobileShowRight"); 2126 2127 } 2128 2129 else { 2130 2131 $(".headerLeftLinks li").appendTo(".logoAndNavBar .navbar-nav").addClass("mobileShow"); 2132 2133 $(".headerRightLinks li:nth-child(2), .headerRightLinks li:nth-child(3)").appendTo(".logoAndNavBar .navbar-nav").addClass("mobileShowRight"); 2134 2135 $(".headerRightLinks li:nth-child(1)").appendTo(".logoAndNavBar .navbar-nav").addClass("mobileShowRight text-center"); 2136 2137 2138 2139 } 2140 2141 } 2142 2143function checkWindow(){ 2144 2145 if($(window).width() > 767){ 2146 2147 $("body").removeClass("mobile").addClass("desktop"); 2148 2149 //$(".searchFromWrap").insertBefore("#banner .col-sm-7").removeClass("mobileShow cf"); 2150 2151 } 2152 2153 else { 2154 2155 $("body").removeClass("desktop").addClass("mobile"); 2156 2157 //$(".searchFromWrap").insertAfter("#banner").addClass("mobileShow cf"); 2158 2159 } 2160 2161 if($(window).width() > 767 && $(window).width() < 1024){ 2162 2163 $("body").addClass("ipad"); 2164 2165 } 2166 2167 else { 2168 2169 $("body").removeClass("ipad"); 2170 2171 } 2172 2173} 2174 2175function cloneDiv(){ 2176 2177 if($(".bannerSlider").length){ 2178 2179 $("#banner .container").prepend("<div class='bannerSliderMob'></div>"); 2180 2181 var cloneSector = $('.fullHeader #banner .item').clone(); 2182 2183 $(cloneSector).appendTo(".bannerSliderMob"); 2184 2185 } 2186 2187} 2188 2189 2190 2191 2192 2193function backBtn(){ 2194 2195 if($("#steps1").is(":visible")){ 2196 2197 $("#formAddressModal .backBtn").attr("href","#steps01"); 2198 2199 } 2200 2201 if($("#steps2").is(":visible")){ 2202 2203 $("#formAddressModal .backBtn").attr("href","#steps1"); 2204 2205 } 2206 2207 if($("#steps3").is(":visible")){ 2208 2209 $("#formAddressModal .backBtn").attr("href","#steps2"); 2210 2211 } 2212 2213 if($("#steps5").is(":visible")){ 2214 2215 $("#formAddressModal .backBtn").attr("href","#steps2"); 2216 2217 } 2218 2219 if($("#steps6").is(":visible")){ 2220 2221 $("#formAddressModal .backBtn").attr("href","#steps2"); 2222 2223 } 2224 2225 if($("#steps4.dropOff").is(":visible")){ 2226 2227 $("#formAddressModal .backBtn").attr("href","#steps3"); 2228 2229 } 2230 2231 if($("#steps4.updateDropoff").is(":visible")){ 2232 2233 $("#formAddressModal .backBtn").attr("href","#steps5"); 2234 2235 } 2236 2237 if($("#steps4.preBooking").is(":visible")){ 2238 2239 $("#formAddressModal .backBtn").attr("href","#steps6"); 2240 2241 } 2242 2243 if($("#steps7").is(":visible")){ 2244 2245 $("#formAddressModal .backBtn").attr("href","#steps4"); 2246 2247 } 2248 2249 if($("#steps8, #steps9, #steps10").is(":visible")){ 2250 2251 $("#formAddressModal .backBtn").attr("href","#steps7"); 2252 2253 } 2254 2255 } 2256 2257function backBtn1(){ 2258 2259 if($("#airPortStep1").is(":visible")){ 2260 2261 $("#fromAirportModal .backBtn").attr("href","#airPortStep01"); 2262 2263 } 2264 2265 if($("#airPortStep2").is(":visible")){ 2266 2267 $("#fromAirportModal .backBtn").attr("href","#airPortStep1"); 2268 2269 } 2270 2271 if($("#airPortStep3").is(":visible")){ 2272 2273 $("#fromAirportModal .backBtn").attr("href","#airPortStep2"); 2274 2275 } 2276 2277 if($("#airPortStep4").is(":visible")){ 2278 2279 $("#fromAirportModal .backBtn").attr("href","#airPortStep3"); 2280 2281 } 2282 2283 if($("#airPortStep6").is(":visible")){ 2284 2285 $("#fromAirportModal .backBtn").attr("href","#airPortStep3"); 2286 2287 } 2288 2289 if($("#airPortStep5.dropOff").is(":visible")){ 2290 2291 $("#fromAirportModal .backBtn").attr("href","#airPortStep4"); 2292 2293 } 2294 2295 if($("#airPortStep5.updateDropoff").is(":visible")){ 2296 2297 $("#fromAirportModal .backBtn").attr("href","#airPortStep6"); 2298 2299 } 2300 2301 if($("#airPortStep5.preBooking").is(":visible")){ 2302 2303 $("#fromAirportModal .backBtn").attr("href","#airPortStep7"); 2304 2305 } 2306 2307 if($("#airPortStep7").is(":visible")){ 2308 2309 $("#fromAirportModal .backBtn").attr("href","#airPortStep5"); 2310 2311 } 2312 2313 if($("#airPortStep8").is(":visible")){ 2314 2315 $("#fromAirportModal .backBtn").attr("href","#airPortStep5"); 2316 2317 } 2318 2319 if($("#airPortStep9, #airPortStep10, #airPortStep11").is(":visible")){ 2320 2321 $("#fromAirportModal .backBtn").attr("href","#airPortStep8"); 2322 2323 } 2324 2325 } 2326 2327 function filterCheckBox(){ 2328 2329if($(".mobileFilterWrap").length){ 2330 2331 if($(window).width() < 768){ 2332 2333 $(".vehicle_list").appendTo(".mobileFilterWrap .filterWrap"); 2334 2335 }else{ 2336 2337 $(".vehicle_list").appendTo(".vehicle-type-section"); 2338 2339 } 2340 2341 } 2342 2343 2344 2345}
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.