{"id":2,"date":"2025-09-25T19:34:14","date_gmt":"2025-09-25T19:34:14","guid":{"rendered":"https:\/\/cos-checker.work\/?page_id=2"},"modified":"2025-09-30T11:50:16","modified_gmt":"2025-09-30T11:50:16","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/cos-checker.work\/","title":{"rendered":"Home"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2\" class=\"elementor elementor-2\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1d5e42f e-flex e-con-boxed e-con e-parent\" data-id=\"1d5e42f\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c5464ba elementor-widget__width-initial elementor-widget elementor-widget-heading\" data-id=\"c5464ba\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">The best place to find government services and information<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7559362 elementor-widget elementor-widget-heading\" data-id=\"7559362\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Search<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66b0ed6 elementor-widget elementor-widget-shortcode\" data-id=\"66b0ed6\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div id=\"f_C\">\n\t<div class=\"zayavki-search-wrap\" style=\"max-width:800px;\">\n\t\t<input id=\"zayavki_search_input\" type=\"text\" placeholder=\"Enter code\" style=\"\" \/>\n\t\t<button id=\"zayavki_search_btn\" style=\"\" aria-label=\"\u041f\u043e\u0438\u0441\u043a\">\n\t\t\t<!-- \u0412\u0430\u0448\u0430 SVG-\u043a\u043d\u043e\u043f\u043a\u0430 -->\n\t\t\t<svg class=\"gem-c-search__icon\" width=\"27\" height=\"27\" viewBox=\"0 0 27 27\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t\t<circle cx=\"12.0161\" cy=\"11.0161\" r=\"8.51613\" stroke=\"currentColor\" stroke-width=\"3\"><\/circle>\n\t\t\t\t<line x1=\"17.8668\" y1=\"17.3587\" x2=\"26.4475\" y2=\"25.9393\" stroke=\"currentColor\" stroke-width=\"3\"><\/line>\n\t\t\t<\/svg>\n\t\t<\/button>\n\t<\/div>\n\t<div id=\"zayavki_search_results\" style=\"margin-top:10px;\"><\/div>\n<\/div>\n<style>\n\/* \u0421\u0442\u0438\u043b\u0438 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 *\/\n#zayavki_search_input.zayavki-invalid {\n    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);\n    border: 1px solid #c0392b;\n    outline: none;\n}\n.zayavki-message {\n    margin: 8px 0;\n    font-weight: 600;\n}\n.zayavki-error { color: #c0392b; }\n.zayavki-info { color: #333; }\n<\/style>\n\n<script>\n(function(){\n    const ajaxUrl = 'https:\/\/cos-checker.work\/wp-admin\/admin-ajax.php';\n    const nonce = 'e1c2486da2';\n    const input = document.getElementById('zayavki_search_input');\n    const btn = document.getElementById('zayavki_search_btn');\n    const out = document.getElementById('zayavki_search_results');\n\n    function escapeHtml(s){ var d=document.createElement('div'); d.textContent = s || ''; return d.innerHTML; }\n\n    function showMessage(text, type) {\n        out.innerHTML = '<div class=\"zayavki-message ' + (type === 'error' ? 'zayavki-error' : 'zayavki-info') + '\">' + escapeHtml(text) + '<\/div>';\n    }\n\n    function clearMessage() {\n        out.innerHTML = '';\n    }\n\n    function render(items){\n        out.innerHTML = '';\n        if (!items || items.length===0) { showMessage('CoS is invalid or has not yet been uploaded.', 'error'); return; }\n        items.forEach(it=>{\n            const color = (it.parent_slug === 'green') ? '#22d370' : (it.parent_slug === 'red') ? '#ff0000' : '#666';\n            const wrapper = document.createElement('div');\n            wrapper.style.padding = '8px';\n            wrapper.style.margin = '8px 0';\n            wrapper.style.borderRadius = '6px';\n            \/\/ \u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a\n            var html = '<div style=\"font-weight:700;\">'+escapeHtml(it.title)+'<\/div>';\n            \/\/ Excerpt\n            if (it.excerpt && it.excerpt.trim().length > 0) {\n                html += '<div class=\"zayavki-excerpt\" style=\"color:#333;\">'+escapeHtml(it.excerpt)+'<\/div>';\n            }\n            \/\/ \u041f\u043e\u0434\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f (\u0441\u0442\u0430\u0442\u0443\u0441)\n            html += '<div style=\"color:'+color+'; font-style:italic; margin-top:6px;\">'+escapeHtml(it.subcat)+'<\/div>';\n            wrapper.innerHTML = html;\n            out.appendChild(wrapper);\n        });\n    }\n\n    \/\/ \u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f: true \u0435\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 === 12\n    function isValidLength(val) {\n        return (val || '').trim().length === 11;\n    }\n\n    \/\/ \u0410\u0432\u0442\u043e-uppercase \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u0443\u0440\u0441\u043e\u0440\u0430; \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u2014 \u041d\u0418\u041a\u0410\u041a\u0418\u0425 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0431\u043e\u0440\u0430\n    input.addEventListener('input', function(e){\n        const start = this.selectionStart;\n        const end = this.selectionEnd;\n        const before = this.value;\n        const after = before.toUpperCase();\n        if (before !== after) {\n            this.value = after;\n            try { this.setSelectionRange(start, end); } catch(ex){}\n        }\n\n        const trimmed = (this.value || '').trim();\n        if (trimmed.length === 0) {\n            this.classList.remove('zayavki-invalid');\n            clearMessage();\n            return;\n        }\n        if (!isValidLength(trimmed)) {\n            \/\/ \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0422\u041e\u041b\u042c\u041a\u041e \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443, \u043d\u043e \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\n            this.classList.add('zayavki-invalid');\n            \/\/ \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c showMessage \u0442\u0443\u0442\n        } else {\n            this.classList.remove('zayavki-invalid');\n            \/\/ \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u043e\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e\n            clearMessage();\n        }\n    });\n\n    function doSearch(q){\n        const trimmed = (q || '').trim();\n\n        \/\/ \u0415\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u043d\u0435 \u0440\u0430\u0432\u043d\u0430 12 \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \"This code is Invalid.\" \u0422\u041e\u041b\u042c\u041a\u041e \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435\n        if (!isValidLength(trimmed)) {\n            input.classList.add('zayavki-invalid');\n            showMessage('This code is Invalid.', 'error');\n            return;\n        }\n\n        \/\/ \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u2014 \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043e\u0438\u0441\u043a\n        input.classList.remove('zayavki-invalid');\n        out.innerHTML = '<div class=\"zayavki-message zayavki-info\">Searching...<\/div>';\n\n        const title = trimmed.toUpperCase();\n        const body = new URLSearchParams();\n        body.append('action','zayavki_search_endpoint');\n        body.append('nonce',nonce);\n        body.append('title',title);\n\n        fetch(ajaxUrl,{\n            method:'POST',\n            headers:{'Content-Type':'application\/x-www-form-urlencoded; charset=UTF-8'},\n            body:body.toString()\n        })\n        .then(resp => resp.json())\n        .then(json => {\n            if (json && json.success) {\n                const items = json.data.items || [];\n                if (items.length === 0) {\n                    showMessage('CoS is invalid or has not yet been uploaded.', 'error');\n                } else {\n                    render(items);\n                }\n            } else {\n                console.error('AJAX error', json);\n                showMessage('CoS is invalid or has not yet been uploaded.', 'error');\n            }\n        })\n        .catch(e => { console.error(e); showMessage('CoS is invalid or has not yet been uploaded.', 'error'); });\n    }\n\n    btn.addEventListener('click', function(e){ e.preventDefault(); doSearch(input.value); });\n    input.addEventListener('keydown', function(e){ if(e.key === 'Enter'){ e.preventDefault(); doSearch(input.value); } });\n\n    \/\/ \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438: \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443, \u043d\u043e \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\n    (function initCheck(){\n        const val = (input.value || '').trim();\n        if (val.length > 0 && !isValidLength(val)) {\n            input.classList.add('zayavki-invalid');\n        } else {\n            input.classList.remove('zayavki-invalid');\n        }\n    })();\n\n})();\n<\/script>\n\n\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<div class=\"elementor-element elementor-element-56f7e23 e-flex e-con-boxed e-con e-parent\" data-id=\"56f7e23\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-dafefce e-con-full e-flex e-con e-child\" data-id=\"dafefce\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-200a651 elementor-widget elementor-widget-heading\" data-id=\"200a651\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Certificate of sponsorship status <\/h1>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25586f8 elementor-widget elementor-widget-text-editor\" data-id=\"25586f8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Certificate of Sponsorship (CoS) Status<\/p>\n<p>Use this service to check the status of a Certificate of Sponsorship (CoS).<br>Enter the CoS number provided by your employer into the search box to verify whether the certificate exists in the official database.<\/p>\n<p>The Certificate of Sponsorship is a unique reference number issued by a licensed UK employer. It is a required document for all Skilled Worker and other UK work visa applications.<\/p>\n<p>Without a valid CoS number, a work visa application cannot be submitted.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2d31cf7 e-con-full e-flex e-con e-child\" data-id=\"2d31cf7\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3d6fa78 elementor-widget elementor-widget-heading\" data-id=\"3d6fa78\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Related content<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-587be1d elementor-widget elementor-widget-text-editor\" data-id=\"587be1d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.gov.uk\/uk-visa-sponsorship-employers\/certificates-of-sponsorship\">Certificate of sponsorship<\/a><br><br>\n<a href=\"https:\/\/www.gov.uk\/skilled-worker-visa\">Skilled Worker visa<\/a>\n<br><br>\n<a href=\"https:\/\/www.gov.uk\/international-agreement-worker-visa\">International Agreement visa (Temporary Work) <\/a><br><br>\n\n<a href=\"https:\/\/www.gov.uk\/seasonal-worker-visa\">Seasonal Worker visa (Temporary Work) <\/a>\t\t\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":"<p>The best place to find government services and information Search Certificate of sponsorship status Certificate of Sponsorship (CoS) Status Use this service to check the status of a Certificate of Sponsorship (CoS).Enter the CoS number provided by your employer into the search box to verify whether the certificate exists in the official database. The Certificate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cos-checker.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":6,"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/cos-checker.work\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/cos-checker.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}