403Webshell
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/b2b.hellogtx.com/public/asset/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2b.hellogtx.com/public/asset/assets/js/function.js
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) {
    //console.log(e);
    var sl,o, t = $("#child_" + e).val(), a = $("#adult_" + e).val(), l = $("#child_" + e).val(), r = $("#infant_" + e).val();
    if (5 <= parseInt(a) + parseInt(l) + parseInt(r)) return $("#child_" + e).val(0), $(".childage_" + e).hide(), alert("Only 4 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 (4 * 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()

}
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() }
$(".selectDestination").autocomplete({

    source: function (request, response) {
        var query = $(".selectDestination").val();
        var countryId = '';
        $.getJSON("/index/autosuggest", { query: query, countryId: countryId },
            response);
    },
    minLength: 3,
    autoFocus: true,
    select: function (event, ui) {
        var CityId = ui.item.CityId;
        var CityName = ui.item.CityName;
        $(".hidden_selected_hotel_cityid").val(CityId);
        $(".hidden_selected_city_name").val(CityName);
        
    }
});
$(".sendingrequestVisaDetails").on('submit', function (e) {


    var EmailReg = new RegExp(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/);
    e.preventDefault();
    var data = $(".sendingrequestVisaDetails").serialize();
   
    if ($('.sendingrequestVisaDetails input[name="fname"]').val() == '') {
        $('.msgrequestV').show().html('Please enter your first name').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="fname"]').focus();
        return false;
    }
    if ($('.sendingrequestVisaDetails input[name="email"]').val() == '') {
        $('.msgrequestV').show().html('Please enter your email id').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="email"]').focus();
        return false;
    }
    if (!EmailReg.test($('.sendingrequestVisaDetails input[name="email"]').val())) {
        $('.msgrequestV').show().html('Please enter valid email address!!!').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="email"]').focus();
        return false;
    }
    if ($('.sendingrequestVisaDetails input[name="mobile"]').val() == '') {
        $('.msgrequestV').show().html('Please enter your Mobile').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="mobile"]').focus();
        return false;
    }

    if (!$.isNumeric($('.sendingrequestVisaDetails input[name="mobile"]').val())) {
        $('.msgrequestV').show().html('Mobile should be numeric!!').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="mobile"]').focus();
        return false;
    }
    if ($('.sendingrequestVisaDetails input[name="mobile"]').val().length != '10') {
        $('.msgrequestV').show().html('Mobile should be 10 digit?').css('color', 'red').fadeIn().delay(5000).fadeOut();
        $('.sendingrequestVisaDetails input[name="mobile"]').focus();
        return false;
    }

    $('.msgrequestV').html('');
    //$('.sendingrequestDetails').attr('disabled', true);
     
        if ($('.sendingrequestVisaDetails input[name="travel_date"]').val() == '') {
            $('.msgrequestV').show().html('Please enter your travel date').css('color', 'red').fadeIn().delay(5000).fadeOut();
            $('.sendingrequestVisaDetails input[name="travel_date"]').focus();
            return false;
        }
        if ($('.sendingrequestVisaDetails input[name="destination"]').val() == '') {
            $('.msgrequestV').show().html('Please enter country of visit').css('color', 'red').fadeIn().delay(5000).fadeOut();
            $('.sendingrequestVisaDetails input[name="destination"]').focus();
            return false;
        }
         
        if ($('.sendingrequestVisaDetails select[name="noofdays"]').val() == '') {
            $('.msgrequestV').show().html('Please enter no of days').css('color', 'red').fadeIn().delay(5000).fadeOut();
            $('.sendingrequestVisaDetails select[name="noofdays"]').focus();
            return false;
        }
        if ($('.sendingrequestVisaDetails input[name="noofpax"]').val() == '') {
            $('.msgrequestV').show().html('Please enter travellers').css('color', 'red').fadeIn().delay(5000).fadeOut();
            $('.sendingrequestVisaDetails input[name="noofpax"]').focus();
            return false;
        }
        


        $.ajax({url: SITEURL + 'cms/index/send-query-details', type: 'POST', data: data, dataType: 'json', beforeSend: function () {
                $('.sendingrequestVisa').val(' Please Wait...');
            }, success: function (result) {
                if (result.status) {

                    $('.sendingrequestVisa').val('Submit').attr('disabled', false);
                    $('.msgrequestV').html(result.message).css({'color': 'green'}).fadeIn().delay(10000).fadeOut();
                } else {
                    $('.sendingrequestVisa').val('Submit').attr('disabled', false);
                    $('.msgrequestV').html(result.message);
                }


            }, error: function (result) {
                $('.sendingrequestVisa').val('Submit').attr('disabled', false);
                alert('Some error occured.');
            }});
     

});
$('.datepickerV').datepicker({
    dateFormat: 'dd/mm/yy',
    timepicker: false,
    minDate:0,

});
$(".header-nav>ul>li").mouseover(function(){ 
    if($(this).children('ul').length == 1) {
      var parent = $(this);
      var child_menu = $(this).children('ul');
      if( $(parent).offset().left + $(parent).width() + $(child_menu).width() > $(window).width() ){
        $(child_menu).css({"right":"0","left":"auto"});
      } else {
        $(child_menu).css({"right":"auto","left":"0"});
      }
    }
});

Youez - 2016 - github.com/yon3zu
LinuXploit