{"id":925,"date":"2023-06-29T15:26:32","date_gmt":"2023-06-29T15:26:32","guid":{"rendered":"https:\/\/servimostemporales.com\/?page_id=925"},"modified":"2023-09-03T01:20:23","modified_gmt":"2023-09-03T01:20:23","slug":"colaboradores","status":"publish","type":"page","link":"https:\/\/servimostemporales.com\/index.php\/colaboradores\/","title":{"rendered":"Colaboradores"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"925\" class=\"elementor elementor-925\">\n\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-755c183 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con\" data-id=\"755c183\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-ef4f28a e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con\" data-id=\"ef4f28a\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9d8dd98 elementor-widget elementor-widget-heading\" data-id=\"9d8dd98\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.15.0 - 20-08-2023 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">Dig\u00edta el n\u00famero de tu c\u00e9dula y clic en Generar Certificado Laboral. El certificado se descargar\u00e1 en tu computadora en formato PDF<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5698f04 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con\" data-id=\"5698f04\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-61e96cf elementor-widget elementor-widget-image\" data-id=\"61e96cf\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.15.0 - 20-08-2023 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/servimostemporales.com\/wp-content\/uploads\/2023\/09\/undraw_Certificate_re_yadi-150x150.png\" class=\"attachment-thumbnail size-thumbnail wp-image-1069\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\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<div class=\"elementor-element elementor-element-32270f3 e-con-full e-flex wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con\" data-id=\"32270f3\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;full&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3286d24 elementor-widget elementor-widget-html\" data-id=\"3286d24\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\r\n    <script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n    <script>\r\n        function generarCertificado() {\r\n            \/\/ Obtener el valor del campo de c\u00e9dula\r\n            var cedula = document.getElementById(\"cedula\").value;\r\n\r\n            \/\/ Realizar la solicitud GET utilizando fetch\r\n            fetch('https:\/\/servimostemporales.com\/certificados.php?cedula=' + cedula)\r\n                .then(function(response) {\r\n                    return response.blob();\r\n                })\r\n                .then(function(blob) {\r\n                    \/\/ Crea un objeto Blob a partir de la respuesta\r\n                    if (blob.type === \"application\/pdf\") {\r\n                        \/\/ Si la respuesta es un PDF, crea un enlace de descarga\r\n                        var url = window.URL.createObjectURL(blob);\r\n                        var link = document.createElement(\"a\");\r\n                        link.href = url;\r\n                        link.download = \"certificado.pdf\";\r\n                        link.style.display = \"none\";\r\n                        document.body.appendChild(link);\r\n                        link.click();\r\n                        document.body.removeChild(link); \/\/ Limpia el enlace despu\u00e9s de la descarga\r\n                        window.URL.revokeObjectURL(url);\r\n                    } else {\r\n                        \/\/ Si la respuesta no es un PDF, muestra un mensaje de alerta\r\n                        alert(\"No se han encontrado informaci\u00f3n con la cedula digitada\");\r\n                        document.getElementById(\"respuesta\").innerHTML = \"No se han encontrado informaci\u00f3n con la cedula digitada\";\r\n                    }\r\n                })\r\n                .catch(function(error) {\r\n                    console.error('Error:', error);\r\n                });\r\n                \r\n                \/*.then(function(data) {\r\n                    \/\/ Procesar la respuesta aqu\u00ed\r\n                    if(data === \"No se encontraron resultados\"){\r\n                        alert(data);\r\n                        document.getElementById(\"respuesta\").innerHTML = data;\r\n                    }else{\r\n                         document.getElementById(\"respuesta\").innerHTML = data;\r\n                        var blob = new Blob([data], { type: \"application\/pdf\" });\r\n                        var link = document.createElement(\"a\");\r\n                        link.href = window.URL.createObjectURL(data);\r\n                        link.download = \"certificado.pdf\";\r\n                        link.click();\r\n                        \r\n                    }\r\n                    \r\n                })\r\n                .catch(function(error) {\r\n                    console.error('Error:', error);\r\n                });*\/\r\n        }\r\n    <\/script>\r\n    \r\n     <center>\r\n        <form>\r\n            <label for=\"cedula\">C\u00e9dula:<\/label>\r\n            <input type=\"text\" id=\"cedula\" name=\"cedula\" required>\r\n            <br>\r\n            <br>\r\n            <button type=\"button\" onclick=\"generarCertificado()\">Generar Certificado laboral<\/button>\r\n        <\/form>\r\n        <div id=\"respuesta\"><\/div>\r\n    <\/center>\r\n    \r\n  \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Dig\u00edta el n\u00famero de tu c\u00e9dula y clic en Generar Certificado Laboral. El certificado se descargar\u00e1 en tu computadora en formato PDF C\u00e9dula: Generar Certificado laboral<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","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":"","footnotes":""},"_links":{"self":[{"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/pages\/925"}],"collection":[{"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":105,"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/pages\/925\/revisions"}],"predecessor-version":[{"id":1162,"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/pages\/925\/revisions\/1162"}],"wp:attachment":[{"href":"https:\/\/servimostemporales.com\/index.php\/wp-json\/wp\/v2\/media?parent=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}