Syntax highlighting has been disabled due to code size.
====================
// ============================================================
// HOMEPAGE COMPONENTS (NEW v4.0)
// ============================================================
function renderCareerExplorer() {
return `
Explore Healthcare Careers in Arizona
Find your perfect healthcare career. Compare salaries, education requirements, and job opportunities.
👩⚕️
Registered Nurse (RN)
💰 $70K - $95K/year
Provide direct patient care, administer medications, and coordinate comprehensive treatment plans.
250+ Jobs
45 Programs
ADN or BSN Required
2-4 Years Training
Learn More
🏥
Certified Nursing Assistant (CNA)
💰 $32K - $42K/year
Assist patients with daily activities and provide basic care under RN supervision.
180+ Jobs
30 Programs
CNA Certificate Required
4-12 Weeks Training
Learn More
💉
Licensed Practical Nurse (LPN)
💰 $48K - $58K/year
Provide basic nursing care, monitor patient health, and report to RNs and physicians.
120+ Jobs
25 Programs
LPN Diploma Required
12-18 Months Training
Learn More
🩺
Medical Assistant
💰 $35K - $45K/year
Perform clinical and administrative tasks in medical offices and clinics.
200+ Jobs
35 Programs
MA Certificate Required
9-12 Months Training
Learn More
`;
}
function renderJobTicker() {
return
Latest Healthcare Jobs in Arizona
;
}
function renderFeaturedPrograms() {
return Featured Healthcare Programs
Start your healthcare career with these top-rated programs in Arizona
CNA Programs
Get certified in 4-12 weeks. Start earning while continuing education.
- Short training period (4-12 weeks)
- Low tuition ($800-$2,500)
- High job placement rate
LPN Programs
Become a Licensed Practical Nurse in 12-18 months. Bridge to RN later.
- Comprehensive nursing training
- Clinical experience included
- Bridge programs to RN available
Medical Assistant Programs
Train for clinical and administrative roles in 9-12 months.
- Dual clinical/administrative training
- Work in doctor's offices/clinics
- Growing field with flexibility
;
}
// API Integration Functions
async function fetchJobs(params = {}) {
const { category = '', city = '', limit = 20, offset = 0, sort = 'date', featured = false } = params;
const queryParams = new URLSearchParams({ category, city, limit: limit.toString(), offset: offset.toString(), sort, featured: featured ? '1' : '0' });
try {
const response = await fetch('/api/jobs-fetch.php?' + queryParams);
const data = await response.json();
return data.success ? data : { success: false, jobs: [], total: 0 };
} catch (error) {
console.error('Error fetching jobs:', error);
return { success: false, jobs: [], total: 0 };
}
}
async function loadJobTicker() {
try {
const data = await fetchJobs({ featured: true, limit: 20, sort: 'date' });
if (data.success && data.jobs.length > 0) {
const ticker = document.getElementById('jobTicker');
if (!ticker) return;
const jobsHTML = data.jobs.map(job =>
'' + job.title + '•' + job.employer + '•' + job.city + ', AZ•' + job.salary_text + '
'
).join('');
ticker.innerHTML = jobsHTML + jobsHTML;
}
} catch (error) {
console.error('Error loading job ticker:', error);
}
}
// Initialize on homepage
if (window.location.pathname === '/' || window.location.pathname === '') {
document.addEventListener('DOMContentLoaded', loadJobTicker);
}
// Placeholder page render functions (implement content later)
function renderCareersHub() {
return 'Healthcare Careers in Arizona
Explore healthcare career opportunities. Full content coming soon...
';
}
function renderRNCareerPage() {
return 'Registered Nurse (RN) Career Guide
Complete RN career information. Full content coming soon...
';
}
function renderCNACareerPage() {
return 'Certified Nursing Assistant (CNA) Career Guide
Complete CNA career information. Full content coming soon...
';
}
function renderLPNCareerPage() {
return 'Licensed Practical Nurse (LPN) Career Guide
Complete LPN career information. Full content coming soon...
';
}
function renderMedicalAssistantCareerPage() {
return 'Medical Assistant Career Guide
Complete MA career information. Full content coming soon...
';
}
function renderCNAProgramsArizona() {
return 'CNA Programs in Arizona
Comprehensive CNA program listings. Full content coming soon...
';
}
function renderCNAProgramsCity(city) {
const cityName = city.charAt(0).toUpperCase() + city.slice(1);
return 'CNA Programs in ' + cityName + ', Arizona
CNA programs in ' + cityName + '. Full content coming soon...
';
}
function renderLPNProgramsArizona() {
return 'LPN Programs in Arizona
Comprehensive LPN program listings. Full content coming soon...
';
}
function renderLPNProgramsCity(city) {
const cityName = city.charAt(0).toUpperCase() + city.slice(1);
return 'LPN Programs in ' + cityName + ', Arizona
LPN programs in ' + cityName + '. Full content coming soon...
';
}
function renderMAProgramsArizona() {
return 'Medical Assistant Programs in Arizona
Comprehensive MA program listings. Full content coming soon...
';
}
function renderMAProgramsCity(city) {
const cityName = city.charAt(0).toUpperCase() + city.slice(1);
return 'Medical Assistant Programs in ' + cityName + ', Arizona
MA programs in ' + cityName + '. Full content coming soon...
';
}
function renderJobBoardHub() {
return 'Healthcare Jobs in Arizona
Browse healthcare job opportunities. Full job board coming soon...
';
}
function renderCategoryJobsPage(category) {
const titles = { rn: 'Registered Nurse (RN)', cna: 'Certified Nursing Assistant (CNA)', lpn: 'Licensed Practical Nurse (LPN)', 'medical-assistant': 'Medical Assistant' };
return '' + (titles[category] || category) + ' Jobs in Arizona
Browse ' + (titles[category] || category) + ' positions. Full listings coming soon...
';
}
function renderJobDetailPage(category, slug) {
return 'Job Details
Loading job information for: ' + slug + '. Full job details coming soon...
';
}