{"id":186,"date":"2025-05-08T20:19:09","date_gmt":"2025-05-08T18:19:09","guid":{"rendered":"https:\/\/biogenericlab.com\/?page_id=186"},"modified":"2025-05-15T10:39:43","modified_gmt":"2025-05-15T08:39:43","slug":"authenticity-check","status":"publish","type":"page","link":"https:\/\/biogenericlab.com\/?page_id=186","title":{"rendered":"Authenticity Check"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"186\" class=\"elementor elementor-186\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7506a86 e-flex e-con-boxed e-con e-parent\" data-id=\"7506a86\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-169bb42 elementor-widget elementor-widget-spacer\" data-id=\"169bb42\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f7d298d elementor-widget elementor-widget-html\" data-id=\"f7d298d\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n  <meta charset=\"UTF-8\">\r\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n  <title>Product Authenticity Verification<\/title>\r\n  <style>\r\n    \/* \u0627\u0633\u062a\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 *\/\r\n    body {\r\n      font-family: Arial, sans-serif;\r\n      background-color: #f5f7fa;\r\n      display: flex;\r\n      justify-content: center;\r\n      align-items: center;\r\n      height: 100vh;\r\n      margin: 0;\r\n    }\r\n    .verification-container {\r\n      background-color: #ffffff;\r\n      padding: 30px;\r\n      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\r\n      border-radius: 8px;\r\n      width: 100%;\r\n      max-width: 450px;\r\n      text-align: center;\r\n    }\r\n    .verification-container h2 {\r\n      color: #333;\r\n      font-size: 24px;\r\n    }\r\n    .verification-container p {\r\n      color: #555;\r\n      font-size: 16px;\r\n    }\r\n    .verification-container input {\r\n      width: 100%;\r\n      padding: 12px;\r\n      margin: 15px 0;\r\n      border: 1px solid #ccc;\r\n      border-radius: 4px;\r\n      font-size: 16px;\r\n      box-sizing: border-box;\r\n    }\r\n    .verification-container button {\r\n      width: 100%;\r\n      padding: 12px;\r\n      background-color: #4CAF50;\r\n      color: white;\r\n      border: none;\r\n      border-radius: 4px;\r\n      font-size: 16px;\r\n      cursor: pointer;\r\n    }\r\n    .verification-container button:hover {\r\n      background-color: #45a049;\r\n    }\r\n    #result {\r\n      text-align: center;\r\n      margin-top: 10px;\r\n      font-weight: bold;\r\n    }\r\n    #result.success {\r\n      color: green;\r\n    }\r\n    #result.error {\r\n      color: red;\r\n    }\r\n    .verification-container .info-text {\r\n      margin-top: 20px;\r\n      font-size: 14px;\r\n      color: #888;\r\n    }\r\n    .loading {\r\n      display: none;\r\n      margin: 10px auto;\r\n      border: 3px solid #f3f3f3;\r\n      border-radius: 50%;\r\n      border-top: 3px solid #3498db;\r\n      width: 20px;\r\n      height: 20px;\r\n      animation: spin 1s linear infinite;\r\n    }\r\n    @keyframes spin {\r\n      0% { transform: rotate(0deg); }\r\n      100% { transform: rotate(360deg); }\r\n    }\r\n  <\/style>\r\n<\/head>\r\n<body>\r\n\r\n  <div class=\"verification-container\">\r\n    <h2>Verify Product Authenticity<\/h2>\r\n    <p>Enter the product authentication code to verify its authenticity.<\/p>\r\n    <input type=\"text\" id=\"authCode\" placeholder=\"Enter Product Authentication Code\" \/>\r\n    <button onclick=\"verifyCode()\">Verify Code<\/button>\r\n    <div class=\"loading\" id=\"loading\"><\/div>\r\n    <div id=\"result\"><\/div>\r\n    <div class=\"info-text\">\r\n      <p>Note: Each code can only be used once. Please check your product packaging for the code.<\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <script>\r\n    \/\/ \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 localStorage \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u06a9\u062f\u0647\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647\r\n    function getUsedCodes() {\r\n      const usedCodes = localStorage.getItem('usedProductCodes');\r\n      return usedCodes ? JSON.parse(usedCodes) : [];\r\n    }\r\n\r\n    function saveUsedCode(code) {\r\n      const usedCodes = getUsedCodes();\r\n      if (!usedCodes.includes(code)) {\r\n        usedCodes.push(code);\r\n        localStorage.setItem('usedProductCodes', JSON.stringify(usedCodes));\r\n      }\r\n    }\r\n\r\n    function verifyCode() {\r\n      const input = document.getElementById('authCode').value.trim().toUpperCase();\r\n      const resultDiv = document.getElementById('result');\r\n      const loadingDiv = document.getElementById('loading');\r\n      \r\n      if (!input) {\r\n        resultDiv.innerHTML = '\u274c Please enter a code.';\r\n        resultDiv.className = 'error';\r\n        return;\r\n      }\r\n\r\n      loadingDiv.style.display = 'block';\r\n      resultDiv.innerHTML = '';\r\n\r\n      \/\/ \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0641\u0627\u06cc\u0644 JSON\r\n      fetch('https:\/\/biogenericlab.com\/wp-content\/uploads\/auth_codes_from_excel.json')\r\n        .then(response => {\r\n          if (!response.ok) {\r\n            throw new Error('Network response was not ok');\r\n          }\r\n          return response.json();\r\n        })\r\n        .then(data => {\r\n          const codes = data.map(code => code.trim().toUpperCase());\r\n          const usedCodes = getUsedCodes();\r\n\r\n          if (usedCodes.includes(input)) {\r\n            resultDiv.innerHTML = '\u274c This code has already been used.';\r\n            resultDiv.className = 'error';\r\n          }\r\n          else if (codes.includes(input)) {\r\n            resultDiv.innerHTML = '\u2705 This code is valid and the product is authentic.';\r\n            resultDiv.className = 'success';\r\n            saveUsedCode(input);\r\n          }\r\n          else {\r\n            resultDiv.innerHTML = '\u274c Invalid code. Please check the code and try again.';\r\n            resultDiv.className = 'error';\r\n          }\r\n        })\r\n        .catch(error => {\r\n          console.error('Error:', error);\r\n          resultDiv.innerHTML = '\u274c Error verifying code. Please try again later.';\r\n          resultDiv.className = 'error';\r\n        })\r\n        .finally(() => {\r\n          loadingDiv.style.display = 'none';\r\n        });\r\n    }\r\n  <\/script>\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\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":"<p>Product Authenticity Verification Verify Product Authenticity Enter the product authentication code to verify its authenticity. Verify Code Note: Each code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"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":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","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-186","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/pages\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/biogenericlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":18,"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/pages\/186\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/biogenericlab.com\/index.php?rest_route=\/wp\/v2\/pages\/186\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/biogenericlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}