'; /* 8. PHYSICAL & MEDICAL STANDARDS (only if a Defence career in top 5) */
const hasDefence = top5.some(function(item){ return item.career.category==='Defence'; });
if(hasDefence){
html += '
';
html += '
8. Physical & Medical Standards
';
html += '
Service
Height
Chest
Eyesight
Tattoo Rule
';
MEDICAL_STANDARDS.forEach(function(m){
html += '
'+m.service+'
'+m.height+'
'+m.chest+'
'+m.eyesight+'
'+m.tattoo+'
';
});
html += '
';
html += '
Exact standards vary by service, branch, and year of recruitment. Always confirm against the official notification before applying.
';
html += '
';
} /* 9. SCHOLARSHIP DATABASE */
html += '
';
html += '
9. Scholarship Database
';
Object.keys(SCHOLARSHIPS).forEach(function(group){
html += '
'+group+'
';
SCHOLARSHIPS[group].forEach(function(s){ html += '
'+s+'
'; });
html += '
';
});
html += '
'; /* CLOSING NOTE */
html += '
This result is indicative only, based on the answers given, and is meant as a starting point for further research.
'; document.getElementById('results-container').innerHTML = html;
document.getElementById('quiz-container').style.display='none';
document.getElementById('results-container').style.display='block';
document.getElementById('start-over-link').style.display='block';
window.scrollTo(0,0);
} function checkBudget(min, max){
const input = document.getElementById('budget-input');
const box = document.getElementById('budget-result');
const val = parseFloat(input.value);
if(isNaN(val) || val<0){
box.className = 'warn';
box.textContent = 'Please enter a valid budget in lakh.';
return;
}
if(val >= max){
box.className = 'ok';
box.textContent = 'Your budget comfortably covers this career, including higher-fee institutes.';
} else if(val >= min){
box.className = 'warn';
box.textContent = 'Your budget works for lower-range colleges but may need a scholarship for top-fee institutes.';
} else {
box.className = 'no';
box.textContent = 'This budget will likely need an education loan or scholarship support to cover the full course.';
}
} /* init */
renderStep();