<?php include "app_modal.php"; ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.0.2/wow.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.9.0/jquery.validate.min.js"></script>
<script src="<?= site_url;?>/designer/js/swiper.min.js"></script>
<script src="<?= site_url;?>/designer/js/intlTelInput-jquery.js"></script>
<!-- <script src="<?= site_url;?>/designer/js/themes.js" defer></script> -->
 
<a href="<?= site_url;?>/designer/images/Dmaic_Datasheet_Brochure.pdf" class="send_enquiry border-0 pdf-download" title="Get Brochure" target="_blank">
   <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" width="40" height="40" viewBox="0 0 64 64" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" version="1.1" xml:space="preserve">

<g>

<path d="M48.875,44.407l-0,-2.407c0,-0.376 0.21,-0.719 0.545,-0.89c0.334,-0.171 0.736,-0.141 1.04,0.079l10.125,7.313c0.261,0.188 0.415,0.489 0.415,0.811c-0,0.321 -0.154,0.622 -0.415,0.81l-10.125,7.313c-0.304,0.22 -0.706,0.25 -1.04,0.079c-0.335,-0.171 -0.545,-0.514 -0.545,-0.89c-0,-0 -0,-2.375 -0,-2.375c-0,0 -3.5,0 -3.501,0c-3.991,0 -7.594,2.381 -9.162,6.044c-0.037,0.134 -0.099,0.243 -0.173,0.33c-0.313,0.425 -0.789,0.376 -0.789,0.376c-0,-0 -1,-0.059 -1,-1.001c0,-4.144 1.646,-8.118 4.576,-11.048c2.694,-2.693 6.27,-4.302 10.049,-4.544Zm-11.939,11.325c0.661,-2.005 1.784,-3.847 3.304,-5.367c2.555,-2.555 6.021,-3.99 9.634,-3.99l0.001,-0c0.552,-0 1,-0.448 1,-1l-0,-1.419c0,-0 7.417,5.357 7.417,5.357c0,-0.001 -7.417,5.356 -7.417,5.356c-0,0 -0,-1.419 -0,-1.419c-0,-0.552 -0.448,-1 -1,-1l-4.501,0c-3.225,0 -6.238,1.294 -8.438,3.482Zm-23.936,-43.732l-7,0c-1.657,-0 -3,1.343 -3,3l-0,4c-0,0.552 0.448,1 1,1c0.552,0 1,-0.448 1,-1l0,-4c0,-0.552 0.448,-1 1,-1c5.455,0 20.545,0 26,0c0.552,-0 1,0.448 1,1c0,0 -0,12.5 -0,12.5c-0,0.552 -0.448,1 -1,1c-5.455,0 -20.545,0 -26,0c-0.265,0 -0.52,-0.105 -0.707,-0.293c-0.188,-0.187 -0.293,-0.442 -0.293,-0.707c-0,-0 -0,-5 -0,-5c-0,-0.552 -0.448,-1 -1,-1c-0.552,0 -1,0.448 -1,1l-0,5c0,0.796 0.316,1.559 0.879,2.121c0.562,0.563 1.325,0.879 2.121,0.879l7,0l0,17.5c0,2.761 2.239,5 5,5c5.706,-0 15.5,-0 15.5,-0c0.552,-0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1c-0,-0 -9.794,-0 -15.5,0c-1.657,-0 -3,-1.343 -3,-3l0,-17.5l17,0c1.657,0 3,-1.343 3,-3l-0,-12.5c-0,-1.657 -1.343,-3 -3,-3l-17,0l0,-4.621c0,-1.314 1.065,-2.379 2.379,-2.379l22.621,0l0,9c0,1.657 1.343,3 3,3l10,0l-0,24c-0,0.552 0.448,1 1,1c0.552,0 1,-0.448 1,-1l-0,-25.172c0,-0.281 -0.118,-0.548 -0.324,-0.738l-12.903,-11.827c-0.185,-0.169 -0.426,-0.263 -0.676,-0.263l-23.718,-0c-2.418,0 -4.379,1.961 -4.379,4.379l0,4.621Zm7,31l25.5,-0c0.552,-0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1l-25.5,-0c-0.552,-0 -1,0.448 -1,1c-0,0.552 0.448,1 1,1Zm-0,-4l25.5,-0c0.552,-0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1l-25.5,-0c-0.552,-0 -1,0.448 -1,1c-0,0.552 0.448,1 1,1Zm0,-4l25.5,-0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-25.5,-0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm-10,-12.5l1,0c1.657,0 3,-1.343 3,-3c-0,-1.657 -1.343,-3 -3,-3l-2,0c-0.552,0 -1,0.448 -1,1l0,8c0,0.552 0.448,1 1,1c0.552,0 1,-0.448 1,-1l0,-3Zm6,3l-0,-8c-0,-1.075 1.024,-1 1.029,-1c1.319,0 2.583,0.524 3.515,1.456c0.932,0.932 1.456,2.197 1.456,3.515l0,0.058c0,1.318 -0.524,2.583 -1.456,3.515c-0.932,0.932 -2.197,1.456 -3.515,1.456l-0.029,0c-0.552,0 -1,-0.448 -1,-1Zm10,-3l3,0c0.552,-0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1l-3,0l0,-2c-0,0 3,0 3,0c0.552,-0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1l-4,0c-0.552,0 -1,0.448 -1,1l0,8c0,0.552 0.448,1 1,1c0.552,0 1,-0.448 1,-1l0,-3Zm-8,-3.837c0.421,0.146 0.809,0.386 1.13,0.707c0.557,0.557 0.87,1.313 0.87,2.101l0,0.058c0,0.788 -0.313,1.544 -0.87,2.101c-0.321,0.321 -0.709,0.561 -1.13,0.707l0,-5.674Zm-8,1.837l1,0c0.552,0 1,-0.448 1,-1c-0,-0.552 -0.448,-1 -1,-1c0,0 -1,0 -1,-0l0,2Zm32,-14.316l0,7.816c0,0.552 0.448,1 1,1l8.617,0l-9.617,-8.816Z"/>

