Spaces:
Running
Running
Manual changes saved
Browse files- scorecard.html +3 -3
scorecard.html
CHANGED
|
@@ -275,8 +275,8 @@
|
|
| 275 |
let recommendationHTML = '';
|
| 276 |
if (answer.score < 5) {
|
| 277 |
let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
|
| 278 |
-
const
|
| 279 |
-
recommendationHTML = `<div class="mt-3 pt-3 border-t border-purple-400 bg-red-800/20 p-3 rounded-b-lg -m-4 mt-4"><p class="text-sm font-medium text-red-200"><strong>Recommendation:</strong> ${advice} <a href="${
|
| 280 |
}
|
| 281 |
const scoreRatio = answer.score / 9;
|
| 282 |
let scoreColor = 'text-red-300';
|
|
@@ -304,7 +304,7 @@
|
|
| 304 |
app.ui.executiveSummary.innerHTML = summaryHTML;
|
| 305 |
}
|
| 306 |
|
| 307 |
-
//
|
| 308 |
document.body.addEventListener('click', function(e) {
|
| 309 |
const link = e.target.closest('.academy-link');
|
| 310 |
if (link) {
|
|
|
|
| 275 |
let recommendationHTML = '';
|
| 276 |
if (answer.score < 5) {
|
| 277 |
let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
|
| 278 |
+
const destination = `academy.html`;
|
| 279 |
+
recommendationHTML = `<div class="mt-3 pt-3 border-t border-purple-400 bg-red-800/20 p-3 rounded-b-lg -m-4 mt-4"><p class="text-sm font-medium text-red-200"><strong>Recommendation:</strong> ${advice} <a href="${destination}" class="font-bold underline hover:text-red-100">learn more</a></p></div>`;
|
| 280 |
}
|
| 281 |
const scoreRatio = answer.score / 9;
|
| 282 |
let scoreColor = 'text-red-300';
|
|
|
|
| 304 |
app.ui.executiveSummary.innerHTML = summaryHTML;
|
| 305 |
}
|
| 306 |
|
| 307 |
+
// Event listener for dynamic links
|
| 308 |
document.body.addEventListener('click', function(e) {
|
| 309 |
const link = e.target.closest('.academy-link');
|
| 310 |
if (link) {
|