PageSourceSearch

https://www.petcloud.com.au/js/main.js?v=1790858190

js petcloud.com.au collected 2026-10-02 05:32:12 UTC 15,196 bytes, 1 lines download raw bytes

1function saveNewJobhint(){window.localStorage.setItem("jobHintStatus",JSON.stringify({lastViewed:Date.now(),count:0,booking:!1,shown:!1}))}function updateJobhint(e,a,t){var o=getJobhint();e&&o.count++,a&&(o.booking=!0),t&&(o.shown=!0,sendGAEvent("Jobhint","Lost")),o.lastViewed=Date.now(),window.localStorage.setItem("jobHintStatus",JSON.stringify(o))}function sendVirtualPageview(e,a){"undefined"!=typeof ga&&ga("send",{hitType:"pageview",page:e,title:a})}function sendGAEvent(e,a,t){"undefined"!=typeof ga&&ga("send","event",e,t,a)}function getJobhint(){var e=window.localStorage.getItem("jobHintStatus");null==e&&(saveNewJobhint(),e=window.localStorage.getItem("jobHintStatus"));var a=JSON.parse(e);return a.lastViewed<Date.now()-36e5&&(saveNewJobhint(),a=JSON.parse(e=window.localStorage.getItem("jobHintStatus"))),a}function showModalLost(){$("#jobhintModal").modal("show"),updateJobhint(!1,!1,!0)}function check_length(e,a,t){if(a.val().length>=e){var o=a.val();a.val(o.substring(0,e))}t.html(e-a.val().length+" char left")}function hidelikeus(){$("#likeus").hide(),document.cookie="_hidelikes=true"}function setupStripe(e){if(void 0===yii.stripeId){window.setTimeout(setupStripe,100);return}void 0===e&&(e=yii.urls.base+"/stripe/bookingtoken"),window.stripeHandler=StripeCheckout.configure({key:yii.stripeId,image:"https://s3.amazonaws.com/stripe-uploads/acct_17x6F3H3vUJwtFInmerchant-icon-1459910765588-petcloud-logo.jpg",token:function(a,t){$("#globalspinner").show(),$.ajax({url:e,data:{token:a.id,id:$("#payBooking, #payJobBooking").data("id")},method:"post",dataType:"json"}).success(function(e){e.success?($("#globalspinner").hide(),window.location.reload()):(console.log(e),e.error?alert("There was an issue with saving your payment details:  "+e.error):alert("There was an issue with your card: "+e)),$("#globalspinner").hide(),window.location.reload(),setTimeout(function(){window.location.reload()},200)}).error(function(e){console.log(e),e.error?alert("There was an issue with your card: "+e.error):alert("There was an issue with your card: "+e),$("#globalspinner").hide()}).complete(function(e){$("#globalspinner").hide(),window.location.reload(),setTimeout(function(){window.location.reload()},200)})}}),$("#payBooking").on("click",function(e){window.stripeHandler.open({name:"PetCloud",description:$(this).data("amountdesc"),amount:$(this).data("amount"),email:$(this).data("email")}),e.preventDefault()})}function bookingAuthCard(e){void 0===e&&(e=$("#payBooking, #payJobBooking").data("id"));var a=yii.urls.base+"/stripe/bookingtokencard";$("#globalspinner").show(),$.ajax({url:a,data:{id:e},method:"post",dataType:"json"}).success(function(e){e.redirect?($("#globalspinner").hide(),setTimeout(function(){window.location.href="/payment-methods"},200)):e.success?($("#globalspinner").hide(),window.location.reload()):(console.log(e),e.error?alert("There was an issue with saving your payment details:  "+e.error):alert("There was an issue with your card: "+e))}).error(function(e){console.log(e),e.error?alert("There was an issue with your card: "+e.error):alert("There was an issue with your card: "+e),$("#globalspinner").hide()})}function authoriseWallet(e,a=!1){void 0===e&&(e=$("#payBooking, #payJobBooking").data("id"));var t=yii.urls.base+"/wallet/authorisebooking";$("#globalspinner").show(),$.ajax({url:t,data:{id:e},method:"post",dataType:"json"}).success(function(e){e.redirect?($("#globalspinner").hide(),$(".immi_book_amount").text("$"+e.booking_amount),$(".immi_wallet_bal").text("$"+e.wallet_balance),$(".immiwallet_bal_after").text("$-"+e.amount),$(".wallet_amount").val(e.amount),$(".wallet_amount").attr("data-minamt",e.amount),updatetsnamt(e.amount),$("#walletcheckout").modal()):e.success?"smg"==a?($("#globalspinner").hide(),$("#inspection_request_form").modal("show")):window.location.reload():($("#globalspinner").hide(),e.error?alert("There was an issue with saving your payment details:  "+e.error):alert("There was an issue with your wallet"))}).error(function(e){console.log(e),e.error?alert("There was an issue with your Wallet: "+e.error):alert("There was an issue with your Wallet: "+e),$("#globalspinner").hide()})}function updateCardsData(){$.ajax({url:"/wallet/rendercards",method:"post",dataType:"html"}).success(function(e){$("#globalspinner").hide(),$("#immi_card_details").html(e)}
1).error(function(){$("#globalspinner").hide()})}function updatetsnamt(e,a=!1){var t=parseFloat(e).toFixed(2),o=parseFloat(Math.round((1.75*t/100+Number.EPSILON)*100)/100+.3).toFixed(2),n=(parseFloat(t)+parseFloat(o)).toFixed(2);if("valid"==$(".coupon_status").val()){var i=parseFloat($(".coupon_amount").val()).toFixed(2);if(1==a)parseFloat(t),parseFloat(i),$(".applied-cpn-text").text("CashBack Applied:"),$(".applied-coupon-ampunt").text("$"+i);else{var n=(n-i).toFixed(2);$(".applied-cpn-text").text("Coupon Applied:"),$(".applied-coupon-ampunt").text("-$"+i)}$(".applied-coupon").show()}if(n<1&&"valid"==$(".coupon_status").val())return $(".coupon_status").val(""),$(".coupon_amount").val(0),$(".coupontype").val(""),$("#giftvoucherid").val(""),$(".prm-code-ele").show(),$(".prm-code-txt").text(""),$(".prm-code-txt").hide(),$(".applied-coupon-ampunt").text(""),$(".applied-coupon").hide(),alert("coupon not valid"),updatetsnamt(e,!1);$(".creditamt").text(t),$(".txnfeeamt").text(o),$(".totaltxnamt").text(n)}function incrementValue(e){e.preventDefault();var a=$(e.target).data("field"),t=$(e.target).closest("div");"SearchForm[sml_dogs]"==a&&($("#img_smallblack").show(),$("#img_smallgrey").hide()),"SearchForm[med_dogs]"==a&&($("#img_medmblack").show(),$("#img_medmgrey").hide()),"SearchForm[lrg_dogs]"==a&&($("#img_lrgblack").show(),$("#img_lrggrey").hide()),"SearchForm[gnt_dogs]"==a&&($("#img_gaintblack").show(),$("#img_gaintgrey").hide());var o=parseInt(t.find("input[name='"+a+"']").val(),10);isNaN(o)?t.find("input[name='"+a+"']").val("0+"):t.find("input[name='"+a+"']").val(o+1),t.find("input[name='"+a+"']").trigger("change")}function decrementValue(e){e.preventDefault();var a=$(e.target).data("field"),t=$(e.target).closest("div"),o=parseInt(t.find("input[name='"+a+"']").val(),10);"SearchForm[sml_dogs]"==a&&1==o&&($("#img_smallblack").hide(),$("#img_smallgrey").show()),"SearchForm[med_dogs]"==a&&1==o&&($("#img_medmblack").hide(),$("#img_medmgrey").show()),"SearchForm[lrg_dogs]"==a&&1==o&&($("#img_lrgblack").hide(),$("#img_lrggrey").show()),"SearchForm[gnt_dogs]"==a&&1==o&&($("#img_gaintblack").hide(),$("#img_gaintgrey").show()),!isNaN(o)&&o>0?t.find("input[name='"+a+"']").val(o-1):t.find("input[name='"+a+"']").val(0),t.find("input[name='"+a+"']").trigger("change")}Date.now||(Date.now=function(){return new Date().getTime()}),$(document).ready(function(){var e=null;void 0!==window.google&&void 0!==window.google.maps&&((e=new google.maps.places.Autocomplete(document.getElementById("location"),{types:["(cities)"],componentRestrictions:{country:"au"}})).addListener("place_changed",function(){var a=this.getPlace();if("undefined"!=typeof newGeocode)newGeocode(a);else{var a=e.getPlace();if(!a.geometry){$("#btn_search").width("auto").html("Search").prop("disabled",!1);return}for(var t={locality:"long_name",administrative_area_level_1:"short_name"},o=0;o<a.address_components.length;o++)$.each(a.address_components[o].types,function(e,n){var i=n;if(t[i]){var r=a.address_components[o][t[i]];t[i]=[t[i],r]}});var n="string"==typeof t.locality?"":t.locality[1],i="string"==typeof t.administrative_area_level_1?"":t.administrative_area_level_1[1];$("#navSearchForm-suburb").val(n),$("#navSearchForm-state").val(i)}var r=jQuery("#navSearchForm").attr("action"),l=(r="/"+r.split("/")["1"])+"/"+$("#navSearchForm-suburb").val().toLowerCase()+"/"+$("#navSearchForm-state").val().toLowerCase();$("#navSearchForm").attr("action",l),$("#navSearchForm").submit()}),$(".main-menu").navgoco({caret:'<span class="caret"></span>',accordion:!1,openClass:"open",save:!0,cookie:{name:"navgoco",expires:!1,path:"/"},slide:{duration:300,easing:"swing"}}),$("html").click(function(){$("body").removeClass("nav-expanded")}),$("#nav-expander").click(function(e){e.stopPropagation(),e.preventDefault(),$("body").addClass("nav-expanded"),$("body.nav-expanded > nav.navbar > nav.off-canvas").click(function(e){e.stopPropagation()})}),$("body > nav.navbar.navbar-default.sub-menu > div > div.navbar-header").click(function(){$(this).find("i").toggleClass("fa-chevron-down"),$(this).find("i").toggleClass("fa-chevron-up")}
1),$("div.input-group").on("click","span.show-hide-password",function(){var e=$(this).prev("input");"password"==e.attr("type")?(e.attr("type","text"),$(this).html("Hide")):(e.attr("type","password"),$(this).html("Show"))}))}),document.cookie.includes("_hidelikes")&&$("#likeus").hide(),$("#bookingModal").on("click","#ImmconfirmBookingAuth",function(e){e.preventDefault(),e.stopPropagation();var a=$(this).data("id");if($("#share-number-check").is(":checked")&&$("#pay-via-petcloud-check").is(":checked"))$(".summary-checkbox-error").hide();else{$(".summary-checkbox-error").show();return}bookingAuthCard(a)}),$("body").on("click",".bookingConfirmJobApllication",function(e){var a=$(this).data("id"),t=yii.urls.base+"/messages/letsmeet";$("#globalspinner").show(),$.ajax({url:t,data:{id:a},method:"post",dataType:"json"}).success(function(e){e.status?($("#globalspinner").hide(),setTimeout(function(){window.location.href="/messages/view/"+e.booking_id},200)):($("#globalspinner").hide(),void 0!==e.error?(alert(e.error),window.location.reload()):alert("Something Went wrong. Try Again!"))}).error(function(e){$("#globalspinner").hide(),alert("Something Went wrong. Try Again!")})}),$(document).ready(function(){$(".immi-mini-box").on("click",".immi_limit_content.fa-minus",function(){$(".mini-flexi-box").animate({height:"0px"},"medium").addClass("mini-flexi-resize"),$(this).removeClass("fa-minus").addClass("fa-plus")}),$(".immi-mini-box").on("click",".immi_limit_content.fa-plus",function(){var e=$
1(".mini-flexi-box").get(0).scrollHeight;$(".mini-flexi-box").animate({height:e},"medium").removeClass("mini-flexi-resize"),$(this).addClass("fa-minus").removeClass("fa-plus")})}),$(".amountincre").on("click",function(){}),$("#immi_card_details").on("click",".removecard",function(e){return e.preventDefault(),$("#globalspinner").show(),$.ajax({url:this.href,method:"post",dataType:"json"}).success(function(e){!0==e.status?updateCardsData():(alert(e.error),$("#globalspinner").hide())}).error(function(){$("#globalspinner").hide()}),!1}),$("#immi_card_details").on("click",".setdefaultcard",function(e){return e.preventDefault(),$("#globalspinner").show(),$.ajax({url:this.href,method:"post",dataType:"json"}).success(function(e){!0==e.status?updateCardsData():(alert(e.error),$("#globalspinner").hide())}).error(function(){$("#globalspinner").hide()}),!1}),$(".autorechargecheck").change(function(){$(this).is(":checked")?$.get("/wallet/autorecharge",{auto_recharge:"yes"}):$.get("/wallet/autorecharge",{auto_recharge:"No"})}),$(".showdonationpopup").change(function(){$(this).is(":checked")?$.get("/wallet/donationagree",{donation_popup:"yes"}):$.get("/wallet/donationagree",{donation_popup:"No"})}),$(".preauthpopup").click(function(){$("#pre-auth-wallet").modal("hide"),$("#autoreachargewallet").removeClass("hidden"),$("#dismiss-donation-wallet").addClass("hidden"),$("#booking-donation-agree").modal("show")}),$(".autoreachargewallet").click(function(){$("#bid").val()?($("#globalspinner").show(),window.location="/wallet/autorechargewallet/"+$("#bid").val()):alert("Something went wrong. try again")}),$(".showwallettopup").change(function(){$(this).is(":checked")?$.get("/wallet/preauthagree",{preauth_popup:"yes"}):$.get("/wallet/preauthagree",{preauth_popup:"No"})}),$(document).ready(function(){setTimeout(function(){$("#pre-auth-wallet").modal("show")},2e3),0==$("#pre-auth-wallet").length&&setTimeout(function(){$("#booking-donation-agree").modal("show")},2e3),$("#addBankMoneyDetail").on("submit",function(e){return e.stopImmediatePropagation(),e.preventDefault(),$("#globalspinner").show(),$.ajax({url:this.action,data:$(this).serialize(),method:"post",dataType:"json"}).success(function(e){!0==e.status?(updateCardsData(),$("#cardAddForm").modal("hide")):(alert(e.error),$("#globalspinner").hide())}).error(function(){$("#globalspinner").hide()}),!1}),$("#booking-checkout-trans").on("submit",function(e){return(e.stopImmediatePropagation(),e.preventDefault(),parseFloat($(".wallet_amount").val())<parseFloat($(".wallet_amount").data("minamt")))?(alert("Minimum required Amount is $"+$(".wallet_amount").data("minamt")),$(".wallet_amount").val($(".wallet_amount").data("minamt")),!1):($("#globalspinner").show(),$.ajax({url:"/wallet/checkout",data:$(this).serialize(),method:"post",dataType:"json"}).success(function(e){!0==e.status?""!=e.confirm?window.location=e.confirm:"paypal"==e.interface?window.location=e.link:authoriseWallet(e.bookingId):(alert(e.error),$("#globalspinner").hide())}).error(function(){$("#globalspinner").hide()}),!1)})}),$("input:radio[name=interface]").click(function(){$(".cardselectedid").val(this.dataset.card)}),$("#immi_card_details").on("click",".addNewCard",function(e){$("#addBankMoneyDetail").trigger("reset"),$("#cardAddForm").modal()}),$(".imiincreamt").on("click",function(){var e=parseFloat($(this).data("amount"));$(".wallet_amount").val(e.toFixed(2)),updatetsnamt(e.toFixed(2))}
1),$("#addMoney input").change(function(){var e=$("input[name='amount']:checked").val();if(e){$(".inputAmount").hide(),$(".inputAmount").val(e),$(".bankAmount").val(e);var a=$(".coupontype").val();updatetsnamt($(".inputAmount").val(),a)}}),$(".otherAmount").click(function(){$(".inputAmount").show(),$(".credit_rupee :input").removeAttr("checked")}),$(".inputAmount").keyup(function(){var e;event.preventDefault(),updatetsnamt(this.value,$(".coupontype").val()),$(".credit_rupee :input").removeAttr("checked"),$(".credit_rupee :input").removeAttr("required")}),$(".wallet_amount").keyup(function(){var e;event.preventDefault(),updatetsnamt(this.value,$(".coupontype").val())}),$(".voucher-check").on("click",function(){if(""==$("#giftvoucherid").val())return!1;$("#globalspinner").show(),$.ajax({url:"/wallet/checkcoupon",data:$("#booking-checkout-trans,#addMoney,#wallet-checkout-trans").serialize(),method:"post",dataType:"json"}).success(function(e){$(".immi_check_coupon").val(),!0==e.status?($(".coupon_status").val("valid"),$(".coupon_amount").val(e.couponamount),$(".coupontype").val(e.promo_type),$(".prm-code-ele").hide(),$(".prm-code-txt").text($("#giftvoucherid").val()),$(".prm-code-txt").show(),updatetsnamt($(".wallet_amount").val(),e.promo_type)):(alert(e.error),$("#giftvoucherid").val(""),$(".coupon_status").val(""),$(".coupon_amount").val("")),$("#globalspinner").hide()}).error(function(){$(".coupon_status").val(""),$(".coupon_amount").val(""),$("#globalspinner").hide()})}),$(".input-group").on("click",".button-plus",function(e){incrementValue(e)}),$(".input-group").on("click",".button-minus",function(e){decrementValue(e)}),$("#googleform").load(function(){document.querySelector("html span.appsMaterialWizButtonPaperbuttonLabel").addEventListener("click",function(){})});

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.