</g>

</svg>
<span>  Get Brochure </span></a>

<button type="button" data-bs-toggle="modal" data-bs-target="#myModal" class="send_enquiry border-0" title="Get A Quote"><svg
        xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
        <path
            d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
        </path>
    </svg><span>Get a Quote</span></button>

<button class="whatapp_btn border-0" type="button" data-bs-toggle="modal" data-bs-target="#whatsapp" title="Whatsapp Now"><svg
        xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
        <path
            d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z">
        </path>
    </svg></button>
<script src="<?=site_url;?>/designer/js/bootstrap.js"></script>
<a class="whatapp_btn whatapp_btn2" href="tel:<?=$admin_res['whatsapp_no'];?>" title="Call Now"><svg xmlns="http://www.w3.org/2000/svg"
        width="16" height="16" fill="currentColor" viewBox="0 0 16 16">

        <path
            d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z">

        </path>

    </svg></a>
    <script>
function stickyHeader() {
    if ($('.header').length) {
        var strickyScrollPos = 100;
        if ($(window).scrollTop() > strickyScrollPos) {
            $('.header').addClass('stricky-fixed');
        } else if ($(this).scrollTop() <= strickyScrollPos) {
            $('.header').removeClass('stricky-fixed');
        }
    };
}

jQuery(window).on('scroll', function () {
    (function ($) {
        stickyHeader();
    })(jQuery);
});


if ($(".navigation").length) {
    $(".navigation .navbar button").on("click", function () {
        $(".navigation .menu").slideToggle();
        $(this).toggleClass('open');
        return false;
    });
    $(".navigation .cs-submenu").children("a").append(function () {
        return '<button class="dropdown-expander"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg></button>';
    });

}

if (document.documentElement.clientWidth < 1023) {
    $(".navigation .menu .dropdown-expander").on("click", function () {
        $(this).parent().parent().children(".cs-dropdown").slideToggle();
        console.log($(this).parents("li"));
        console.log($(this).parents().children(".dropdown-expander").toggleClass("rotated"));
        return false
    })
    $(document).click(function (e) {
        if (!$(e.target).closest('.navigation .navbar button').length) {
            $('.navigation .menu').stop(true).slideUp();
            $(".navigation .navbar button").removeClass('open');

        }
    });
}


 
new Swiper('.ourBest', {
    loop: false, // ✅ loop disabled
    navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
    },
    slidesPerView: 'auto',
    pagination: {
        el: ".swiper-pagination",
        clickable: true,
    },
    spaceBetween: 20,
    breakpoints: {
        0: {
            slidesPerView: 1,
            spaceBetween: 20
        },
        480: {
            slidesPerView: 2,
            spaceBetween: 10
        },
        1024: {
            slidesPerView: 4,
            spaceBetween: 20
        },
        1920: {
            slidesPerView: 4,
            spaceBetween: 20
        }
    }
});


