¡Bienvenido a Recursos Efectivos, la mejor plataforma para encontrar oportunidades laborales en El Salvador y Guatemala! Aquí conectamos el talento con las mejores empresas de la región, facilitando tu camino hacia el empleo ideal. Ya seas un profesional con experiencia o estés dando tus primeros pasos en el mundo laboral, en Recursos Efectivos encontrarás ofertas actualizadas, herramientas útiles y el apoyo que necesitas para avanzar en tu carrera.
userAgent: data.userAgent, maxScroll: Math.round(maxScroll * 100), clicks: extraClicks.length ? extraClicks : data.clicks, duration: Math.round((Date.now() - data.startTime) / 1000) }; console.log("🚀 Sending visit/click with:", payload); fetch('/CMS/TrackVisit', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }).then(res => { if (!res.ok) { console.warn('❌ Failed to track'); } else { console.log('✅ Sent successfully'); } }).catch(err => { console.error('🚨 Error:', err); }); } document.addEventListener('click', function (e) { const el = e.target.closest('a, button, div, p, h1, h2, h3, h4, h5, h6'); if (el) { const tag = el.tagName; const text = el.innerText.trim().substring(0, 50); const href = el.getAttribute('href') || null; console.log("🖱️ Clicked:", tag, text); const clickInfo = { tag, text, href }; data.clicks.push(clickInfo); sendVisit([clickInfo]); if (tag === 'A') { e.preventDefault(); const destination = href; if (destination && destination !== '#') { setTimeout(() => { window.location.href = destination; }, 200); } } } }); document.addEventListener('DOMContentLoaded', function () { setTimeout(function () { if (!visitSent) { console.log("🚀 Auto-sending visit after page load"); sendVisit(); visitSent = true; } }, 1000); }); window.addEventListener('beforeunload', function () { sendVisit(); }); })();