OurBlockchain Game Development Services

We offer cutting-edge blockchain game development services that blend creativity and technical expertise to bring your gaming vision to life. As blockchain technology reshapes the gaming world, we focus on delivering immersive and engaging experiences that leverage the unique benefits of decentralized networks.

With blockchain integration, your games can offer enhanced player engagement and unique features that stand out. Partner with us to develop blockchain game experiences that transform your concepts into trailblazing blockchain-powered games, redefining the future of interactive entertainment.

OurSolutions

Requirement

How it Works

We bring your ideas to life through a seamless process:

ChicMic Studios

Idea

Our team begins by understanding your vision and requirements, ensuring we align with your goals and objectives.

ChicMic Studios

Conceptualization

We develop clear concepts based on your ideas, offering a visual representation of how the final product will take shape.

ChicMic Studios

Plan & Strategy

Project managers collaborate with you to create a detailed roadmap, breaking down the project into manageable tasks for smooth execution.

ChicMic Studios

Development

Our agile approach ensures seamless coordination between teams to integrate features efficiently and adapt to changes.

ChicMic Studios

Launch

We support the deployment process and offer marketing strategies to ensure your product reaches the right audience effectively.

ChicMic Studios

Iterations

Based on user feedback and data, we refine the product, making necessary adjustments to improve performance and user experience.

Got an Idea?
Let’s bring it to life!

Fill out the form, and our team will reach out within 24 hours.

username

email

mobile

security badge Your Idea is Fully Protected By Our Non Disclosure Agreement (NDA)
ChicMic Studios

Our Work

We let our results do the talking.

Empire of Sight
Empire of Sight

Dive into mesmerizing landscapes, build alliances, and connect with players worldwide in this exhilarating adventure game.

HODL Hotel
HODL Hotel

This interactive experience combines fun and income generation, allowing users to connect, party, and thrive in a digital social environment while capitalizing on opportunities to generate rewards.

MetaRivals
MetaRivals

Immerse yourself in an innovative battle royale experience powered by blockchain technology. Engage in epic matches where blockchain ensures a secure and transparent gaming environment, safeguarding assets and achievements.

Meerkat Mining
Meerkat Mining

Meerkat Mining is an engaging online strategy game centered around gold mining, where players can earn rewards in cryptocurrency. Participants strategize their mining efforts to maximize profits while navigating various challenges in the game. This immersive experience combines gaming with cryptocurrency, allowing users to enjoy entertainment while potentially earning digital assets.

ChicMic Studios

Why Choose ChicMic Studios?

Delivering top-tier solutions with a commitment to your success, we focus on creating value.

We align your vision with our commitment to excellence, offering unmatched digital solutions tailored to your needs.

Tailored Solutions
Tailored Solutions

We create customized approaches to meet the unique demands of each project.

Project Management
Project Management

Effective communication and strategic management drive the success of our developments.

Quality Assurance
Quality Assurance

We focus on perfection from start to finish, ensuring flawless results.

Expertise And Experience
Expertise And Experience

Our skilled team brings years of industry know-how to every project.

Requirement

Testimonials

Discover the impact we've made through the words of those we've worked with.

We built a react native app for both iOS and android. I enjoyed working on this react native project together. He provided reliable and fast work as well as helpful advice on how to structure the app, adjust libraries and fulfill various requirements. Communication and availability was generally good and prompt. Would work together in the future.

USA

Fantastic work from ChicMic Studios. They did the work to exact specifications and gave me great suggestions as well. They are highly skilled developers and I highly recommend them.

Brisbane

Hired ChicMic Studios to build a very complex mobile app for Amazon sellers. They built the app from the ground up using React Native. They saw the project through until the end and were attentive to all my requests and suggestions. Very good work.

USA

Very talented programmer. Good communication. Always delivers high quality results and respects the deadlines. I strongly recommend.

Turkey

It has been a great overall experience working with the team at ChicMic Studios. The quality of work is top notch and they put in their level best in helping us to launch the project within short time frame. Although there was a little issue with the full understanding on the requirements, it was quickly resolved. Will definitely consider working with them again.

Singapore

Good experience! Willing to help you until everything is perfect.

Costa Rica

The ChicMic Studios team is an awesome group of designers and developers. I’ve used them for a couple projects and will continue to use them!

USA

They are a group of hardworking individuals and they will almost everything to help you out with your project. Whether you need more time to think about things or need input, they are always there. They are always in constant communication with you and will do what you need them to do.

USA

Professional, work completed in a timely manner and easy to communicate with. Would recommend to others for Mobile.

Australia

Fantastic all round attitude, clear communication, and always willing to go the extra mile. ChicMic Studios provided what was requested, and we are more than satisfied with the outcome.

Gold Coast
Map
ChicMic Studios

Blogs

Sharing knowledge fuels innovation—explore our blogs for fresh perspectives and tips.

By ChicMic Studios ChicMic Studios 5:44 AM
ChicMic Studios

Top 10 Game Development Companies 2025

With the amount of technological advancements the world is witnessing, there is no surprise the gaming genre is at the

By ChicMic Studios ChicMic Studios 12:45 PM

Best Practices in building Nemo Land Kingdom

In this article, we will go over the best practices that were used while building Nemo Land Kingdom. Nemo Land...

By ChicMic Studios ChicMic Studios 3:14 PM

How is ChicMic Studios carving a niche in App Development?

Do you really feel that a magical stick has the power to transform the perception of your potential customers in...

By ChicMic Studios ChicMic Studios 12:13 PM

Best 5 Games in android you must try before everyone else

From a basic arcade game to a full fledge MMO, the mobile market is crowded with android games from various...

By ChicMic Studios ChicMic Studios 10:31 AM

Exploring Cross-Platform Mobile App Development

With a myriad of mobile devices with different operating systems, it is not possible for any business to focus just...

Requirement

Frequently Asked Questions

Find answers to your business inquiries in our comprehensive FAQ section.