new Swiper('.testimonials', {
    loop: true,
    slidesPerView: 2,
    spaceBetween: 20,
    pagination: {
        el: ".swiper-pagination",
        clickable: true,
    },
    breakpoints: {
        1920: {
            slidesPerView: 2,
            spaceBetween: 20
        },
        1024: {
            slidesPerView: 2,
            spaceBetween: 20
        },
        480: {
            slidesPerView: 2,
            spaceBetween: 10
        },
        0: {
            slidesPerView: 1,
            spaceBetween: 20
        }
    }
});


$('.full-bg .cluom').on('mouseenter', function () {
    var tab_id = $(this).attr('data-tab');
    $('.full-bg .cluom').removeClass('current');
    $(this).addClass('current');

    $('.glry-img .tab-img ').removeClass('current');
    $("#" + tab_id).addClass('current');

    if ($(this).hasClass('current')) {
        return false;
       }
});

var pageSection = $(".bg-img, section");
pageSection.each(function (indx) {

    if ($(this).attr("data-background")) {
        $(this).css("background-image", "url(" + $(this).data("background") + ")");
    }
});


$('.count').each(function () {
    $(this).prop('Counter',0).animate({
        Counter: $(this).text()
    }, {
        duration: 4000,
        easing: 'swing',
        step: function (now) {
            $(this).text(Math.ceil(now));
        }
    });
});

wow = new WOW({
    animateClass: 'animated',
    offset: 100,
    mobile: false
});
wow.init();
$(document).ready(function () {
    var progressPath = document.querySelector('.progress-wrap path');
    var pathLength = progressPath.getTotalLength();
    progressPath.style.transition = progressPath.style.WebkitTransition = 'none';
    progressPath.style.strokeDasharray = pathLength + ' ' + pathLength;
    progressPath.style.strokeDashoffset = pathLength;
    progressPath.getBoundingClientRect();
    progressPath.style.transition = progressPath.style.WebkitTransition = 'stroke-dashoffset 10ms linear';
    var updateProgress = function () {
        var scroll = $(window).scrollTop();
        var height = $(document).height() - $(window).height();
        var progress = pathLength - (scroll * pathLength / height);
        progressPath.style.strokeDashoffset = progress;
    }
    updateProgress();
    $(window).scroll(updateProgress);
    var offset = 150;
    var duration = 550;
    jQuery(window).on('scroll', function () {
        if (jQuery(this).scrollTop() > offset) {
            jQuery('.progress-wrap').addClass('active-progress');
        } else {
            jQuery('.progress-wrap').removeClass('active-progress');
        }
    });
    jQuery('.progress-wrap').on('click', function (event) {
        event.preventDefault();
        jQuery('html, body').animate({ scrollTop: 0 }, duration);
        return false;
    })


});

 

new Swiper('.trade_partner', { 
    loop: false,
    slidesPerView: 6,
    spaceBetween: 10,
    breakpoints: {
        0: {
            slidesPerView: 2,
            spaceBetween: 20
        },
        480: {
            slidesPerView: 2,
            spaceBetween: 10
        },
        1024: {
            slidesPerView: 6,
            spaceBetween: 20
        },
        1920: {
            slidesPerView: 6,
            spaceBetween: 20
        }
    }
});
    </script>

<script>
$(".telePhone").intlTelInput({
    preferredCountries: ["in", "us"],
    initialCountry: "in",
    separateDialCode: true,
});


