Spaces:
Running
Running
Manual changes saved
Browse files- scorecard.html +2 -1
scorecard.html
CHANGED
|
@@ -184,6 +184,7 @@
|
|
| 184 |
{ section: 'IMPLEMENTATION PLAN', subheading: 'Section 3: The Logistics', question: 'Is there a clear, agreed-upon plan for success after signing?', answers: [ { text: 'All stakeholders have agreed to a formal, joint implementation plan', score: 9 }, { text: 'We have shared a draft implementation plan with our Champion', score: 6 }, { text: 'Implementation has been discussed but no formal plan exists', score: 3 }, { text: 'The post-sale process has not been discussed', score: 0 } ] }
|
| 185 |
];
|
| 186 |
|
|
|
|
| 187 |
const skillMapping = {
|
| 188 |
'PAIN & METRICS': '#qualify-meddicc',
|
| 189 |
'CHAMPION & EB': '#stakeholder-mapping',
|
|
@@ -275,7 +276,7 @@
|
|
| 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="#" data-link="${destination}" class="font-bold underline hover:text-red-100 academy-link">learn more</a></p></div>`;
|
| 280 |
}
|
| 281 |
const scoreRatio = answer.score / 9;
|
|
|
|
| 184 |
{ section: 'IMPLEMENTATION PLAN', subheading: 'Section 3: The Logistics', question: 'Is there a clear, agreed-upon plan for success after signing?', answers: [ { text: 'All stakeholders have agreed to a formal, joint implementation plan', score: 9 }, { text: 'We have shared a draft implementation plan with our Champion', score: 6 }, { text: 'Implementation has been discussed but no formal plan exists', score: 3 }, { text: 'The post-sale process has not been discussed', score: 0 } ] }
|
| 185 |
];
|
| 186 |
|
| 187 |
+
// This mapping creates the links to the correct sections in academy.html
|
| 188 |
const skillMapping = {
|
| 189 |
'PAIN & METRICS': '#qualify-meddicc',
|
| 190 |
'CHAMPION & EB': '#stakeholder-mapping',
|
|
|
|
| 276 |
let recommendationHTML = '';
|
| 277 |
if (answer.score < 5) {
|
| 278 |
let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
|
| 279 |
+
const destination = `academy.html${skillMapping[answer.section]}`;
|
| 280 |
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="#" data-link="${destination}" class="font-bold underline hover:text-red-100 academy-link">learn more</a></p></div>`;
|
| 281 |
}
|
| 282 |
const scoreRatio = answer.score / 9;
|