{"id":63,"date":"2025-11-11T06:44:03","date_gmt":"2025-11-11T06:44:03","guid":{"rendered":"https:\/\/alphaiqnutrition.com\/?page_id=63"},"modified":"2025-11-12T07:04:29","modified_gmt":"2025-11-12T07:04:29","slug":"product-verification","status":"publish","type":"page","link":"https:\/\/alphaiqnutrition.com\/index.php\/product-verification\/","title":{"rendered":"Product Verification"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"63\" class=\"elementor elementor-63\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3902c6a e-flex e-con-boxed e-con e-parent\" data-id=\"3902c6a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-40144c4 elementor-widget elementor-widget-shortcode\" data-id=\"40144c4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">     <div class=\"verification-widget\">\r\n        <h2>Authenticate Now<\/h2>\r\n        <p>Our products are certified by GMP and ISO 22000:2005<\/p>\r\n        <form id=\"verification-form\" onsubmit=\"return verifyForm(event)\">\r\n            <div class=\"form-row\">\r\n                <input type=\"text\" id=\"name\" placeholder=\"Your Name\" required>\r\n                <input type=\"text\" id=\"phone\" placeholder=\"Phone Number\" required>\r\n            <\/div>\r\n            <div class=\"form-row\">\r\n                <input type=\"email\" id=\"email\" placeholder=\"Email\" required>\r\n                <input type=\"text\" id=\"scratch-code\" placeholder=\"Scratch Code\" required>\r\n            <\/div>\r\n            <button type=\"submit\">Send Message<\/button>\r\n        <\/form>\r\n        <div id=\"verification-result\" style=\"display: none; margin-top: 20px;\"><\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        function verifyForm(event) {\r\n            event.preventDefault();\r\n\r\n            \/\/ Get form input values\r\n            const name = document.getElementById('name').value.trim();\r\n            const phone = document.getElementById('phone').value.trim();\r\n            const email = document.getElementById('email').value.trim();\r\n            const scratchCode = document.getElementById('scratch-code').value.trim();\r\n            const resultDiv = document.getElementById('verification-result');\r\n\r\n            \/\/ Validate name (non-empty)\r\n            if (!name) {\r\n                resultDiv.style.display = 'block';\r\n                resultDiv.style.color = 'red';\r\n                resultDiv.innerHTML = 'Please enter a valid name.';\r\n                return false;\r\n            }\r\n\r\n            \/\/ Validate phone number (must be exactly 10 digits)\r\n            const phoneRegex = \/^\\d{10}$\/;\r\n            if (!phoneRegex.test(phone)) {\r\n                resultDiv.style.display = 'block';\r\n                resultDiv.style.color = 'red';\r\n                resultDiv.innerHTML = 'Please enter a valid 10-digit phone number.';\r\n                return false;\r\n            }\r\n\r\n            \/\/ Validate email (basic email format)\r\n            const emailRegex = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\r\n            if (!emailRegex.test(email)) {\r\n                resultDiv.style.display = 'block';\r\n                resultDiv.style.color = 'red';\r\n                resultDiv.innerHTML = 'Please enter a valid email address.';\r\n                return false;\r\n            }\r\n\r\n            \/\/ Validate scratch code (must be exactly 10 characters)\r\n            if (scratchCode.length !== 10) {\r\n                resultDiv.style.display = 'block';\r\n                resultDiv.style.color = 'red';\r\n                resultDiv.innerHTML = 'Please enter a valid 10-character scratch code.';\r\n                return false;\r\n            }\r\n\r\n            \/\/ List of valid scratch codes from database\r\n            const validCodes = [\"8NZVV2ZMJ0\",\"AZ2PWHH99Q\",\"H8OZZP5CO8\",\"4VBMLUXBAB\",\"NJH6D3PTDS\",\"LNK5K49MWK\",\"Y7EEH2G6K9\",\"GM5U9GLUUE\",\"7TE325J1UY\",\"GK18PU803X\"];\r\n            console.log('Valid Scratch Codes:', validCodes); \/\/ For debugging\r\n            const isValid = validCodes.includes(scratchCode);\r\n\r\n            \/\/ Display result on the same page\r\n            resultDiv.style.display = 'block';\r\n            resultDiv.style.color = isValid ? 'green' : 'red';\r\n            resultDiv.innerHTML = `Scratch Code: ${scratchCode}<br>Status: ${isValid ? 'Genuine' : 'Fake'}`;\r\n            return false;\r\n        }\r\n    <\/script>\r\n\r\n    <style>\r\n        .verification-widget {\r\n            background-color: #000000;\r\n            padding: 20px;\r\n            color: white;\r\n            border-radius: 10px;\r\n            text-align: center;\r\n            max-width: 800px;\r\n            margin: 0 auto;\r\n        }\r\n        .verification-widget h2 {\r\n            margin-top: 0;\r\n            font-size: 24px;\r\n            color: #FFFFFF !important;\r\n        }\r\n        .verification-widget p {\r\n            font-size: 14px;\r\n            margin-bottom: 20px;\r\n        }\r\n        .form-row {\r\n            display: flex;\r\n            gap: 10px;\r\n            margin-bottom: 10px;\r\n        }\r\n        .form-row input {\r\n            width: 48%;\r\n            padding: 10px;\r\n            border: 1px solid #ccc;\r\n            border-radius: 5px;\r\n            box-sizing: border-box;\r\n        }\r\n        .verification-widget button {\r\n            background-color: red;\r\n            color: white;\r\n            padding: 10px 20px;\r\n            border: none;\r\n            border-radius: 5px;\r\n            cursor: pointer;\r\n            display: block;\r\n            margin: 0 auto;\r\n        }\r\n        .verification-widget button:hover {\r\n            background-color: darkred;\r\n        }\r\n        #verification-result {\r\n            font-size: 16px;\r\n            font-weight: bold;\r\n            padding: 10px;\r\n            border-radius: 5px;\r\n        }\r\n    <\/style>\r\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"disabled","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-63","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/pages\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":4,"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/pages\/63\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/pages\/63\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/alphaiqnutrition.com\/index.php\/wp-json\/wp\/v2\/media?parent=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}