function setupPhoneValidation(formId) {
    $(formId + ' .telePhone').on('countrychange', function() {
        let countryData = $(this).intlTelInput("getSelectedCountryData");
        let validator = $(formId).validate();

        if (countryData.iso2 === 'in') {
            $(this).attr('maxlength', 10);
            validator.settings.rules.mobile.minlength = 10;
            validator.settings.rules.mobile.maxlength = 10;
            validator.settings.messages.mobile.minlength = "Your Mobile No. must be at least 10 digits long";
            validator.settings.messages.mobile.maxlength = "Your Mobile No. must be at least 10 digits long";
        } else {
            $(this).attr('maxlength', 17); // Increase maxlength for other countries
            validator.settings.rules.mobile.minlength = 4; // Set a minimum length
            validator.settings.rules.mobile.maxlength = 17; // Allow up to 17 digits
            validator.settings.messages.mobile.minlength = "Your Mobile No. must be 4-17 digits long";
            validator.settings.messages.mobile.maxlength = "Your Mobile No. must be 4-17 digits long";
        }

        $(this).valid();
    });
}


$(document).ready(function() {
    setupPhoneValidation("#contact_form");
    $("#contact_form").validate({
        rules: {
            name: "required",
            message: {

                required: true,

            },

            location: {

                required: true,

            },

            email: {

                required: true,

            },

            mobile: {

                required: true,

                number: true,

                minlength: 10,

                maxlength: 10,

            }

        },

        messages: {

            name: "Please enter your name",

            message: {

                required: "Please enter your message",

            },

            email: {

                required: "Please enter your email address"

            },

            location: {

                required: "Please enter your location",

            },

            mobile: {

                required: "Please enter your mobile no.",

                number: "Mobile No. contains only numbers",

                minlength: "Your Mobile No. must be 10 digits long",

                maxlength: "Your Mobile No. must be 10 digits long",

            }

        },

        submitHandler: function(form) {

            $.ajax({

                url: '<?=site_url;?>/contact.php',

                type: 'POST',

                data: $('#contact_form').serialize(),

                dataType: 'json',

                success: function(response) {

                    if (response.status == true) {

                        $('#pop_up').text(response.message_response).css('color',

                            'green');

                        $('#contact_form')[0].reset();

                        grecaptcha.reset();

                    } else {

                        $('#pop_up').text(response.message_response).css('color',

                            'red');

                    }

                }

            });

        }

    });

});







$(document).ready(function() {
    setupPhoneValidation("#enq_pop_form1");
    $("#enq_pop_form1").validate({
        rules: {
            name: "required",
            message: {
                required: true,
            },
            location: {
                required: true,
            },
            email: {
                required: true,
            },
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            message: {
                required: "Please enter your message",
            },
            email: {
                required: "Please enter your email address"
            },
            location: {
                required: "Please enter Your location",
            },
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/enquiry_popup.php',
                type: 'POST',
                data: $('#enq_pop_form1').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#enq_pop_up').text(response.message_response).css('color',
                            'green');
                        $('#enq_pop_form1')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#enq_pop_up').text(response.message_response).css('color',
                            'red');
                    }
                }
            });
        }
    });
});

$(document).ready(function() {
    setupPhoneValidation("#product_pop_form");
    $("#product_pop_form").validate({

        rules: {

            name: "required",

            message: {

                required: true,

            },

            location: {

                required: true,

            },

            quantity: {

                required: true,

            },

            email: {

                required: true,

            },

            mobile: {

                required: true,

                number: true,

                minlength: 10,

                maxlength: 10,

            }

        },

        messages: {

            name: "Please enter your name",

            message: {

                required: "Please enter your message",

            },

            email: {

                required: "Please enter your email address"

            },

            location: {

                required: "Please enter your location",

            },


            quantity: {

                required: "Please enter Your Order Quantity",

            },

            mobile: {

                required: "Please enter your mobile no.",

                number: "Mobile No. contains only numbers",

                minlength: "Your Mobile No. must be 10 digits long",

                maxlength: "Your Mobile No. must be 10 digits long",

            }

        },

        submitHandler: function(form) {

            $.ajax({

                url: '<?=site_url;?>/enquirycat_popup.php',

                type: 'POST',

                data: $('#product_pop_form').serialize(),

                dataType: 'json',

                success: function(response) {

                    if (response.status == true) {

                        $('#cat_pop_up').text(response.message_response).css('color',

                            'green');

                        $('#product_pop_form')[0].reset();

                        grecaptcha.reset();

                    } else {

                        $('#cat_pop_up').text(response.message_response).css('color',

                            'red');

                    }

                }

            });

        }

    });

});



