https://stan.store/DrIfyMark

Mentor Matching Survey Results

// Sample JavaScript for calculating scores
document.getElementById(‘survey-form’).addEventListener(‘submit’, function(event) {
event.preventDefault();
let techScore = 0, financeScore = 0, creativeScore = 0, healthcareScore = 0;

// Example logic for question 1 (industry)
let industry = document.querySelector(‘input[name=”industry”]:checked’).value;
if (industry === ‘Technology’) techScore += 10;
else if (industry === ‘Finance’) financeScore += 10;
else if (industry === ‘Creative Arts’) creativeScore += 10;
else if (industry === ‘Healthcare’) healthcareScore += 10;

// Repeat similar logic for other questions

// Determine recommendation
let highestScore = Math.max(techScore, financeScore, creativeScore, healthcareScore);
let recommendation = ”;
if (highestScore === techScore) recommendation = ‘Technology/Innovation’;
else if (highestScore === financeScore) recommendation = ‘Finance/Business’;
else if (highestScore === creativeScore) recommendation = ‘Creative/Arts’;
else if (highestScore === healthcareScore) recommendation = ‘Healthcare/Education’;

// Display the recommendation
document.getElementById(‘recommendation’).innerText = ‘We recommend focusing on ‘ + recommendation + ‘ as your primary field of interest.’;
});