PageSourceSearch

https://www.cancunshuttles.com/vendor/js/logic.app.min.js?v=3.2

js cancunshuttles.com collected 2026-09-30 12:21:17 UTC 19,140 bytes, 1 lines download raw bytes

1$(document).ready(function(){var emtApp={path:window.location.protocol+"//"+window.location.hostname+"/",urlocation:window.location};$(".is-overlay i").on("click",function(){$(".is-overlay").fadeOut("last")}),$(".itemAcordeon").on("click",function(){$(".boxRateForService").css("height","55px"),$(this).parent().parent().css("height","100%"),$("body, html").animate({scrollTop:$(this).parent().parent().offset().top},600)}),$(".bubbleButtonPrices").on("click",function(e){e.preventDefault(),$("body, html").animate({scrollTop:$($(this).attr("href")).offset().top},600)}),$(".inp-man-eventdate").datepicker({minDate:"+2d",defaultDate:"+1w",dateFormat:"yy-mm-dd",numberOfMonths:1}),$("body").on("click",".optionView",function(){return emtApp.listview=$(this).data("view"),$(".boxOptionView i").removeClass("currentView"),$(this).stop(!0).addClass("currentView"),"list"==emtApp.listview?($(".itemServiceSale").stop(!0).removeClass("gridView"),!1):"grid"==emtApp.listview?($(".itemServiceSale").stop(!0).addClass("gridView"),!1):void 0});var boxBooking=$(".box-start-booking"),persistBookingFrameRequested=!1;function updatePersistBooking(){if(emtApp.screenWidth=$(window).width(),emtApp.screenWidth<=959)return boxBooking.removeClass("persistBooking"),boxBooking.children("h1").css("display","block"),boxBooking.children("small").css("display","block"),void(boxBooking.hasClass("is-bookhome")&&boxBooking.addClass("is-relative"));emtApp.scrollPoint=$(window).scrollTop(),emtApp.scrollPoint>=150?(boxBooking.addClass("persistBooking"),boxBooking.children("h1").css("display","none"),boxBooking.children("small").css("display","none"),boxBooking.hasClass("is-bookhome")&&boxBooking.hasClass("is-relative")&&boxBooking.removeClass("is-relative")):(boxBooking.removeClass("persistBooking"),boxBooking.children("h1").css("display","block"),boxBooking.children("small").css("display","block"),boxBooking.hasClass("is-bookhome")&&boxBooking.addClass("is-relative"))}function requestPersistBookingUpdate(){persistBookingFrameRequested||(persistBookingFrameRequested=!0,window.requestAnimationFrame(function(){updatePersistBooking(),persistBookingFrameRequested=!1}))}function setRecaptchaToken(e,t,n){grecaptcha.ready(function(){grecaptcha.execute("6LdV-MobAAAAANiiAGxCvALycsWGA3ICg6_Aa-D2",{action:t}).then(function(o){var a=$("#"+e);0===a.find('input[name="token"]').length&&a.prepend('<input type="hidden" name="token">'),0===a.find('input[name="action"]').length&&a.prepend('<input type="hidden" name="action">'),a.find('input[name="token"]').val(o),a.find('input[name="action"]').val(t),"function"==typeof n&&n(o,t)})})}function executeRequestDestination(e,t){var n={area:$("#inpArea option:selected").val(),area_name:$("#inpArea option:selected").text(),destination:$("#
1inpRegister").val(),mode:"normal",action:"destinationAdd"};if(null==n.destination||0==n.destination.length||/^\s+$/.test(n.destination))return $("#inpRegister").focus(),!1;if(0==n.area)return $("#inpArea").focus(),!1;if(n.overwrite="overwrite"==e?1:0,"airbnb"==t){if(n.mode="airbnb",n.contact=$("#inpContact").val(),n.email=$("#inpEmail").val(),n.phone=$("#inpNumberPhone").val(),null==n.contact||0==n.contact.length||/^\s+$/.test(n.contact))return $("#inpContact").focus(),!1;if(!/\w+([-+.']\w+)*@\w+([-.]\w+)/.test(n.email))return $("#inpEmail").focus(),!1;if(null==n.phone||0==n.phone.length||/^\s+$/.test(n.phone))return $("#inpNumberPhone").focus(),!1}$.ajax({data:n,url:"/handlers/hdl-resorts.php",type:"post",beforeSend:function(){$("#btnRegisterHotel").attr("disabled","disabled")},success:function(e){$("#btnRegisterHotel").removeAttr("disabled");var t=$.parseJSON(e);if(404==t.code){$("#model-title").text("We find coincidences"),$("#model-message").text("Dear user, we have found the following coincidences between your destination and those we already have, please check if your destination is any of the following:");for(var n="",o=0;o<t.coincidence.length;o++)n+="<li><strong>"+t.coincidence[o].destination+"</strong><span>"+t.coincidence[o].area+"</span></li>";$("#model-list-coincidence").html(n),$(".overwrite, #model-cancel").fadeIn("last")}200==t.code&&(swal({title:"Thank you for your collaboration",text:"We appreciate your collaboration, having the most possible destinations will allow us to provide a better service for all our visitors.",type:"success",html:!0,showConfirmButton:!1}),setTimeout(function(){location.href="/destinations"},5e3))}})}$(window).on("scroll resize orientationchange",requestPersistBookingUpdate),requestPersistBookingUpdate(),emtApp.mobileNavigation=!1,$(".burgerNavIcon").on("click",function(){return 0==emtApp.mobileNavigation?($(".menu").css("height","280px"),$(this).removeClass("fa-navicon").addClass("fa-close"),emtApp.mobileNavigation=!0,!1):1==emtApp.mobileNavigation?($(".menu").css("height","1px"),$(this).removeClass("fa-close").addClass("fa-navicon"),emtApp.mobileNavigation=!1,!1):void 0}),$(".widgetServicePage form").hide(),$(".widgetServicePage form.viewed").show(),$(".widgetServicePage .tabs a").on("click",function(e){e.preventDefault(),$(".widgetServicePage .tabs a").removeClass("current"),$(this).addClass("current");var t=$(this).attr("href");$(".widgetServicePage form").removeClass("viewed").stop(!0).fadeOut("last"),$(""+t).addClass("viewed").stop(!0).fadeIn("last")}
1),$(".privateServiceControlPax").on("change",function(){var e=$(".privateServiceControlPax option:selected").val();$.ajax({data:{servicePaxControlRates:e,serviceControlRates:"private"},url:emtApp.path+"handlers/hdl-rates.php",type:"post",success:function(e){$("#filter_private").html(e)}})}),$(".container-tabsdestinations .content .box").hide(),$(".container-tabsdestinations .content .currentShow").show(),$(".container-tabsdestinations .navigation li").on("click",function(){var e=$(this).data("canvas");$(".container-tabsdestinations .navigation li").removeClass("current"),$(this).addClass("current"),$(".container-tabsdestinations .content .box").stop(!0).fadeOut("last"),setTimeout(function(){$("#"+e).stop(!0).fadeIn("last")},3),$(window).width()<767&&$(".container-tabsdestinations .navigation ul").animate({height:"37px"},500)}),$(".privateControlPax").on("change",function(){var destination=null;destination=void 0===$("#destination").val()?$(".destinationControlPrices option:selected").val():$("#destination").val();var pax=$(".privateControlPax option:selected").val();$.ajax({data:{areaPrivatePrice:destination,paxPrivatePrice:pax},url:emtApp.path+"handlers/hdl-rates.php",type:"post",success:function(data){var prices=eval("("+data+")");$("#privateOW").html(prices[0].private.price.ow+" <small>USD</small>"),$("#privateRT").html(prices[0].private.price.rt+" <small>USD</small>")}})}),$(".destinationControlPrices").on("change",function(){var destination=$(".destinationControlPrices option:selected").val(),pax=$(".privateControlPax option:selected").val();$.ajax({data:{areaGeneralPrice:destination,paxGeneralPrice:pax},url:emtApp.path+"handlers/hdl-rates.php",type:"post",success:function(data){var prices=eval("("+data+")");$(".boxPrice strong").html(""),parseInt(prices[0].private.price.ow)>0?($("#privateOW").html(prices[0].private.price.ow+" <small>USD</small>"),$("#privateRT").html(prices[0].private.price.rt+" <small>USD</small>")):$("#privateOW, #privateRT").html("N/A"),parseInt(prices[1].luxury.price.ow)>0?($("#luxuryOW").html(prices[1].luxury.price.ow+" <small>USD</small>"),$("#luxuryRT").html(prices[1].luxury.price.rt+" <small>USD</small>")):$("#luxuryOW, #luxuryRT").html("N/A"),parseInt(prices[7].premium.price.ow)>0?($("#premiumOW").html(prices[7].premium.price.ow+" <small>USD</small>"),$("#premiumRT").html(prices[7].premium.price.rt+" <small>USD</small>")):$("#premiumOW, #premiumRT").html("N/A"),parseInt(prices[2].handicap.price.ow)>0?($("#handicapOW").html(prices[2].handicap.price.ow+" <small>USD</small>"),$("#handicapRT").html(prices[2].handicap.price.rt+" <small>USD</small>")):$("#handicapOW, #handicapRT").html("N/A"),parseInt(prices[3].group.price.ow)>0?($("#groupOW").html(prices[3].group.price.ow+" <small>USD</small>"),$("#groupRT").html(prices[3].group.price.rt+" <small>USD</small>")):$("#groupOW, #groupRT").html("N/A"),null!=prices[4]&&parseInt(prices[4].chrysler.price.ow)?($("#chryslerOW").html(prices[4].chrysler.price.ow+" <small>USD</small>"),$("#chryslerRT").html(prices[4].chrysler.price.rt+" <small>USD</small>")):$("#chryslerOW, #chryslerRT").html("N/A"),null!=prices[4]&&parseInt(prices[5].suburban.price.ow)>0?($("#suburbanOW").html(prices[5].suburban.price.ow+" <small>USD</small>"),$("#suburbanRT").html(prices[5].suburban.price.rt+" <small>USD</small>")):$("#suburbanOW, #suburbanRT").html("N/A")}})}),$("#inpGetLetter").on("click",function(e){e.preventDefault();var t={le_invoice:$("#inpInvoice").val(),le_email:$("#inpEmail").val()};return/\w+([-+.']\w+)*@\w+([-.]\w+)/.test(t.le_email)?null==t.le_invoice||0==t.le_invoice.length||/^\s+$/.test(t.le_invoice)?($("#inpInvoice").addClass("required").focus(),!1):void $.ajax({data:t,url:emtApp.path+"helpers/hLetters.php",type:"post",beforeSend:function(){$("#inpGetLetter").attr("disabled","disabled")},success:function(e){$("#letterReservation").html(e),$("#inpGetLetter").removeAttr("disabled"),$(".optionsLetter").fadeIn("last")}}):($("#inpEmail").addClass("required").focus(),!1)}),$("#printLetter").on("click",function(e){e.preventDefault();var t=window.open(" ","popimpr");t.document.write($("#letterReservation").html()),t.document.close(),t.print(),t.close()}),$("#ticket-boucher").hide(),$("#buttonDownload").on("click",function(){event.preventDefault();var e=window.open(" ","popimpr");
1e.document.write($("#ticket-boucher").html()),e.document.close(),e.print(),e.close()}),$(".getItNowTours").on("click",function(e){e.preventDefault(),$("body, html").animate({scrollTop:$($(this).attr("href")).offset().top+50},600)}),emtApp.urlocation.pathname,$(".mastertabs-tourpage .canvas article").hide(),$(".mastertabs-tourpage .canvas article.current").show(),$(".mastertabs-tourpage .tabs a").on("click",function(e){e.preventDefault();var t=$(this).attr("href");$(".mastertabs-tourpage .tabs a").removeClass("current"),$(this).addClass("current"),$(".mastertabs-tourpage .canvas article").stop(!0).slideUp("last"),$(".mastertabs-tourpage .canvas article"+t).stop(!0).slideDown("last")}),$("#btnRegisterAffiliate").on("click",function(e){e.preventDefault(),setRecaptchaToken("register-affiliate","register_affiliate",function(e,t){var n={contact:$("#fullname").val(),email:$("#email").val(),phone:$("#phone").val(),website:$("#website").val(),agency:$("#agency").val(),paypalaccount:$("#paypalaccount").val(),country:$("#country").val(),state:$("#state").val(),city:$("#city").val(),action:"register",language:"us",token:$('input[name="token"]').val(),action:$('input[name="action"]').val()};return null==n.contact||0==n.contact.length||/^\s+$/.test(n.contact)?($("#fullname").addClass("required").focus(),!1):/\w+([-+.']\w+)*@\w+([-.]\w+)/.test(n.email)?null==n.phone||0==n.phone.length||/^\s+$/.test(n.phone)?($("#phone").addClass("required").focus(),!1):null==n.agency||0==n.agency.length||/^\s+$/.test(n.agency)?($("#agency").addClass("required").focus(),!1):null==n.country||0==n.country.length||/^\s+$/.test(n.country)?($("#country").addClass("required").focus(),!1):null==n.state||0==n.state.length||/^\s+$/.test(n.state)?($("#state").addClass("required").focus(),!1):null==n.city||0==n.city.length||/^\s+$/.test(n.city)?($("#city").addClass("required").focus(),!1):void $.ajax({data:n,url:"/handlers/hdl-affiliates.php",type:"post",beforeSend:function(){$("#btnRegisterAffiliate").attr("disabled","disabled")},success:function(e){$("#btnRegisterAffiliate").removeAttr("disabled"),!1===e.success&&swal({title:"Error",text:"errors",icon:"error"}),404===e.code&&(swal({title:"Error",text:e.message,icon:"error"}),setTimeout(function(){location.reload()},4500)),200===e.code&&(swal({title:"Éxito",text:e.message,icon:"success",button:"Aceptar"}),$('#register-affiliate input[type="text"]').val(""))}}):($("#email").addClass("required").focus(),!1)})}),$("#register-affiliate input").on("keyup",function(){$(this).hasClass("required")&&$(this).removeClass("required")}),$("#register-affiliate input.number").numeric(),emtApp.topPhones=!1,$(".mobileTopPhones .touch").on("click",function(){return console.log(emtApp.topPhones),0==emtApp.topPhones?($(".mobileTopPhones").css("height","287px"),emtApp.topPhones=!0,!1):1==emtApp.topPhones?($(".mobileTopPhones").css("height","35px"),emtApp.topPhones=!1,!1):void 0}),$(".boxControlSearch").hide(),$(".navsearch").on("click",function(){$(".boxControlSearch").stop(!0).fadeIn("last",function(){$("#inpSearch").focus()})}),$(".boxControlSearch .close").on("click",function(){$(".boxControlSearch").stop(!0).fadeOut("last")}),$(".overwrite, #model-cancel").hide(),$("#btnRegisterHotel").on("click",function(e){e.preventDefault(),executeRequestDestination("notoverwrite","normal")}),$("#model-overwrite-btn").on("click",function(e){e.preventDefault(),executeRequestDestination("overwrite",$(this).data("mode"))}),$("#btnRegisterAirbnb").on("click",function(e){e.preventDefault(),executeRequestDestination("notoverwrite","airbnb")});const bookButton=document.getElementById("bookNowMobileButton"),bookTransferHotel=document.getElementById("bookTransfer-hotel")||document.getElementById("bookWidget"),titleBoxEngineHotel=document.querySelector(".titleBoxEngineHotel")||bookTransferHotel;if(bookButton&&titleBoxEngineHotel){bookButton.style.display="none";const e=new IntersectionObserver(function(e){e[0].isIntersecting?bookButton.style.display="none":bookButton.style.display="block"},{threshold:.1});e.observe(titleBoxEngineHotel),bookButton.addEventListener("click",function(e){e.preventDefault(),bookTransferHotel&&bookTransferHotel.scrollIntoView({behavior:"smooth"})})}}),$(window).load(function(){var e={path:window.location.protocol+"//"+window.location.hostname+"/",urlocation:window.location.pathname},t={view:null,userpage:e.urlocation,onIsRuner:function(e,t){var n=["/","/services","/destinations","/
1prices"];return"es"==t&&(n=["/es/","/es/servicios-de-transporte","/es/destinos-cancun-riviera-maya","/es/precios-transporte-cancun"]),"fr"==t&&(n=["/fr/","/fr/services-transport-cancun","/fr/destinations","/fr/tarifs-transport-cancun"]),n.indexOf(e)},onRun:function(e){var t=this.onRandomTimeStart(),n=this.onRandomTime(),o=this.onRandomNumberSales(n,this.view),a=this.onMessageView(e,n,o);this.onRenderMessage(a,t)},onRandomTimeStart:function(){var e=[1500,2e3,2500,3e3,3500,4e3];return e[Math.random()*e.length|0]},onRandomTime:function(){var e=["hour","day"];return e[Math.random()*e.length|0]},onRandomNumberSales:function(e,t){var n=[10,11,12,13,14,15],o=[15,16,17,18,19,20,21,22,23,24,25],a=o[Math.random()*o.length|0];"hour"!=e||"service"!=t&&"destination"!=t||(a=n[Math.random()*n.length|0]);var s=[15,16,17,18,19,20],i=[30,31,32,33,34,35];"day"!=e||"service"!=t&&"destination"!=t||(a=s[Math.random()*s.length|0]),"day"==e&&"any"==t&&(a=i[Math.random()*i.length|0]);var r=[5,6,7,8,9,10],l=[1,2,3,4,5];return"day"==e&&"hotel"==t&&(a=r[Math.random()*r.length|0]),"hour"==e&&"hotel"==t&&(a=l[Math.random()*l|0]),a},onMessageView:function(e,t,n){var o=null;return"service"==this.view&&(o=this.onServiceSectionMessage(e,t,n)),"destination"==this.view&&(o=this.onDestinationMessage(e,t,n)),"hotel"==this.view&&(o=this.onHotelMessage(e,t,n)),"any"==this.view&&(o=this.onGeneralMessage(e,t,n)),o},onServiceSectionMessage:function(e,t,n){var o=null;if("day"==t)switch(e){case"en":o="This service has been booked <strong>"+n+"</strong> times today";break;case"es":o="Este servicio ha sido reservado <strong>"+n+"</strong> veces el día de hoy.";break;case"fr":o="Ce service a été réservé <strong> "+n+"</strong> fois aujourd'hui."}if("hour"==t)switch(e){case"en":o="This service has been booked <strong>"+n+"</strong> times in the last hour";break;case"es":o="Este servicio ha sido reservado <strong>"+n+"</strong> veces en la última hora.";break;case"fr":o="Ce service a été réservé <strong> "+n+"</strong> fois au cours de la dernière heure."}return o},onDestinationMessage:function(e,t,n){var o=null;if("day"==t)switch(e){case"en":o="<strong>"+n+"</strong> reservations have been booked to this destination today.";break;case"es":o="Las personas han reservado <strong>"+n+"</strong> veces para este destino el día de hoy.";break;case"fr":o="Ce service a été réservé <strong>"+n+"</ strong> fois aujourd'hui."}if("hour"==t)switch(e){case"en":o="<strong>"+n+"</strong> reservations have been booked to this destination in the last hour.";break;case"es":o="Las personas han reservado <strong>"+n+"</strong> veces para este destino en la última hora.";break;case"fr":o="<strong>"+n+"</strong> transports ont été réservées à cette destination dans la dernière heure."}return o},onHotelMessage:function(e,t,n){if(message=null,"day"==t)switch(e){case"en":message="<strong>"+n+"</strong> reservations have been booked to this hotel today.";break;case"es":message="<strong>"+n+"</strong> personas han reservado su transportación para este hotel el día de hoy.";break;case"fr":message="<strong>"+n+"</strong> transports ont été réservées à cet hôtel aujourd'hui."}if("hour"==t)switch(e){case"en":message="<strong>"+n+"</strong> reservations have been booked to this hotel in the last hour. ";break;case"es":message="<strong>"+n+"</strong> personas han reservado su transportación para este hotel en la última hora.";break;case"fr":message="<strong>"+n+"</strong> transports ont été réservées à cet hôtel dans la dernière heure."}return message},onGeneralMessage:function(e,t,n){if(message=null,"day"==t)switch(e){case"en":message="<strong>"+n+"</strong> people have booked with Cancun Shuttles today.";break;case"es":message="<strong>"+n+"</strong> personas han reservado a través de Cancun Shuttles el día de hoy.";break;case"fr":message="<strong>"+n+"</strong> personnes ont réservé avec Cancun Shuttles aujourd'hui."}if("hour"==t)switch(e){case"en":message="<strong>"+n+"</strong> people have booked thru Cancun Shuttles in the last hour.";break;case"es":message="<strong>"+n+"</strong> personas han reservado a través de Cancun Shuttles en la última hora.";break;case"fr":message="<strong>"+n+"</strong> personnes ont réservé avec Cancun Shuttles au cours de la dernière heure."}return message},onRenderMessage:function(e,t){$("#popmarketing").html()&&($("#popmarketing span").html(e),console.log(t),setTimeout(function(){$("#popmarketing").fadeIn("last")},t),setTimeout(function(){$("#popmarketing").fadeOut("last"),$("#popmarketing span").html("")},8e3))}};$("#popmarketing").hide();var n="any",o=$("body").data("languagesite");$(".subHeader-hotelPage").html()&&(n=$(".subHeader-hotelPage").data("pagetype")),$(".boxSliderPageService").html()&&(n=$(".boxSliderPageService").data("pagetype")),$(".headerInformation-destination").html()&&(n=$(".headerInformation-destination").data("pagetype"));var a=Object.create(t);a.userpage=e.urlocation,a.view=n,"any"==n?a.onIsRuner(a.userpage,o)>=0&&a.onRun(o):a.onRun(o)});

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.