$(document).ready(function() {
    setupPhoneValidation("#whatsapp_form");
    $("#whatsapp_form").validate({

        rules: {

            name: "required",

            mobile: {

                required: true,

                number: true,

                minlength: 10,

                maxlength: 10,

            }

        },

        messages: {

            name: "Please Enter Your Name",

            mobile: {

                required: "Please Enter Your mobile Number",

                number: "Mobile Number Must be Number",

                minlength: "Mobile Number must have 10 digits",

                maxlength: "Mobile Number must have 10 digits",

            }

        },

    });

});

$('#whatsapp_form').submit(function (e) {
        e.preventDefault();

        if (!$('#whatsapp_form').valid()) return;

        $(':input[type="submit"]').prop('disabled', true);

        $.ajax({

        'url': '<?= site_url; ?>/whatsapp_enq.php',

        'type': 'POST',

        'dataType': 'json',

        'data': $(this).serialize(),

        'success': function(result) {

            if (result.status == false) {

                $('.wht_success_message').text('');

                $('.wht_error_message').text(result.message_response)

                $(':input[type="submit"]').prop('disabled', false);

            } else {

                $('.wht_error_message').text('');

                $('.wht_success_message').text(
                    "You Have Successfully Submitted enquiry. We will contact you soon.");

                $('#whatsapp_form').trigger("reset");

                window.open(result.message_response, '_blank');

                $(':input[type="submit"]').prop('disabled', false);

            }

        }

    });

});

$(document).ready(function() {
    setupPhoneValidation("#callback_form");

    $("#callback_form").validate({

        rules: {

            name: "required",

            mobile: {

                required: true,

                number: true,

                minlength: 10,

                maxlength: 10,

            }

        },

        messages: {

            name: "Please enter your name",

            mobile: {

                required: "Please enter your mobile no.",

                number: "Mobile No. contains only numbers",

                minlength: "Your Mobile No. must be 10 digits long",

                maxlength: "Your Mobile No. must be 10 digits long",

            }

        },

        submitHandler: function(form) {
            $(':input[type="submit"]').prop('disabled', true);

            $.ajax({

                url: '<?=site_url;?>/ajax_enq_action.php',

                type: 'POST',

                data: $('#callback_form').serialize(),

                dataType: 'json',

                success: function(response) {

                    if (response.status == true) {

                        $('#cpop_up').text(response.message_response).css('color',

                            'green');

                        $('#callback_form')[0].reset();

                        grecaptcha.reset();

                    } else {

                        $('#cpop_up').text(response.message_response).css('color',

                            'red');

                    }

                }

            });

        }

    });

});

function ValidateAlpha(evt) {

    var keyCode = (evt.which) ? evt.which : evt.keyCode

    if ((keyCode < 65 || keyCode > 90) && (keyCode < 97 || keyCode > 123) && keyCode != 32)

        return false;

    return true;

}

function isNumberKey(evt) {

    //var e = evt || window.event;

    var charCode = (evt.which) ? evt.which : evt.keyCode

    if (charCode != 46 && charCode > 31 &&

        (charCode < 48 || charCode > 57))

        return false;

    return true;

}

function validateOnlyTextField(element) {

    var str = element.value;

    if (str == ' ') {

        element.value = "";

    }

    if (!(/^[a-zA-Z\s]+$/.test(str))) {

        // console.log('String contain number characters');

        str = str.substr(0, str.length - 1);

        element.value = "";

    }

}


$('.iti__country-list li').click(function() {

    $("#code").val($(this).data('dial-code'));

    $(".mobile").val($(this).data('country-code-code'));

    $('#countryName').val($(".iti__country-name", this).text());

    $(".code").val($(this).data('dial-code'));

    $('.countryName').val($(".iti__country-name", this).text());

})


//disabling context menu

document.onkeydown = function(e) {

    if (e.ctrlKey &&

        (e.keyCode === 67 ||

            e.keyCode === 86 ||

            e.keyCode === 85 ||

            e.keyCode === 117)) {

        return false;

    } else {

        return true;

    }

};

$(document).keypress("u", function(e) {

    if (e.ctrlKey) {

        return false;

    } else {

        return true;

    }

});

document.addEventListener("contextmenu", function(e) {

    e.preventDefault();

}, false);
</script>