{"id":66301,"date":"2024-12-13T15:36:33","date_gmt":"2024-12-13T07:36:33","guid":{"rendered":"https:\/\/xometry.asia\/?page_id=66301"},"modified":"2025-01-17T17:49:49","modified_gmt":"2025-01-17T09:49:49","slug":"join-us-to-to-expand-our-manufacturing-business","status":"publish","type":"page","link":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/","title":{"rendered":"Join us to to expand our manufacturing business"},"content":{"rendered":"\n<pre id=\"tw-target-text\" class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<pre id=\"tw-target-text\" class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<script>\n\/* TEMPORARILY DISABLED\ndocument.addEventListener('DOMContentLoaded', function() {\n  const body = document.body;\n\n  const modalTexts = {\n    title: 'Join Xometry Sales Partner Network',\n    closeButton: '&times;',\n    submitButton: 'Submit',\n    successMessage: 'Successfully submitted',\n    errorMessage: 'Error submitting form',\n    form: [\n      { id: 'firstName', type: 'text', label: 'First Name', name: 'first_name', required: true },\n      { id: 'lastName', type: 'text', label: 'Last Name', name: 'last_name', required: true },\n      { id: 'companyName', type: 'text', label: 'Company Name', name: 'company_name', required: true },\n      { id: 'email', type: 'email', label: 'Email', name: 'email', required: true },\n      { id: 'phoneNumber', type: 'text', label: 'Phone Number', name: 'phone_number', required: true },\n      { id: 'businessLicenseNumber', type: 'text', label: 'Business License Number', name: 'business_license_number', required: false },\n      { id: 'notes', label: 'Notes', name: 'notes', required: false, textarea: true, placeholder: 'Please share more details about your Company' }\n    ]\n  };\n\n  function generateModalHTML() {\n    const formFields = modalTexts.form.map(field => `\n        <div class=\"cso-form__field\">\n          <label for=\"csoForm__${field.id}\" class=\"cso-form__field-label ${field.required ? 'required' : ''}\">\n            ${field.label}:\n          <\/label>\n          ${field.textarea\n      ? `<textarea id=\"csoForm__${field.id}\" name=\"${field.name}\" class=\"cso-form__field-textarea\" ${field.required ? 'required' : ''} ${field.placeholder ? 'placeholder=\"' + field.placeholder + '\"' : ''}><\/textarea>`\n      : `<input type=\"${field.type}\" id=\"csoForm__${field.id}\" name=\"${field.name}\" class=\"cso-form__field-input\" ${field.required ? 'required' : ''} ${field.placeholder ? 'placeholder=\"' + field.placeholder + '\"' : ''} \/>`}\n        <\/div>\n      `).join('');\n\n    return `\n        <div class=\"custom-modal\" id=\"customModal\">\n          <div class=\"custom-modal__overlay\" id=\"customModal__overlay\">\n            <div class=\"custom-modal__container\" id=\"customModal__container\">\n              <div class=\"custom-modal__header\">\n                <h2 class=\"custom-modal__title\">${modalTexts.title}<\/h2>\n                <button class=\"custom-modal__close-button\" id=\"customModal__closeButton\">${modalTexts.closeButton}<\/button>\n              <\/div>\n              <div class=\"custom-modal__content\" id=\"customModal__content\">\n                <form class=\"cso-form\" id=\"csoForm\">\n                  ${formFields}\n                  <button type=\"submit\" class=\"cso-form__submit-button\" id=\"csoForm__submitButton\">${modalTexts.submitButton}<\/button>\n                <\/form>\n              <\/div>\n              <div class=\"custom-modal__message\" id=\"customModal__message\" style=\"display: none;\"><\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      `;\n  }\n\n  function addModalToDOM() {\n    const modalHTML = generateModalHTML();\n    const div = document.createElement('div');\n    div.innerHTML = modalHTML;\n    body.appendChild(div.firstElementChild);\n\n    const modalOverlay = document.getElementById('customModal__overlay');\n    const modalContainer = document.getElementById('customModal__container');\n    const closeButton = document.getElementById('customModal__closeButton');\n    const form = document.getElementById('csoForm');\n    const content = document.getElementById('customModal__content');\n    const messageBox = document.getElementById('customModal__message');\n    const submitButton = document.getElementById('csoForm__submitButton');\n    \n    const closeModal = () => {\n      modalOverlay.classList.remove('active');\n      body.classList.remove('body-lock');\n      modalContainer.classList.remove('active');\n      setTimeout(() => document.getElementById('customModal').remove(), 300);\n    };\n\n    closeButton.addEventListener('click', closeModal);\n    modalOverlay.addEventListener('click', (event) => {\n      if (event.target === modalOverlay) {\n        closeModal();\n      }\n    });\n\n    form.addEventListener('submit', function(event) {\n      event.preventDefault();\n\n      const formData = new FormData(form);\n      const formattedData = {};\n      formData.forEach((value, key) => {\n        formattedData[key] = value;\n      });\n\n      const submissionData = {\n        form_submission: {\n          form_data: formattedData,\n          form_name: 'cso_registration',\n          source: 'https:\/\/xometry.hk\/',\n        },\n      };\n      \n      form.querySelectorAll('input, textarea, button').forEach(field => field.disabled = true);\n      submitButton.innerHTML = `<span class=\"spinner\"><\/span> ${modalTexts.submitButton}`;\n      submitButton.disabled = true;\n      \n      fetch('https:\/\/api.xometry.asia\/v2\/services\/form_submissions', {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application\/json',\n        },\n        body: JSON.stringify(submissionData),\n      })\n        .then((response) => {\n          if (!response.ok) {\n            throw new Error('Network response was not ok');\n          }\n          return response.json();\n        })\n        .then(() => {\n          content.style.display = 'none';\n          messageBox.style.display = 'block';\n          messageBox.className = 'custom-modal__message custom-modal__message--success';\n          messageBox.textContent = modalTexts.successMessage;\n        })\n        .catch(() => {\n          content.style.display = 'none';\n          messageBox.style.display = 'block';\n          messageBox.className = 'custom-modal__message custom-modal__message--error';\n          messageBox.textContent = modalTexts.errorMessage;\n        })\n        .finally(() => {\n          form.querySelectorAll('input, textarea, button').forEach(field => field.disabled = false);\n          submitButton.innerHTML = modalTexts.submitButton;\n          submitButton.disabled = false;\n        });\n    });\n\n    setTimeout(() => modalContainer.classList.add('active'), 10);\n  }\n  \n  document.querySelector('a[href=\"#join-us-modal-open\"]').addEventListener('click', function(event) {\n    event.preventDefault();\n    addModalToDOM();\n    const modalOverlay = document.getElementById('customModal__overlay');\n    modalOverlay.classList.add('active');\n    body.classList.add('body-lock');\n  });\n});\n*\/\n<\/script>\n\n\n\n<style>\n\/* TEMPORARILY DISABLED\n.custom-modal__overlay {\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background-color: rgba(0, 0, 0, 0.5);\n    display: flex;\n    justify-content: center;\n    align-items: flex-start;\n    overflow-y: auto;\n    padding: 50px 0;\n    opacity: 0;\n    visibility: hidden;\n    transition: opacity 0.3s ease, visibility 0.3s ease;\n    z-index: 10000;\n}\n\n.custom-modal__overlay.active {\n    opacity: 1;\n    visibility: visible;\n}\n\n.custom-modal__container {\n    background: #fff;\n    margin: 0 auto;\n    max-width: 500px;\n    width: 100%;\n    padding: 20px;\n    border-radius: 8px;\n    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n    transform: translateY(-100px);\n    opacity: 0;\n    transition: opacity 0.3s ease, transform 0.3s ease;\n}\n\n.custom-modal__container.active {\n    opacity: 1;\n    transform: translateY(0);\n}\n\n.custom-modal__header {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    margin-bottom: 20px;\n    padding-bottom: 15px;\n    border-bottom: 1px solid #ddd;\n}\n\n.custom-modal__title {\n    margin: 0;\n    font-size: 18px;\n    font-weight: bold;\n}\n\n.custom-modal__close-button {\n    background: none;\n    border: none;\n    font-size: 24px;\n    color: #333;\n    cursor: pointer;\n}\n\n.custom-modal__close-button:hover {\n    color: #0073aa;\n}\n\n.cso-form__field {\n    margin-bottom: 15px;\n    position: relative;\n}\n\n.cso-form__field-label {\n    display: block;\n    margin-bottom: 5px;\n    font-weight: bold;\n}\n\n.cso-form__field-label.required::after {\n    content: ' *';\n    color: red;\n    margin-left: 5px;\n}\n\n.cso-form__field-input,\n.cso-form__field-textarea {\n    width: 100%;\n    padding: 8px;\n    font-size: 14px;\n    border: 1px solid #ccc;\n    border-radius: 4px;\n}\n\n.cso-form__submit-button {\n    display: block;\n    width: 100%;\n    padding: 10px;\n    background: #0073aa;\n    color: #fff;\n    border: none;\n    border-radius: 4px;\n    font-size: 16px;\n    cursor: pointer;\n    text-align: center;\n}\n\n.cso-form__submit-button:hover {\n    background: #005885;\n}\n\n.custom-modal__message {\n    text-align: center;\n    font-size: 16px;\n    margin: 20px 0;\n}\n\n.custom-modal__message--success {\n    color: green;\n}\n\n.custom-modal__message--error {\n    color: red;\n}\n\n.body-lock {\n    overflow: hidden;\n    height: 100%;\n}\n\n.spinner {\n    display: inline-block;\n    width: 16px;\n    height: 16px;\n    border: 2px solid #fff;\n    border-radius: 50%;\n    border-top-color: transparent;\n    animation: spin 1s linear infinite;\n    margin-right: 8px;\n    vertical-align: middle;\n}\n\n@keyframes spin {\n    to {\n        transform: rotate(360deg);\n    }\n}\n*\/\n<\/style>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":14,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-66301","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.1 (Yoast SEO v24.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Join us to to expand our manufacturing business | Xometry Asia<\/title>\n<meta name=\"description\" content=\"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Join us to to expand our manufacturing business | Xometry Asia\" \/>\n<meta property=\"og:description\" content=\"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/\" \/>\n<meta property=\"og:site_name\" content=\"Xometry HongKong\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-17T09:49:49+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Join us to to expand our manufacturing business\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/\",\"url\":\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/\",\"name\":\"Join us to to expand our manufacturing business | Xometry Asia\",\"isPartOf\":{\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#website\"},\"datePublished\":\"2024-12-13T07:36:33+00:00\",\"dateModified\":\"2025-01-17T09:49:49+00:00\",\"description\":\"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.\",\"breadcrumb\":{\"@id\":\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/staging-wp.xometry.hk\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Join us to to expand our manufacturing business\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#website\",\"url\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/\",\"name\":\"Xometry\u64c7\u51aa\u79d1\u6280\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#organization\",\"name\":\"Xometry\u64c7\u51aa\u79d1\u6280\",\"url\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/staging-wp.xometry.hk\/wp-content\/uploads\/sites\/5\/2020\/04\/xometry-logo.svg\",\"contentUrl\":\"https:\/\/staging-wp.xometry.hk\/wp-content\/uploads\/sites\/5\/2020\/04\/xometry-logo.svg\",\"caption\":\"Xometry\u64c7\u51aa\u79d1\u6280\"},\"image\":{\"@id\":\"https:\/\/staging-wp.xometry.hk\/zh-hant\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Join us to to expand our manufacturing business | Xometry Asia","description":"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Join us to to expand our manufacturing business | Xometry Asia","og_description":"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.","og_url":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/","og_site_name":"Xometry HongKong","article_modified_time":"2025-01-17T09:49:49+00:00","twitter_card":"summary_large_image","twitter_title":"Join us to to expand our manufacturing business","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/","url":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/","name":"Join us to to expand our manufacturing business | Xometry Asia","isPartOf":{"@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#website"},"datePublished":"2024-12-13T07:36:33+00:00","dateModified":"2025-01-17T09:49:49+00:00","description":"Our goal is to establish an extensive sales partner network, enhance brand influence, and jointly achieve sustained business growth.","breadcrumb":{"@id":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/staging-wp.xometry.hk\/en\/join-us-to-to-expand-our-manufacturing-business\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging-wp.xometry.hk\/en\/"},{"@type":"ListItem","position":2,"name":"Join us to to expand our manufacturing business"}]},{"@type":"WebSite","@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#website","url":"https:\/\/staging-wp.xometry.hk\/zh-hant\/","name":"Xometry\u64c7\u51aa\u79d1\u6280","description":"","publisher":{"@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging-wp.xometry.hk\/zh-hant\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#organization","name":"Xometry\u64c7\u51aa\u79d1\u6280","url":"https:\/\/staging-wp.xometry.hk\/zh-hant\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#\/schema\/logo\/image\/","url":"https:\/\/staging-wp.xometry.hk\/wp-content\/uploads\/sites\/5\/2020\/04\/xometry-logo.svg","contentUrl":"https:\/\/staging-wp.xometry.hk\/wp-content\/uploads\/sites\/5\/2020\/04\/xometry-logo.svg","caption":"Xometry\u64c7\u51aa\u79d1\u6280"},"image":{"@id":"https:\/\/staging-wp.xometry.hk\/zh-hant\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/pages\/66301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/comments?post=66301"}],"version-history":[{"count":16,"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/pages\/66301\/revisions"}],"predecessor-version":[{"id":66559,"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/pages\/66301\/revisions\/66559"}],"wp:attachment":[{"href":"https:\/\/staging-wp.xometry.hk\/en\/wp-json\/wp\/v2\/media?parent=66301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}