| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2c.hellogtx.com/public/js/ |
Upload File : |
function addroom() {
var e = $("#roomlp").val(), o = parseInt(e) + 1;
if (11 === o) return alert("Only 10 rooms are allowed."), !1;
$("#roomlp").val(o), $("#rmres_" + o).show(), $(".disproom").hide(), $(".disproom_" + o).show(), $("#adult_" + parseInt(o)).focus()
}
function delroom(e) {
var o = parseInt(e) - 1; $("#roomlp").val(o), $("#rmres_" + e).hide(), $(".disproom").hide(), $(".disproom_" + o).show()
}
function showextrabedbox(e) {
$("#adult_" + e).val(); tottravelerInRoom(e)
}
function showextrabedchildagebox(e) {
var sl,o, t = $("#child_" + e).val(), a = $("#adult_" + e).val(), l = $("#child_" + e).val(), r = $("#infant_" + e).val();
if (7 <= parseInt(a) + parseInt(l) + parseInt(r)) return $("#child_" + e).val(0), $(".childage_" + e).hide(), alert("Only 6 pax are allowed in each room. Please modify travelers in Room no. " + e), !1;
for ($(".childage_" + e).hide(), o = 1; o <= t; o++)$("#childcl_" + e + "_" + o).show(),sl = $("#childSelected_"+e+"_"+o).val(), $("#childcl_" + e + "_" + o + " select").val(sl)
}
function tottravelerInRoom(e) { var o = $("#adult_" + e).val(), t = $("#child_" + e).val(), a = $("#infant_" + e).val(); if (5 <= parseInt(o) + parseInt(t) + parseInt(a)) return $("#adult_" + e).val(2), alert("Only 4 pax are allowed in each room. Please modify travelers in Room no. " + e), !1 }
function tottraveller() {
var e = 0, o = 0, t = 0, a = $("#roomlp").val();
for (j = 1; j <= a; j++)e = parseInt(e) + parseInt($("#adult_" + j).val()), o = parseInt(o) + parseInt($("#child_" + j).val()), t = parseInt(t) + parseInt($("#infant_" + j).val());
var l = parseInt(e) + parseInt(o) + parseInt(t);
if (7 * parseInt(a) <= l) return alert("Only 4 pax are allowed in each room. Please modify travelers"), !1; $("#totadlt").val(e), $("#totchld").val(o), $("#totinfnt").val(o), $("#travelers").html(l),
$("#totaltravelersHtml").html('<span class="qtyTotal">' + parseInt(l) + "</span>"), $('.GuestTotal').html(parseInt(l)), $('.RoomsTotal').html(a);
var r = '[{"totalRoom" : ' + a + '},{"totalTraveler" : ' + l + '},{"totaladult" : ' + e + '},{"totalchild" : ' + o + '},{"totalinfant" : ' + t + "}]"; $("#roominfojson").val(r), $("#tarvller_show___").hide(), $("#Noofdays").focus()
//$(".hoteltarvller_main").hide("slow");
}
function showDiv() { document.getElementById("tarvller_show").style.display = "block", $("i", ".tarveller_rotate").toggleClass("fa-angle-down fa-angle-up") }
function showMoreTestimonial(e) { $(".showMoreTestimonialContent" + parseInt(e)).show(), $("#showMoreTestimonialBtn" + parseInt(e)).hide(), $("#hideMoreTestimonialBtn" + parseInt(e)).show() }
function hideMoreTestimonial(e) { $(".showMoreTestimonialContent" + parseInt(e)).hide(), $("#showMoreTestimonialBtn" + parseInt(e)).show(), $("#hideMoreTestimonialBtn" + parseInt(e)).hide() }
$(document).ready(function () {
(e = $(".brands")).owlCarousel({ items: 3, itemsDesktop: [1400, 3], itemsDesktopSmall: [1024, 2], itemsTablet: [900, 1], itemsMobile: [480, 1], rewindNav: !1, navigation: !0 }), (e = $("#owl-demo")).owlCarousel({ items: 3, itemsDesktop: [1e3, 3], itemsDesktopSmall: [900, 2], itemsTablet: [600, 1], itemsMobile: !1 }); var e, o = $("#owl-demo1"); o.owlCarousel({ items: 1, itemsDesktop: [1e3, 1], itemsDesktopSmall: [900, 1], itemsTablet: [600, 1], itemsMobile: !1 }), $(".blog-Right").click(function () { o.trigger("owl.next") }), $(".blog-Left").click(function () { o.trigger("owl.prev") }), (e = $("#owl-demo2")).owlCarousel({ items: 4, itemsDesktop: [1e3, 5], itemsDesktopSmall: [900, 4], itemsTablet: [600, 1], itemsMobile: !1 }), $(".right").click(function () { e.trigger("owl.next") }), $(".left").click(function () { e.trigger("owl.prev") })
}),
$(document).ready(function () {
$('select[name="child[]"]').trigger('change');
if($(".customer-logos").length>0) {
$(".customer-logos").slick({
slidesToShow: 8, slidesToScroll: 1, autoplay: !0, autoplaySpeed: 1e3,
arrows: !1, dots: !1, pauseOnHover: !1, responsive: [{breakpoint: 768, settings: {slidesToShow: 4}},
{breakpoint: 520, settings: {slidesToShow: 2}}]
})
}
});
$(".backform").on("click", function (e) {
$(".showQueryForm").css({ display: "none" }),
$("#leadsend").val(0), $("#BookingType").val(0), $("#PkgType").val(0)
});