CINXE.COM
MIFB Registration
<!doctype html> <html> <head> <!-- Google Tag Manager --> <script> (function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-5MZFFHP'); </script> <!-- End Google Tag Manager --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="generator" content="Regnant"> <meta name="version" content="{$system['system_version']}"> <title>MIFB Registration</title> <!-- Meta --> <meta name="description" content="Registration"> <meta name="keywords" content="Regnant"> <!-- Meta --> <!-- fb & Whatsapp --> <meta name="facebook-domain-verification" content="zbj33synoqdzld4yv1uc7d1gfg2t2t" /> <!-- Site Name, Title, and Description to be displayed --> <meta property="og:site_name" content="Registration"> <meta property="og:title" content="Registration"> <meta property="og:description" content=""> <!-- Image to display --> <!-- Replace 芦example.com/image01.jpg禄 with your own --> <!-- <meta property="og:image" content="http://www.example.com/image01.jpg"> --> <!-- No need to change anything here --> <!-- <meta property="og:type" content="website" /> <meta property="og:image:type" content="image/jpeg"> --> <!-- Size of image. Any size up to 300. Anything above 300px will not work in WhatsApp --> <!-- <meta property="og:image:width" content="300"> <meta property="og:image:height" content="300"> --> <!-- Website to visit when clicked in fb or WhatsApp--> <meta property="og:url" content="http://www.google.com"> <!-- OG-Meta --> <!-- <meta property="og:title" content="Registration"/> <meta property="og:description" content="Online Registration Form"/> <meta property="og:site_name" content="Registration"/> <meta property="og:image" content="{$page_image}"/> --> <!-- OG-Meta --> <!-- Twitter-Meta --> <!-- <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="Registration"/> <meta name="twitter:description" content="Registration"/> <meta name="twitter:image" content="{$page_image}"/> --> <!-- Twitter-Meta --> <!-- Fonts [Roboto|Font-Awesome] --> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"> <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/css/intlTelInput.css"> --> <!-- Fonts [Roboto|Font-Awesome] --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/css/intlTelInput.css"> <!-- Include SweetAlert2 CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.3.0/dist/sweetalert2.min.css"> <!-- Include SweetAlert2 JavaScript --> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.3.0/dist/sweetalert2.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/intlTelInput.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.3/jquery.validate.min.js"></script> <script src="js/additional-methods.min.js"></script> <link rel="icon" type="image/png" href="img/favicon.png"> <link rel="stylesheet" href="style.css"> <style> input[type=checkbox] { transform: scale(1.35); } input[type=radio] { transform: scale(1.25); } .iti-mobile .iti--container { top: 10px; bottom: 30px; left: 30px; right: 30px; position: fixed; height: 100%; } .hide-step { display: none !important; } </style> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src=https://www.googletagmanager.com/ns.html?id=GTM-5MZFFHP height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="container-fluid col-md-6 offset-md-3 "> <div class="text-center pb-2"> <img class="img-fluid p-2 pt-4" src=" img/logo.png" style="width:450px"><br> <div class=" justify-content-center"> <h6 class="mb-0">Co-Locating:</h6> <img class="ml-3 img-fluid" src=" img/caexpo-logo-2.png" style="width:300px"> </div> <br> <h3 class="pt-3">12 - 14 July 2023</h3> <h5>Wed - Thu 10am - 6pm | Fri 10am - 5pm<br> <a href="http://www.mifb.com.my" target="_blank">www.mifb.com.my</a></h5> <!-- <h4 class="pt-3 pb-3">Visitor Registration Form</h4> --> </div> <div class="body-card bg-white shadow-lg rounded p-3 mb-4"> <h3>The registration has been closed.</h3> </div> </div> <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/intlTelInput.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function () { const checkbox1 = document.getElementById('visitor-rules'); const checkbox2 = document.getElementById('privacy-policy'); const submitBtn = document.getElementById('btn-submit'); function updateSubmitButton() { submitBtn.disabled = !(checkbox1.checked && checkbox2.checked); } checkbox1.addEventListener('change', updateSubmitButton); checkbox2.addEventListener('change', updateSubmitButton); // Initialize the submit button state updateSubmitButton(); function removeCountryCodeAndFormat(placeholder, countryCode) { const countryCodeRegex = /^\+\d+\s/; let cleanedPlaceholder = placeholder.replace(countryCodeRegex, ''); // Remove leading 0 for Malaysia phone numbers if (countryCode === 'MY') { cleanedPlaceholder = cleanedPlaceholder.replace(/^0/, ''); } return cleanedPlaceholder.replace(/[\(\)\-\s]/g, ''); } // var tel = document.querySelector("#telephone"); // var telCountryCodeInput = document.querySelector("#telephone_country_code"); // Add this line var mobile = document.querySelector("#mobile-number"); var mobileCountryCodeInput = document.querySelector("#mobile_country_code"); // Add this line // Define a common configuration object for both inputs const commonConfig = { initialCountry: "auto", separateDialCode: true, // Add this line to display the dial code geoIpLookup: callback => { fetch("https://ipapi.co/json") .then(res => res.json()) .then(data => callback(data.country_code)) .catch(() => callback("us")); }, utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.1.1/build/js/utils.js", placeholderNumberType: "MOBILE", customPlaceholder: function (selectedCountryPlaceholder, selectedCountryData) { return removeCountryCodeAndFormat(selectedCountryPlaceholder); }, }; // // Initialize intlTelInput with the common configuration for both inputs // const telIti = window.intlTelInput(tel, commonConfig); const mobileIti = window.intlTelInput(mobile, commonConfig); // Add this event listener for the mobile input mobile.addEventListener('countrychange', function () { var mobileCountryData = mobileIti.getSelectedCountryData(); var mobileCountryCode = mobileCountryData.dialCode; mobileCountryCodeInput.value = mobileCountryCode; mobile.placeholder = removeCountryCodeAndFormat(mobile.placeholder, mobileCountryData.iso2 .toUpperCase()); }); // // Add this event listener for the telephone input // tel.addEventListener('countrychange', function () { // var telCountryData = telIti.getSelectedCountryData(); // var telCountryCode = telCountryData.dialCode; // telCountryCodeInput.value = telCountryCode; // tel.placeholder = removeCountryCodeAndFormat(tel.placeholder, telCountryData.iso2.toUpperCase()); // }); // Add this function to handle the input event function handleInputEvent(inputElement, itiInstance) { const inputValue = inputElement.value; if (inputValue === '') { const countryData = itiInstance.getSelectedCountryData(); inputElement.placeholder = removeCountryCodeAndFormat(inputElement.placeholder, countryData.iso2 .toUpperCase()); } } // // Add input event listeners for both tel and mobile inputs // tel.addEventListener('input', function () { // handleInputEvent(tel, telIti); // }); mobile.addEventListener('input', function () { handleInputEvent(mobile, mobileIti); }); // Your existing code goes here, inside the DOMContentLoaded event listener }); </script> <script src="validation.js"></script> </body> </html>