Blockchain game development involves creating games that utilize blockchain technology for decentralized gameplay, secure technology, and unique asset ownership. Features like NFTs and smart contracts enhance player experiences and create transparent, tamper-proof systems.

Blockchain integration enables features like secure asset ownership, player-to-player trading, decentralized economies, transparency, and enhanced gameplay through tokenization and smart contracts.

We support a range of blockchain platforms, including Ethereum, Binance Smart Chain, Solana, Polygon, and others, based on the project’s specific needs and scalability requirements.

NFTs (Non-Fungible Tokens are unique digital assets that represent in-game items like characters, weapons, or skins. Players can own, trade, or sell these items securely on blockchain networks.

',!event.target.classList.contains('.ems')) $(".menu-menu-1-container").removeClass("active"); } }) $(".events-pics li a").addClass("stupidbox"); $('.lightgallery')?.lightGallery(); $('.lightgallery-51')?.lightGallery(); $('.lightgallery-52')?.lightGallery(); $('.lightgallery-53')?.lightGallery(); $('.lightgallery-62')?.lightGallery(); $('.lightgallery-270')?.lightGallery(); /* if ($('.lightgallery').length) { $('.lightgallery').lightGallery(); } else { console.log("lightGallery class does not exist."); } */ // }); // Sub Menu $('body').on('click', '.menu-item:not(.mega_menu_btn)', function() { // $('.menu-item').removeClass('current-active'); $(this).toggleClass('current-active'); }); /* jQuery(function ($) { $(".events-pics li a").stupidbox(); }); */ jQuery(function($) { // if ($.fn.stupidbox) { $(".events-pics li a").stupidbox(); // } else { // console.error("stupidbox plugin is not available."); // } }); /* jQuery(document).ready(function($) { $(".events-pics li a").stupidbox(); }); */ function testInput(event) { var value = String.fromCharCode(event.which); var pattern = new RegExp(/[a-zåäö ]/i); return pattern.test(value); } $cf = $('[name="Tel"], [name="tel-264"]'); $cf.keypress(function(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { return false; } return true; }); // $(document).ready(function () { $('[name="text-340"], [name="text-590"]').bind('keypress change', testInput); // }); } catch (exception) {} //gtag('event', 'conversion', { // 'send_to': 'AW-303605633/haqpCIyzvv0CEIHP4pAB' //}); try { function initSlick() { try { // $('.responsive').slick({ dots: false, arrows: false, infinite: false, speed: 300, autoplay: true, slidesToShow: 2, slidesToScroll: 2, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 2, slidesToScroll: 2, infinite: true, } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }); // Game development $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, autoplay: true, autoplaySpeed: 5000, asNavFor: '.slider-nav' }); $('.slider-nav').slick({ slidesToShow: 10, // slidesToScroll: 1, Horizontal: true, asNavFor: '.slider-for', dots: false, arrow: false, focusOnSelect: true, HorizontalSwiping: true, // infinite:true, responsive: [{ breakpoint: 1400, settings: { vertical: false, slidesToShow: 5, } }, { breakpoint: 1199, settings: { vertical: false, slidesToShow: 5, } }, { breakpoint: 768, settings: { vertical: false, slidesToShow: 3, } }, { breakpoint: 580, settings: { vertical: false, slidesToShow: 2, } } ] }); // Banner Slider $('.slider-for_1').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, autoplay: true, autoplaySpeed: 5000, asNavFor: '.slider-nav_1' }); $('.slider-nav_1').slick({ slidesToShow: 6, // slidesToScroll: 1, Horizontal: true, asNavFor: '.slider-for_1', dots: false, arrow: false, focusOnSelect: true, HorizontalSwiping: false, // infinite:true, responsive: [{ breakpoint: 1200, settings: { vertical: false, slidesToShow: 5, } }, { breakpoint: 768, settings: { vertical: false, slidesToShow: 3, } }, { breakpoint: 575, settings: { vertical: false, slidesToShow: 2, } } ] }); //home page slider $('#logo_slider').slick({ lazyLoad: 'ondemand', dots: false, infinite: true, autoplay: true, loop: true, autoplaySpeed: 0, speed: 3000, slidesToShow: 6, cssEase: 'linear', arrows: 'false', drag: false, pauseOnHover: false, draggable: false, swipe: false, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 1, infinite: true, } }, { breakpoint: 600, settings: { slidesToShow: 3, slidesToScroll: 1 } }, { breakpoint: 480, settings: { slidesToShow: 2.5, slidesToScroll: 1 } } ] }); // Slick slider Banner $('.slider').not('.slick-initialized').slick({ dots: false, arrows: false, infinite: true, slidesToShow: 1, slidesToScroll: 1, fade: true, autoplay: true, speed: 1000, //cssEase: 'linear', pauseOnHover: false, responsive: [{ breakpoint: 767, settings: { arrows: false, slidesToShow: 1, slidesToScroll: 1 } }] }); if ($('.testimonial_group').length) { // Android page Testimonial sldier $('.testimonial_group').slick({ dots: false, infinite: true, autoplay: true, speed: 500, slidesToShow: 3, slidesToScroll: 1, arrows: true, pauseOnHover: true, draggable: true, centerMode: false, responsive: [{ breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, slidesToScroll: 1, } }, ] }); } } catch (exception) {} } // $(document).ready(setTimeout(() => initSlick(), 1500)); // $(document).ready(function () { // Initialize slick // initSlick(); // initializeSlick(); // },500); //for your requirements checkboxes ui jQuery('.Checkboxx').on('change', function() { jQuery('#page_option').val(''); console.log(jQuery('.Checkboxx:checked').map(function() { return this.value; }).get().join(', ')); var options2 = jQuery('.Checkboxx:checked').map(function() { return this.value; }).get().join(', '); jQuery('#page_options').val(options2); }); } catch (e) {} /* For modal popup global */ var countryinput = document.querySelector("#phone"); if (typeof countryinput !== 'undefined' && countryinput !== null) { var countryiti = window.intlTelInput(countryinput, { initialCountry: "auto", utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js", geoIpLookup: function(callback) { fetch("https://ipapi.co/json") .then(function(res) { return res.json(); }) .then(function(data) { callback(data.country_code); }) .catch(function() { callback("us"); }); }, showFlags: true, nationalMode: false, separateDialCode: true, }); // countryiti.setCountry("in"); $("#phone").on("countrychange", function($e) { // var SelectedCountry = countryiti.getSelectedCountryData(); var countryCode = $("#front_get_started .modal-content .modal-body").find(".iti__selected-dial-code") .html(); $("#country_code").val(countryCode); }); } // removed from here // Validate form $(document).on('submit', '#front_form_get_started', function(event) { event.preventDefault(); // country_code = $("#country_code").val().trim(), let name = $("#name").val().trim(), email = $("#email").val().trim(), phone = $("#phone").val().trim(), descmessage = $("#message_2").val().trim(); // let descmessage = document.getElementById('message_2').value; const regex = /^[A-Za-z\s]+$/; const email_regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const country_code_regex = /^[A-Za-z]+$/; const phone_digit_pattern = /^\d+$/; const phone_digit_length = /^[0-9]{9,13}$/; const message_allowed = /^(?!\d+$)(?:[a-zA-Z0-9][a-zA-Z0-9 @&$]*)?$/; if (name == "" || name == " ") { $("#name_error").html("Please enter name"); $("#name").val(name); $("#name").focus(); return false; } else if (!regex.test(name)) { // if valid will return regex.test(name) // $("#name_error").html("Please enter letters with white space only"); $("#name_error").html("Only alphabets and spaces are allowed."); $("#name").val(name); return false; } else if (name.length > 100) { // if valid will return regex.test(name) true $("#name_error").html("Only 100 letters with white space are allowed"); $("#name").val(name); return false; } else { $("#name").val(name); $("#name_error").html(""); } if (email == "" || email == " ") { $("#email_error").html("Please enter an email"); $("#email").val(email); $("#email").focus(); return false; } else if (!email_regex.test(email)) { $("#email_error").html("Please enter a valid email"); $("#email").val(email); $("#email").focus(); return false; } else { $("#email_error").html(""); } if (phone == "" || phone == " ") { $("#phone_error").html("Phone is required"); $("#phone").val(phone); $("#phone").focus(); return false; } else if (phone.startsWith("0")) { $("#phone_error").html("Phone number cannot start with 0."); $("#phone").val(phone); $("#phone").focus(); return false; } else if (!phone_digit_pattern.test(phone)) { $("#phone_error").html("Phone only digit are allowed"); $("#phone").val(phone); $("#phone").focus(); return false; } else if (!phone_digit_length.test(phone)) { $("#phone_error").html("Phone between 9 and 13 digits in total are allowed"); $("#phone").val(phone); $("#phone").focus(); return false; } else { $("#phone_error").html(""); } // if($('#g-recaptcha-response-1').val() == '') { var recaptchaResponse = grecaptcha.getResponse(g_recaptcha); // var recaptchaResponse = grecaptcha.getResponse(); if (recaptchaResponse == "") { $("#recaptcha_error").html("Please complete the reCAPTCHA challenge."); return false; } else { $("#recaptcha_error").html(""); } var submit_loader = document.querySelector(".submit_loader"); submit_loader.style.display = "block"; var form = $("#front_form_get_started"); var formData = form.serialize(); $.ajax({ type: "POST", url: "https://www.chicmicstudios.in/wp-content/themes/chicmic/send_email.php", data: formData, success: function(response) { submit_loader.style.display = "none"; grecaptcha.reset(); if (response.trim() == "SUCCESS") { $(".global_success").html( '' ); setTimeout(function() { $(".global_success").html(""); $(".close_form").trigger("click"); window.location.href = "https://www.chicmicstudios.in/thank-you/"; }, 3000); $("#name_error").html(""); $("#email_error").html(""); $("#phone_error").html(""); $("#message_error").html(""); $("#front_form_get_started")[0].reset(); $("#front_form_get_started").trigger("reset"); } else if (response == "FAIL") { $(".global_error").html( '' ); setTimeout(function() { $(".global_error").html(""); }, 5000); } else { $(".global_error").html( '" ); setTimeout(function() { $(".global_error").html(""); }, 5000); } }, error: function(error) { submit_loader.style.display = "none"; grecaptcha.reset(); $(".global_success").html(""); $("#name_error").html(""); $("#email_error").html(""); $("#phone_error").html(""); $("#message_error").html(""); $("#front_form_get_started")[0].reset(); $("#front_form_get_started").trigger("reset"); $("#global_error").html( "There is some issue in sending email. Please try after sometime." ); }, }); return false; }); function validateForm(event) { // country_code = $("#country_code").val().trim(), let name = $("#name").val().trim(), email = $("#email").val().trim(), phone = $("#phone").val().trim(), descmessage = $("#message_2").val().trim(); // let descmessage = document.getElementById('message_2').value; const regex = /^[A-Za-z\s]+$/; const email_regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const country_code_regex = /^[A-Za-z]+$/; const phone_digit_pattern = /^\d+$/; const phone_digit_length = /^[0-9]{9,13}$/; const message_allowed = /^(?!\d+$)(?:[a-zA-Z0-9][a-zA-Z0-9 @&$]*)?$/; if (name == "" || name == " ") { $("#name_error").html("Please enter name"); $("#name").val(name); $("#name").focus(); return false; } else if (!regex.test(name)) { // if valid will return regex.test(name) // $("#name_error").html("Please enter letters with white space only"); $("#name_error").html("Only alphabets and spaces are allowed."); $("#name").val(name); return false; } else if (name.length > 100) { // if valid will return regex.test(name) true $("#name_error").html("Only 100 letters with white space are allowed"); $("#name").val(name); return false; } else { $("#name").val(name); $("#name_error").html(""); } if (email == "" || email == " ") { $("#email_error").html("Please enter an email"); $("#email").val(email); $("#email").focus(); return false; } else if (!email_regex.test(email)) { $("#email_error").html("Please enter a valid email"); $("#email").val(email); $("#email").focus(); return false; } else { $("#email_error").html(""); } if (phone == "" || phone == " ") { $("#phone_error").html("Phone is required"); $("#phone").val(phone); $("#phone").focus(); return false; } else if (phone.startsWith('0')) { $("#phone_error").html("Phone number cannot start with 0."); $("#phone").val(phone); $("#phone").focus(); return false; } else if (!phone_digit_pattern.test(phone)) { $("#phone_error").html("Phone only digit are allowed"); $("#phone").val(phone); $("#phone").focus(); return false; } else if (!phone_digit_length.test(phone)) { $("#phone_error").html("Phone between 9 and 13 digits in total are allowed"); $("#phone").val(phone); $("#phone").focus(); return false; } else { $("#phone_error").html(""); } // if($('#g-recaptcha-response-1').val() == '') { var recaptchaResponse = grecaptcha.getResponse(g_recaptcha); // var recaptchaResponse = grecaptcha.getResponse(); if (recaptchaResponse == '') { $("#recaptcha_error").html("Please complete the reCAPTCHA challenge."); return false; } else { $("#recaptcha_error").html(""); } var submit_loader = document.querySelector('.submit_loader'); submit_loader.style.display = 'block'; var form = $('#front_form_get_started'); var formData = form.serialize(); $.ajax({ type: 'POST', url: "https://www.chicmicstudios.in/wp-content/themes/chicmic/send_email.php", data: formData, success: function(response) { submit_loader.style.display = 'none'; grecaptcha.reset(); if (response.trim() == "SUCCESS") { $(".global_success").html( '' ); setTimeout(function() { $(".global_success").html(''); $('.close_form').trigger('click'); window.location.href = "https://www.chicmicstudios.in/thank-you/"; }, 3000); $("#name_error").html(""); $("#email_error").html(""); $("#phone_error").html(""); $("#message_error").html(""); $("#front_form_get_started")[0].reset(); $("#front_form_get_started").trigger('reset'); } else if (response == "FAIL") { $(".global_error").html( '' ); setTimeout(function() { $(".global_error").html(''); }, 5000); } else { $(".global_error").html(''); setTimeout(function() { $(".global_error").html(''); }, 5000); } }, error: function(error) { submit_loader.style.display = 'none'; grecaptcha.reset(); $(".global_success").html(""); $("#name_error").html(""); $("#email_error").html(""); $("#phone_error").html(""); $("#message_error").html(""); $("#front_form_get_started")[0].reset(); $("#front_form_get_started").trigger('reset'); $("#global_error").html("There is some issue in sending email. Please try after sometime."); } }); return false; } $('#front_get_started').on('hidden.bs.modal', function() { grecaptcha.reset(); $("#name_error").html(""); $("#email_error").html(""); $("#phone_error").html(""); $("#message_error").html(""); $("#front_form_get_started")[0].reset(); $(this).find('form').trigger('reset'); }); /* For modal popup global end */ var innercountryinput = document.querySelector("#phone_1"); if (typeof innercountryinput !== 'undefined' && innercountryinput !== null) { var innercountryiti = window.intlTelInput(innercountryinput, { initialCountry: "auto", utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js", geoIpLookup: function(callback) { fetch("https://ipapi.co/json") .then(function(res) { return res.json(); }) .then(function(data) { callback(data.country_code); }) .catch(function() { callback("us"); }); }, showFlags: true, nationalMode: false, separateDialCode: true, }); // countryiti.setCountry("in"); $("#phone_1").on("countrychange", function($e) { // var SelectedCountry = countryiti.getSelectedCountryData(); var countryCode = $("#inner_form_get_started").find(".iti__selected-dial-code").html(); $("#country_code_1").val(countryCode); }); } // message us form $(document).on('submit', '#inner_form_get_started', function(event) { event.preventDefault(); // alert('submit message form'); // country_code = $("#country_code").val().trim(), let name_1 = $("#name_1").val().trim(), email_1 = $("#email_1").val().trim(), phone_1 = $("#phone_1").val().trim(), message_1 = $("#message_1").val().trim(); let descmessage = $("#message_1").html().trim(); const regex = /^[A-Za-z\s]+$/; const email_regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const country_code_regex = /^[A-Za-z]+$/; const phone_digit_pattern = /^\d+$/; const phone_digit_length = /^[0-9]{9,13}$/; if (name_1 == "" || name_1 == " ") { $("#name_1_error").html("Please enter name"); $("#name_1").val(name_1); $("#name_1").focus(); return false; } else if (!regex.test(name_1)) { // if valid will return regex.test(name) $("#name_1_error").html("Only alphabets and spaces are allowed."); // $("#name_1_error").html("Please enter letters with white space only"); $("#name_1").val(name_1); return false; } else if (name_1.length > 100) { // if valid will return regex.test(name) true $("#name_1_error").html("Only 100 letters with white space are allowed"); $("#name_1").val(name_1); return false; } else { $("#name_1").val(name_1); $("#name_1_error").html(""); } if (email_1 == "" || email_1 == " ") { $("#email_1_error").html("Please enter an email"); $("#email_1").val(email_1); $("#email_1").focus(); return false; } else if (!email_regex.test(email_1)) { $("#email_1_error").html("Please enter a valid email"); $("#email_1").val(email_1); $("#email_1").focus(); return false; } else { $("#email_1_error").html(""); } if (phone_1 == "" || phone_1 == " ") { $("#phone_1_error").html("Phone is required"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (phone_1.startsWith('0')) { $("#phone_1_error").html("Phone number cannot start with 0."); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (!phone_digit_pattern.test(phone_1)) { $("#phone_1_error").html("Phone only digit are allowed"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (!phone_digit_pattern.test(phone_1)) { $("#phone_1_error").html("Phone only digit are allowed"); $("#phone_1").val(phone); $("#phone_1").focus(); return false; } else if (!phone_digit_length.test(phone_1)) { $("#phone_1_error").html("Phone between 9 and 13 digits in total are allowed"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else { $("#phone_1_error").html(""); } // var recaptchaResponse = grecaptcha.getResponse(recaptcha_id); // var response = grecaptcha.getResponse(); if ($('#g-recaptcha-response-1').val() == '') { $("#recaptcha_1_error").html("Please complete the reCAPTCHA challenge."); return false; } else { $("#recaptcha_1_error").html(""); } var submit_loader = document.querySelector('.submit_form_loader'); submit_loader.style.display = 'block'; var form = $('#inner_form_get_started'); var formData = form.serialize(); $.ajax({ type: 'POST', url: "https://www.chicmicstudios.in/wp-content/themes/chicmic/send_email.php", data: formData, success: function(response) { submit_loader.style.display = 'none'; resetRecaptcha2(); // grecaptcha.reset(); if (response.trim() == "SUCCESS") { $("#inner_form_success").show(); $("#inner_form_success").html( "Thank you for contacting us. We are assessing your query and get back to you soon." ); setTimeout(function() { $("#inner_form_success").hide(); window.location.href = "https://www.chicmicstudios.in/thank-you/"; }, 3000); $("#name_1_error").html(""); $("#email_1_error").html(""); $("#phone_1_error").html(""); $("#message_1_error").html(""); $("#inner_form_get_started")[0].reset(); $("#inner_form_get_started").trigger('reset'); } else if (response == "FAIL") { $(".global_error_1").html( '' ); setTimeout(function() { $(".global_error_1").html(''); }, 5000); } else { $(".global_error_1").html(''); setTimeout(function() { $(".global_error_1").html(''); }, 5000); } }, error: function(error) { resetRecaptcha2(); submit_loader.style.display = 'none'; // grecaptcha.reset(); $("#global_error_1").html("There is some issue in sending email. Please try after sometime."); } }); return false; }); // Validate form function validateInnerForm() { // country_code = $("#country_code").val().trim(), let name_1 = $("#name_1").val().trim(), email_1 = $("#email_1").val().trim(), phone_1 = $("#phone_1").val().trim(), message_1 = $("#message_1").val().trim(); let descmessage = $("#message_1").html().trim(); const regex = /^[A-Za-z\s]+$/; const email_regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const country_code_regex = /^[A-Za-z]+$/; const phone_digit_pattern = /^\d+$/; const phone_digit_length = /^[0-9]{9,13}$/; if (name_1 == "" || name_1 == " ") { $("#name_1_error").html("Please enter name"); $("#name_1").val(name_1); $("#name_1").focus(); return false; } else if (!regex.test(name_1)) { // if valid will return regex.test(name) $("#name_1_error").html("Only alphabets and spaces are allowed."); // $("#name_1_error").html("Please enter letters with white space only"); $("#name_1").val(name_1); return false; } else if (name_1.length > 100) { // if valid will return regex.test(name) true $("#name_1_error").html("Only 100 letters with white space are allowed"); $("#name_1").val(name_1); return false; } else { $("#name_1").val(name_1); $("#name_1_error").html(""); } if (email_1 == "" || email_1 == " ") { $("#email_1_error").html("Please enter an email"); $("#email_1").val(email_1); $("#email_1").focus(); return false; } else if (!email_regex.test(email_1)) { $("#email_1_error").html("Please enter a valid email"); $("#email_1").val(email_1); $("#email_1").focus(); return false; } else { $("#email_1_error").html(""); } if (phone_1 == "" || phone_1 == " ") { $("#phone_1_error").html("Phone is required"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (phone_1.startsWith('0')) { $("#phone_1_error").html("Phone number cannot start with 0."); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (!phone_digit_pattern.test(phone_1)) { $("#phone_1_error").html("Phone only digit are allowed"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else if (!phone_digit_pattern.test(phone_1)) { $("#phone_1_error").html("Phone only digit are allowed"); $("#phone_1").val(phone); $("#phone_1").focus(); return false; } else if (!phone_digit_length.test(phone_1)) { $("#phone_1_error").html("Phone between 9 and 13 digits in total are allowed"); $("#phone_1").val(phone_1); $("#phone_1").focus(); return false; } else { $("#phone_1_error").html(""); } // var recaptchaResponse = grecaptcha.getResponse(recaptcha_id); // var response = grecaptcha.getResponse(); if ($('#g-recaptcha-response-1').val() == '') { $("#recaptcha_1_error").html("Please complete the reCAPTCHA challenge."); return false; } else { $("#recaptcha_1_error").html(""); } var submit_loader = document.querySelector('.submit_form_loader'); submit_loader.style.display = 'block'; var form = $('#inner_form_get_started'); var formData = form.serialize(); $.ajax({ type: 'POST', url: "https://www.chicmicstudios.in/wp-content/themes/chicmic/send_email.php", data: formData, success: function(response) { submit_loader.style.display = 'none'; resetRecaptcha2(); // grecaptcha.reset(); if (response == "SUCCESS") { $("#inner_form_success").show(); $("#inner_form_success").html( "Thank you for contacting us. We are assessing your query and get back to you soon." ); setTimeout(function() { $("#inner_form_success").hide(); }, 5000); $("#name_1_error").html(""); $("#email_1_error").html(""); $("#phone_1_error").html(""); $("#message_1_error").html(""); $("#inner_form_get_started")[0].reset(); $("#inner_form_get_started").trigger('reset'); } else if (response == "FAIL") { $(".global_error_1").html( '' ); setTimeout(function() { $(".global_error_1").html(''); }, 5000); } else { $(".global_error_1").html(''); setTimeout(function() { $(".global_error_1").html(''); }, 5000); } }, error: function(error) { resetRecaptcha2(); submit_loader.style.display = 'none'; // grecaptcha.reset(); $("#global_error_1").html("There is some issue in sending email. Please try after sometime."); } }); return false; } document.addEventListener('DOMContentLoaded', function() { var contactcountryinput = document.querySelector("#phone_2"); if (typeof contactcountryinput !== 'undefined' && contactcountryinput !== null) { var contactcountryiti = window.intlTelInput(contactcountryinput, { initialCountry: "auto", utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js", geoIpLookup: function(callback) { fetch("https://ipapi.co/json") .then(function(res) { return res.json(); }) .then(function(data) { callback(data.country_code); }) .catch(function() { callback("us"); }); }, showFlags: true, nationalMode: false, separateDialCode: true, }); } // Your code here // countryiti.setCountry("in"); $("#phone_2").on("countrychange", function($e) { // var SelectedCountry = countryiti.getSelectedCountryData(); var countryCode = $("#page_contact_form").find(".iti__selected-dial-code").html(); $("#country_code_2").val(countryCode); }); }); // Validate contact form function validateContactForm() { // country_code = $("#country_code").val().trim(), let name_2 = $("#name_2").val().trim(), email_2 = $("#email_2").val().trim(), phone_2 = $("#phone_2").val().trim(), message_2 = $("#message_2").val().trim(), category_type = $("#category_type").val().trim(); let descmessage = $("#message_2").html().trim(); const regex = /^[A-Za-z\s]+$/; const email_regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const country_code_regex = /^[A-Za-z]+$/; const phone_digit_pattern = /^\d+$/; const phone_digit_length = /^[0-9]{9,13}$/; if (name_2 == "" || name_2 == " ") { $("#name_2_error").html("Please enter name"); $("#name_2").val(name_2); $("#name_2").focus(); return false; } else if (!regex.test(name_2)) { // if valid will return regex.test(name) $("#name_2_error").html("Only alphabets and spaces are allowed."); // $("#name_2_error").html("Please enter letters with white space only"); $("#name_2").val(name_2); return false; } else if (name_2.length > 100) { // if valid will return regex.test(name) true $("#name_2_error").html("Only 100 letters with white space are allowed"); $("#name_2").val(name_2); return false; } else { $("#name_2").val(name_2); $("#name_2_error").html(""); } if (email_2 == "" || email_2 == " ") { $("#email_2_error").html("Please enter an email"); $("#email_2").val(email_2); $("#email_2").focus(); return false; } else if (!email_regex.test(email_2)) { $("#email_2_error").html("Please enter a valid email"); $("#email_2").val(email_2); $("#email_2").focus(); return false; } else { $("#email_2_error").html(""); } if (phone_2 == "" || phone_2 == " ") { $("#phone_2_error").html("Phone is required"); $("#phone_2").val(phone_2); $("#phone_2").focus(); return false; } else if (phone_2.startsWith('0')) { $("#phone_2_error").html("Phone number cannot start with 0."); $("#phone_2").val(phone_2); $("#phone_2").focus(); return false; } else if (!phone_digit_pattern.test(phone_2)) { $("#phone_2_error").html("Phone only digit are allowed"); $("#phone_2").val(phone_2); $("#phone_2").focus(); return false; } else if (!phone_digit_pattern.test(phone_2)) { $("#phone_2_error").html("Phone only digit are allowed"); $("#phone_2").val(phone_2); $("#phone_2").focus(); return false; } else if (!phone_digit_length.test(phone_2)) { $("#phone_2_error").html("Phone between 9 and 13 digits in total are allowed"); $("#phone_2").val(phone_2); $("#phone_2").focus(); return false; } else { $("#phone_2_error").html(""); } if (category_type == "" || category_type == " ") { $("#category_type_error").html("Empty option from dropdown not allowed"); // $("#category_type").val(phone_2); $("#category_type").focus(); return false; } else if (!regex.test(category_type)) { // if valid will return regex.test(name) $("#category_type_error").html("Only letters with white space options are allowed"); $("#category_type").focus(); return false; } else { $("#category_type_error").html(""); } var form = $('#page_contact_form'); var formData = form.serialize(); $.ajax({ type: 'POST', url: "https://www.chicmicstudios.in/wp-content/themes/chicmic/send_email.php", data: formData, success: function(response) { // console.log(response); if (response == "SUCCESS") { $("#page_contact_form_success").show(); $("#page_contact_form_success").html( "Thank you for contacting us. We are assessing your query and get back to you soon." ); setTimeout(function() { $("#page_contact_form_success").hide(); }, 5000); $("#name_2_error").html(""); $("#email_2_error").html(""); $("#phone_2_error").html(""); $("#message_2_error").html(""); $("#page_contact_form")[0].reset(); $("#page_contact_form").trigger('reset'); } else if (response == "FAIL") { $(".global_error_2").html( '' ); setTimeout(function() { $(".global_error_2").html(''); }, 5000); } else { $(".global_error_2").html(''); setTimeout(function() { $(".global_error_2").html(''); }, 5000); } }, error: function(error) { $("#global_error_1").html("There is some issue in sending email. Please try after sometime."); } }); return false; } // Design portfolio tabs $(document).on('click', '.portfolionavtab.nav-link', function(event) { // console.log(event); let targetId = $(this).attr('href'); // $(this).addClass('active'); $('.tab-pane').hide(); $(targetId).show(); }); var hash = window.location.hash; var sTabHash = hash.split('#tab'); var isTab = sTabHash[1] > 0 ? sTabHash[1] : 0; var tabId = hash.substring(1, hash.length); if (tabId) { $(".nav.nav-tabs li").removeClass("active"); $(".tab-content div[class*=tab-pane]").removeClass("active"); $(".nav.nav-tabs li a[href*=" + tabId + "]").parent().addClass("active"); $("#" + tabId + "").addClass("active"); } else if (tabId) { tabId = '3DCharacterart'; $(".nav.nav-tabs li").removeClass("active"); $(".tab-content div[class*=tab-pane]").removeClass("active"); $(".nav.nav-tabs li a[href*=" + tabId + "]").parent().addClass("active"); $("#" + tabId + "").addClass("active"); } else if (tabId) { tabId = 'all'; $(".nav.nav-tabs li").removeClass("active"); $(".tab-content div[class*=tab-pane]").removeClass("active"); $(".nav.nav-tabs li a[href*=" + tabId + "]").parent().addClass("active"); $("#" + tabId + "").addClass("active"); } // Services Slick slider for Mobile function initMobileView() { // $(document).ready(function () { try { $('#services-slider').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 991, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true, dots: true, dragable: true, nav: false, autoplay: true, // adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true, dots: true, loop: true, dragable: true, nav: false, arrows: false, autoplay: true, // adaptiveHeight: true, } }, ] }); } catch (exception) {} try { $('#services-slider-nft').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: { slidesToShow: 2, slidesToScroll: 1, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, ] }); } catch (exception) {} try { $('#services-slider-nft_how-we-work').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, arrows: false, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: { arrows: false, slidesToShow: 2, slidesToScroll: 2, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, ] }); } catch (exception) {} try { $('#services-slider-nft_whychoose').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, arrows: false, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: { arrows: false, slidesToShow: 2, slidesToScroll: 1, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, ] }); } catch (exception) {} try { $('#services-slider_metaverse').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, arrows: false, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: { arrows: false, slidesToShow: 2, slidesToScroll: 2, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, ] }); } catch (exception) {} try { $('#services-slider_metaverse-workflow').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, arrows: false, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: "unslick" }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, infinite: true, dots: true, dragable: true, nav: false, adaptiveHeight: true, } }, ] }); // Mobile Why Choose Slider $('#why_choose_slider').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, arrows: false, responsive: [{ breakpoint: 9999, settings: "unslick" }, { breakpoint: 900, settings: { slidesToShow: 1, slidesToScroll: 1, infinite: true, dots: true, loop: true, dragable: true, nav: false, arrows: false, adaptiveHeight: true, } }, { breakpoint: 575, settings: { slidesToShow: 1, slidesToScroll: 1, arrows: false, infinite: true, dots: true, dragable: true, nav: false, } }, ] }); // } } catch (exception) {} // }); } // $(document).ready(initMobileView()); initMobileView() // Mobile dropmenu var windowWidth = window.innerWidth; // $(window).resize(function () { function toggleDropdown() { try { // if ($(window).width() < 2000) { var dropdownMenu = document.querySelector('.dropdown-select-menu'); dropdownMenu.style.display = dropdownMenu.style.display === 'block' ? 'none' : 'block'; // } } catch (e) {} } let initDropdowns = () => { try { if ($(window).width()) { //Selection none var dropdownMenu = document.querySelector('.dropdown-select-menu'); dropdownMenu.style.display = 'none'; // Dropdown Mobile var dropdown = document.getElementById('dropdown'); function toggleDropdown() { var dropdownMenu = document.querySelector('.dropdown-select-menu'); dropdownMenu.style.display = dropdownMenu.style.display === 'block' ? 'none' : 'block'; } function updateCount() { var checkboxes = document.querySelectorAll('#dropdown-list input[type="checkbox"]'); var count = 0; checkboxes.forEach(function(checkbox) { if (checkbox.checked) { count++; } }); var selectedCount = document.getElementById('selected-count'); selectedCount.textContent = count + ' items selected'; if (count == 0) { selectedCount.textContent = ' Select Services'; } } document.addEventListener('click', function(event) { var isClickInside = dropdown.contains(event.target); if (!isClickInside) { var dropdownMenu = document.querySelector('.dropdown-select-menu'); dropdownMenu.style.display = 'none'; } }); // }; } // Mobile dropmenu var windowWidth = window.innerWidth; } catch (e) {} } initDropdowns(); // Footer Accordin for Mobile var width = $(document).width(); $('.links_new').first().addClass('active'); // if (width < 900) { $('.links_new').click(function() { // Check if the clicked accordion is already active var isActive = $(this).hasClass('active'); // $('.links_new1:first').show(); // Hide all accordions $('.links_new').removeClass('active'); $('.accordin_content').slideUp(); // Show the clicked accordion if it wasn't active if (!isActive) { $(this).addClass('active'); $(this).find('.accordin_content').slideDown(); } }); function readMoreDirective() { try { if ($(window).width() < 767) { //Toggle content when click on read more link // Show more text option window.lastWidth = $(window).width() var showChar = 230; // How many characters are shown by default var ellipsestext = "..."; var moretext = "Read more"; var lesstext = "Read less"; //Cut content based on showChar length if ($(".toggle-text").length) { $(".toggle-text").each(function() { if (!window.content) { window.content = $(this).html(); } let content = window.content; if (content.length > showChar && !content.includes('')) { var contentExcert = content.substr(0, showChar); var contentRest = content.substr(showChar, content.length - showChar); var html = contentExcert + ' ' + ellipsestext + '' + contentRest + '' + moretext + ''; $(this).html(html); } else { $(this).html(content); } }); } //Toggle content when click on read more link $(".toggle-text-link").click(function() { if ($(this).hasClass("less")) { $(this).removeClass("less"); $(this).html(moretext); } else { $(this).addClass("less"); $(this).html(lesstext); } $(this).parent().prev().toggle(); $(this).prev().toggle(); return false; }); } else { window.lastWidth = $(window).width(); if ($(".toggle-text").length) { $(".toggle-text").each(function() { if (!window.content) { window.content = $(this).html(); } let content = window.content; $(this).html(content); }) } } } catch (e) { // console.warn(e); } } readMoreDirective() $(window).resize(function() { if ($(window).width() != window.lastWidth) { readMoreDirective() initSlick() initializeSlick() initMobileView() initDropdowns() } }); // Hover Mega menu if ($(window).width() > 1201) { // $(document).ready(function () { $('.mega_menu_btn, .header_mega_Menu').mouseover(function() { $('.header_mega_Menu').addClass("is-open"); $('.header_mega_Menu').removeClass("is-closed"); }); $(".header_mega_Menu, #menu-header-menu li:not('.mega_menu_btn')").mouseout(function() { $('.header_mega_Menu').removeClass("is-open"); }); // }); } // Mobile Mega Menu for mobile if ($(window).width() < 1200) { // $(document).ready(function () { $('body').on('click', '.mega_menu_btn', function(event) { event.preventDefault(); $("#mega-menu").toggleClass('is-open'); $(".navbar-collapse").addClass('menu-blured'); }); // }); // back button hide menu $(document).on('click', '.reverse_menu', function(event) { $("#mega-menu").removeClass('is-open'); $(".navbar-collapse").removeClass('menu-blured'); }); } // $(document).ready(function () { // how to work section var lis = $(".work_part > .work_place"); var currentHighlight = 0; var intervalSlide; function startSlideInterval() { intervalSlide = setInterval(function() { currentHighlight = (currentHighlight + 1) % lis.length; lis.removeClass('active').eq(currentHighlight).addClass('active'); }, 3000); } function pauseSlideInterval() { clearInterval(intervalSlide); } $('.work_part > .work_place').on("mouseenter", function(e) { pauseSlideInterval(); lis.removeClass("active"); $(this).addClass("active"); currentHighlight = lis.index(this); // Store the index of the hovered element }); $('.work_part > .work_place').on("mouseleave", function(e) { startSlideInterval(); }); // Add "active" class to the first element lis.eq(0).addClass("active"); startSlideInterval(); // Start the initial slideshow interval // }); // reCaptcha Code removed from here // $(document).ready(function() { var targetElement = $('#dashboard_form'); var recaptchaRendered = false; if (targetElement.length) { $(window).on('scroll', function() { var scrollPosition = $(window).scrollTop(); var elementOffset = targetElement.offset().top; var windowHeight = $(window).height(); if (scrollPosition + windowHeight > elementOffset && !recaptchaRendered) { console.log('Element is in view!'); renderRecaptcha(); recaptchaRendered = true; } }); } else { console.log('Target element #dashboard_form not found.'); } // }); // Reset reCAPTCHA widget function resetRecaptcha2() { if (recaptcha_id) { grecaptcha.reset(recaptcha_id); } } initSlick(); // if ($('#owl-banner').length && $('.owl-navbar').length) { // initializeSlick(); // } loadSlickLibrary(); }); // moved code outside function isNumberKeyPopup(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_error").html("Phone number cannot start with 0."); // Clear the input input.value = ''; // Set focus back to the input input.focus(); return false; } var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { $("#phone_error").html("Only digit are allowed"); return false; } else { $("#phone_error").html(""); return true; } } function validatePhoneNumber(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_error").html("Phone number cannot start with 0."); // Clear the input // input.value = ''; // Set focus back to the input input.focus(); return false; } else { $("#phone_error").html(""); return true; } } function isNumberKeyInner(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_1_error").html("Phone number cannot start with 0."); // Clear the input input.value = ''; // Set focus back to the input input.focus(); return false; } var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { $("#phone_1_error").html("Only digit are allowed"); return false; } else { $("#phone_1_error").html(""); return true; } } function validatePhoneNum(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_1_error").html("Phone number cannot start with 0."); // input.value = ''; input.focus(); return false; } else { $("#phone_1_error").html(""); return true; } } function isNumberKeyContact(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_2_error").html("Phone number cannot start with 0."); // Clear the input input.value = ''; // Set focus back to the input input.focus(); return false; } var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { $("#phone_2_error").html("Only digit are allowed"); return false; } else { $("#phone_2_error").html(""); return true; } } function validatePhone(evt) { var input = evt.target; var phoneNumber = input.value.trim(); if (phoneNumber.startsWith('0')) { $("#phone_2_error").html("Phone number cannot start with 0."); // input.value = ''; input.focus(); return false; } else { $("#phone_2_error").html(""); return true; } } // reCaptcha code var g_recaptcha; var recaptcha_id; // Ensure grecaptcha is defined if (typeof grecaptcha === 'undefined') { grecaptcha = {}; } // Initialize grecaptcha.ready function grecaptcha.ready = function(cb) { if (typeof grecaptcha === 'undefined') { const c = '___grecaptcha_cfg'; window[c] = window[c] || {}; (window[c]['fns'] = window[c]['fns'] || []).push(cb); } else { cb(); } }; // Load and render reCAPTCHA widgets var onloadCallback = function() { if ($("#g_recaptcha").length && !g_recaptcha) { g_recaptcha = grecaptcha.render("g_recaptcha", { sitekey: "6LdusoUpAAAAAB1ZUr5HFzNoP20KTyHkfQcji9H_" }); } // if ($("#recaptcha_id").length && !recaptcha_id) { // recaptcha_id = grecaptcha.render("recaptcha_id", { // sitekey: "6LdusoUpAAAAAB1ZUr5HFzNoP20KTyHkfQcji9H_" // }); // } console.log("reCAPTCHA has loaded!"); grecaptcha.reset(); }; // Attach event handler to the button function renderRecaptcha() { if ($("#recaptcha_id").length && !recaptcha_id) { recaptcha_id = grecaptcha.render("recaptcha_id", { sitekey: "6LdusoUpAAAAAB1ZUr5HFzNoP20KTyHkfQcji9H_" }); } console.log("reCAPTCHA has loaded on dashboard!"); grecaptcha.reset(); } -->