Workplace Ethics Compliance Checker
Evaluate workplace scenarios against key ethical standards.
${index + 1}. ${q.text}
${compliancePercentage}%
${summaryText}
`; // Render Details document.getElementById('reportDate').textContent = answers.scenarioDate; document.getElementById('reportDescription').textContent = answers.scenarioDescription; // Render Answer Breakdown const reportAnswersContainer = document.getElementById('reportAnswers'); reportAnswersContainer.innerHTML = ''; questions.forEach(q => { const answer = answers[q.id] || 'N/A'; let answerColor = 'text-gray-500'; if (answer === 'yes') answerColor = 'text-green-600'; if (answer === 'no') answerColor = 'text-red-600'; reportAnswersContainer.innerHTML += `${q.text}
${answer}
