{"id":16460,"date":"2026-04-19T10:18:33","date_gmt":"2026-04-19T03:18:33","guid":{"rendered":"https:\/\/creative.co.th\/?page_id=16460"},"modified":"2026-05-09T09:50:58","modified_gmt":"2026-05-09T02:50:58","slug":"domain","status":"publish","type":"page","link":"https:\/\/creative.co.th\/en\/domain\/","title":{"rendered":"Domain"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"16460\" class=\"elementor elementor-16460\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-40ce9ed e-flex e-con-boxed e-con e-parent\" data-id=\"40ce9ed\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-9087763 e-con-full e-flex e-con e-child\" data-id=\"9087763\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-edd8921 elementor-widget elementor-widget-shortcode\" data-id=\"edd8921\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div class=\"dc-wrap\" style=\"--dc-btn-bg:#1a1a1a;--dc-btn-color:#ffffff;--dc-btn-r:8px;--dc-input-r:8px;--dc-box-bg:#f8f9fc;--dc-box-border:#e2e6f0;--dc-box-r:12px;--dc-max-w:750px;--dc-avail-bg:#ecfdf5;--dc-avail-c:#065f46;--dc-taken-bg:#fef2f2;--dc-taken-c:#991b1b;--dc-font:&quot;Noto Sans Thai&quot;, &quot;Prompt&quot;, -apple-system, sans-serif\">\n        <div class=\"dc-header\">\n            <h2 class=\"dc-title\">\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e42\u0e14\u0e40\u0e21\u0e19\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e48\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e38\u0e13<\/h2>\n            <p class=\"dc-subtitle\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e42\u0e14\u0e40\u0e21\u0e19\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e22\u0e31\u0e07\u0e27\u0e48\u0e32\u0e07\u0e2d\u0e22\u0e39\u0e48\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/p>\n        <\/div>\n        <div class=\"dc-search-box\">\n            <div class=\"dc-input-row\">\n                <input type=\"text\" id=\"dc-domain\" class=\"dc-input\"\n                       placeholder=\"\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19 \u0e40\u0e0a\u0e48\u0e19 mybusiness\" autocomplete=\"off\">\n                <select id=\"dc-tld\" class=\"dc-select\"><option value=\".com\">.com<\/option><option value=\".net\">.net<\/option><option value=\".org\">.org<\/option><option value=\".co\">.co<\/option><option value=\".io\">.io<\/option><option value=\".co.th\">.co.th<\/option><option value=\".in.th\">.in.th<\/option><option value=\".info\">.info<\/option><option value=\".biz\">.biz<\/option><option value=\".dev\">.dev<\/option><option value=\".app\">.app<\/option><option value=\".me\">.me<\/option><\/select>\n                <button type=\"button\" id=\"dc-btn\" class=\"dc-btn\">\n                    <span class=\"dc-btn-text\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a<\/span>\n                    <span class=\"dc-btn-loading\">\n                        <svg class=\"dc-spinner\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"3\" fill=\"none\" stroke-dasharray=\"31 31\" stroke-linecap=\"round\"><animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 12 12\" to=\"360 12 12\" dur=\".8s\" repeatCount=\"indefinite\"\/><\/circle><\/svg>\n                    <\/span>\n                <\/button>\n            <\/div>\n        <\/div>\n        <div id=\"dc-result\" class=\"dc-result\" style=\"display:none;\"><\/div>\n                <div id=\"dc-bulk\" class=\"dc-bulk\" style=\"display:none;\">\n            <h3 class=\"dc-bulk-title\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25\u0e2d\u0e37\u0e48\u0e19\u0e14\u0e49\u0e27\u0e22<\/h3>\n            <div id=\"dc-bulk-list\" class=\"dc-bulk-list\"><\/div>\n        <\/div>\n            <\/div>\n    <script>\n    (function(){\n        var ajaxUrl = \"https:\/\/creative.co.th\/wp-admin\/admin-ajax.php\";\n        var nonce   = \"e0620eb2ee\";\n        var showBulk = true;\n        var allTlds  = [\".com\",\".net\",\".org\",\".co\",\".io\",\".co.th\",\".in.th\",\".info\",\".biz\",\".dev\",\".app\",\".me\"];\n\n        var domainEl = document.getElementById('dc-domain');\n        var tldEl    = document.getElementById('dc-tld');\n        var btnEl    = document.getElementById('dc-btn');\n        var resultEl = document.getElementById('dc-result');\n        var bulkEl   = document.getElementById('dc-bulk');\n        var bulkList = document.getElementById('dc-bulk-list');\n\n        function setLoading(on) {\n            btnEl.disabled = on;\n            if (on) { btnEl.classList.add('dc-loading'); }\n            else    { btnEl.classList.remove('dc-loading'); }\n        }\n\n        function esc(s) {\n            var d = document.createElement('div');\n            d.appendChild(document.createTextNode(s));\n            return d.innerHTML;\n        }\n\n        function cleanDomain(d) {\n            d = d.replace(\/^(https?:\\\/\\\/)?(www\\.)?\/i, '').replace(\/\\\/.*$\/, '').trim();\n            if (d.indexOf('.') !== -1) d = d.split('.')[0];\n            return d;\n        }\n\n        function doCheck() {\n            var domain = cleanDomain(domainEl.value);\n            var tld = tldEl.value;\n\n            if (!domain || domain.length < 2) {\n                showMsg('\u26a0\ufe0f', '\u0e01\u0e23\u0e38\u0e13\u0e32\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22 2 \u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23', 'dc-error');\n                return;\n            }\n            if (!\/^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$\/i.test(domain)) {\n                showMsg('\u26a0\ufe0f', '\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49\u0e40\u0e09\u0e1e\u0e32\u0e30 a-z, 0-9 \u0e41\u0e25\u0e30 - \u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19', 'dc-error');\n                return;\n            }\n\n            setLoading(true);\n            ajax(domain + tld, function(res) {\n                setLoading(false);\n                if (res.success) {\n                    if (res.data.available) {\n                        showMsg('\u2705', '<strong>' + esc(domain + tld) + '<\/strong> \u0e27\u0e48\u0e32\u0e07\u0e2d\u0e22\u0e39\u0e48!<br><small>\u0e42\u0e14\u0e40\u0e21\u0e19\u0e19\u0e35\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e08\u0e14\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22<\/small>', 'dc-available');\n                    } else {\n                        showMsg('\u274c', '<strong>' + esc(domain + tld) + '<\/strong> \u0e16\u0e39\u0e01\u0e08\u0e14\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27<br><small>\u0e25\u0e2d\u0e07\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e2b\u0e23\u0e37\u0e2d\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25\u0e2d\u0e37\u0e48\u0e19<\/small>', 'dc-taken');\n                    }\n                } else {\n                    showMsg('\u26a0\ufe0f', res.data.message || '\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14', 'dc-error');\n                }\n                if (showBulk) doBulk(domain, tld);\n            });\n        }\n\n        function showMsg(icon, html, cls) {\n            resultEl.style.display = 'flex';\n            resultEl.className = 'dc-result ' + cls;\n            resultEl.innerHTML = '<span class=\"dc-icon\">' + icon + '<\/span><div class=\"dc-result-info\">' + html + '<\/div>';\n        }\n\n        function doBulk(domain, currentTld) {\n            var tlds = allTlds.filter(function(t){ return t !== currentTld; });\n            if (!bulkEl || !bulkList) return;\n            bulkEl.style.display = 'block';\n            bulkList.innerHTML = '';\n\n            tlds.forEach(function(tld, i) {\n                var id = 'dc-b-' + tld.replace(\/\\.\/g, '_');\n                var item = document.createElement('div');\n                item.className = 'dc-bulk-item dc-checking';\n                item.id = id;\n                item.innerHTML = '<span class=\"dc-b-domain\">' + esc(domain + tld) + '<\/span><span class=\"dc-b-status\">\u0e01\u0e33\u0e25\u0e31\u0e07\u0e15\u0e23\u0e27\u0e08...<\/span>';\n                bulkList.appendChild(item);\n\n                setTimeout(function(){\n                    ajax(domain + tld, function(r){\n                        var el = document.getElementById(id);\n                        if (!el) return;\n                        if (r.success) {\n                            if (r.data.available) {\n                                el.className = 'dc-bulk-item dc-b-available';\n                                el.querySelector('.dc-b-status').textContent = '\u2705 \u0e27\u0e48\u0e32\u0e07';\n                            } else {\n                                el.className = 'dc-bulk-item dc-b-taken';\n                                el.querySelector('.dc-b-status').textContent = '\u274c \u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e07';\n                            }\n                        } else {\n                            el.className = 'dc-bulk-item dc-b-error';\n                            el.querySelector('.dc-b-status').textContent = '\u26a0\ufe0f \u0e44\u0e21\u0e48\u0e17\u0e23\u0e32\u0e1a';\n                        }\n                    });\n                }, i * 300);\n            });\n        }\n\n        function ajax(domain, cb) {\n            var xhr = new XMLHttpRequest();\n            xhr.open('POST', ajaxUrl, true);\n            xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\n            xhr.onreadystatechange = function(){\n                if (xhr.readyState === 4) {\n                    try { cb(JSON.parse(xhr.responseText)); }\n                    catch(e) { cb({success:false, data:{message:'\u0e40\u0e01\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14'}}); }\n                }\n            };\n            xhr.send('action=dc_check_domain&domain=' + encodeURIComponent(domain) + '&nonce=' + nonce);\n        }\n\n        btnEl.addEventListener('click', doCheck);\n        domainEl.addEventListener('keydown', function(e){ if(e.key==='Enter') doCheck(); });\n    })();\n    <\/script>\n    <style>\n    .dc-wrap{max-width:var(--dc-max-w,700px)!important;margin:2em auto!important;font-family:var(--dc-font)!important;box-sizing:border-box!important}\n    .dc-wrap *,.dc-wrap *::before,.dc-wrap *::after{box-sizing:border-box!important}\n    .dc-header{text-align:center!important;margin-bottom:1.5em!important}\n    .dc-title{font-size:1.6em!important;font-weight:700!important;color:#1a1a2e!important;margin:0 0 .3em!important;padding:0!important;line-height:1.3!important}\n    .dc-subtitle{color:#666!important;font-size:.95em!important;margin:0!important;padding:0!important}\n    .dc-search-box{background:var(--dc-box-bg)!important;border:2px solid var(--dc-box-border)!important;border-radius:var(--dc-box-r)!important;padding:1.2em!important;transition:border-color .2s!important}\n    .dc-search-box:focus-within{border-color:var(--dc-btn-bg)!important}\n\n    .dc-input-row{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;align-items:stretch!important;width:100%!important}\n\n    .dc-input{flex:1 1 auto!important;min-width:0!important;width:auto!important;padding:10px 14px!important;font-size:1em!important;border:1px solid #d0d5e0!important;border-radius:var(--dc-input-r)!important;outline:none!important;transition:border-color .2s!important;font-family:inherit!important;height:auto!important;line-height:1.4!important;margin:0!important;box-shadow:none!important;background:#fff!important;-webkit-appearance:none!important;appearance:none!important;display:block!important;float:none!important}\n    .dc-input:focus{border-color:var(--dc-btn-bg)!important}\n\n    .dc-select{flex:0 0 auto!important;width:auto!important;min-width:85px!important;padding:10px 8px!important;font-size:1em!important;border:1px solid #d0d5e0!important;border-radius:var(--dc-input-r)!important;background:#fff!important;cursor:pointer!important;font-family:inherit!important;height:auto!important;line-height:1.4!important;margin:0!important;box-shadow:none!important;-webkit-appearance:auto!important;appearance:auto!important;display:block!important;float:none!important}\n\n    .dc-btn{flex:0 0 auto!important;width:auto!important;padding:10px 24px!important;font-size:1em!important;font-weight:600!important;color:var(--dc-btn-color)!important;background:var(--dc-btn-bg)!important;border:none!important;border-radius:var(--dc-btn-r)!important;cursor:pointer!important;transition:opacity .2s,transform .1s!important;font-family:inherit!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.4!important;margin:0!important;box-shadow:none!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;float:none!important;-webkit-appearance:none!important;appearance:none!important}\n    .dc-btn:hover{opacity:.85!important}\n    .dc-btn:active{transform:scale(.97)!important}\n    .dc-btn:disabled{opacity:.6!important;cursor:wait!important}\n    .dc-btn-loading{display:none!important;align-items:center!important}\n    .dc-btn.dc-loading .dc-btn-text{display:none!important}\n    .dc-btn.dc-loading .dc-btn-loading{display:inline-flex!important}\n    .dc-spinner{animation:dc-spin .8s linear infinite!important}\n    @keyframes dc-spin{to{transform:rotate(360deg)}}\n\n    .dc-result{margin-top:1em!important;padding:1em 1.2em!important;border-radius:10px!important;display:flex!important;align-items:center!important;gap:.8em!important;animation:dcFadeIn .3s ease!important}\n    .dc-available{background:var(--dc-avail-bg)!important;border:1px solid rgba(0,0,0,.08)!important;color:var(--dc-avail-c)!important}\n    .dc-taken{background:var(--dc-taken-bg)!important;border:1px solid rgba(0,0,0,.08)!important;color:var(--dc-taken-c)!important}\n    .dc-error{background:#fffbeb!important;border:1px solid #fde68a!important;color:#92400e!important}\n    .dc-icon{font-size:1.5em!important;flex-shrink:0!important}\n    .dc-result-info strong{font-size:1.05em!important}\n    .dc-result-info small{opacity:.75!important;display:block!important;margin-top:2px!important}\n\n    .dc-bulk{margin-top:1.5em!important}\n    .dc-bulk-title{font-size:1em!important;font-weight:600!important;color:#444!important;margin:0 0 .8em!important}\n    .dc-bulk-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:.5em!important}\n    .dc-bulk-item{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:.6em .8em!important;border-radius:8px!important;font-size:.9em!important;transition:background .3s!important}\n    .dc-checking{background:#f3f4f6!important;color:#888!important}\n    .dc-b-available{background:var(--dc-avail-bg)!important;color:var(--dc-avail-c)!important}\n    .dc-b-taken{background:var(--dc-taken-bg)!important;color:var(--dc-taken-c)!important}\n    .dc-b-error{background:#f9fafb!important;color:#aaa!important}\n    .dc-b-domain{font-weight:500!important}\n\n    @keyframes dcFadeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}\n\n    @media(max-width:480px){\n        .dc-input-row{gap:4px!important}\n        .dc-input{padding:8px 10px!important;font-size:.9em!important}\n        .dc-select{min-width:70px!important;padding:8px 4px!important;font-size:.85em!important}\n        .dc-btn{padding:8px 14px!important;font-size:.85em!important}\n        .dc-bulk-list{grid-template-columns:1fr!important}\n    }\n    <\/style> <\/div>\n\t\t\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":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e42\u0e14\u0e40\u0e21\u0e19","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"class_list":["post-16460","page","type-page","status-publish","hentry"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/pages\/16460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/comments?post=16460"}],"version-history":[{"count":1,"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/pages\/16460\/revisions"}],"predecessor-version":[{"id":18177,"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/pages\/16460\/revisions\/18177"}],"wp:attachment":[{"href":"https:\/\/creative.co.th\/en\/wp-json\/wp\/v2\/media?parent=16460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}