For Job Seekers
For Employers
Job Postings
Loading current opportunities...
Don't see a job that fits? send us your resume and we'll notify you if something comes up!
Register with NES
document.addEventListener('DOMContentLoaded', () => { const targetUrl = 'https://www5.stafftrak.net/ApplyOnline_v3/JobList/NES'; // Using a CORS proxy to bypass browser restrictions for this demo const proxyUrl = 'https://corsproxy.io/?' + encodeURIComponent(targetUrl); const jobContainer = document.getElementById('job-list'); const loader = document.getElementById('loader'); async function fetchJobs() { try { const response = await fetch(proxyUrl); const html = await response.text(); const parser = new DOMParser(); const doc = parser.parseFromString(html, 'text/html'); // Note: StaffTrak usually puts data in a table. // We find all rows in the tbody. const rows = doc.querySelectorAll('table tr'); if (rows.length === 0) { loader.innerHTML = "No job postings found at this time."; return; } loader.style.display = 'none'; rows.forEach(row => { const cells = row.querySelectorAll('td'); if (cells.length < 2) return; // Skip header rows or empty // Data Extraction based on typical StaffTrak structure // Cell 0: ID and Title // Cell 1: City // Cell 2: Contact // Cell 3: Posted // Cell 4: Salary const rawTitle=cells[0].innerText.trim(); // Split ID from Title (e.g., "40700087 - Fluid Power" ) const idMatch=rawTitle.match(/^(\d+)\s*-\s*(.*)/); const jobId=idMatch ? idMatch[1] : 'N/A' ; const title=idMatch ? idMatch[2] : rawTitle; const city=cells[1] ? cells[1].innerText.trim() : 'Not specified' ; const contact=cells[2] ? cells[2].innerText.trim() : 'No contact' ; const posted=cells[3] ? cells[3].innerText.trim() : 'N/A' ; const salary=cells[4] ? cells[4].innerText.trim() : 'Contact for details' ; createJobCard({ jobId, title, city, contact, posted, salary }); }); } catch (error) { console.error("Error fetching jobs:", error); loader.innerHTML="Unable to load jobs. Please try again later." ; } } function createJobCard(data) { const card=document.createElement('div'); card.className='job-card' ; card.innerHTML=`
ID: ${data.jobId}
${data.title}
City:
${data.city}
Contact:
${data.contact}
Posted:
${data.posted}
Salary:
${data.salary}
`; jobContainer.appendChild(card); } fetchJobs(); });