DjayChucko commited on
Commit
3f89402
·
verified ·
1 Parent(s): 78ad8ce

Manual changes saved

Browse files
Files changed (1) hide show
  1. scorecard.html +8 -7
scorecard.html CHANGED
@@ -206,13 +206,14 @@
206
  const industrySpecificAdvice = { 'FSI': { 'PAIN & METRICS': 'Frame pain around compliance...', 'PAPER PROCESS': 'The legal review is rigorous...' }, 'Healthcare': { 'PAIN & METRICS': 'Pain is tied to HIPAA...', 'DECISION PROCESS & CRITERIA': 'Criteria weighs heavily on security...' }, 'Tech (SaaS)': { 'COMPETITION & BLOCKERS': 'The SaaS market is crowded...', 'IMPLEMENTATION PLAN': 'Offer a "quick start" plan...' } };
207
 
208
  // --- MAPPING FOR LOW SCORE RECOMMENDATION LINKS ---
 
209
  const lowScoreLinks = {
210
- 'PAIN & METRICS': 'academy.html#1-discovery-qualification',
211
- 'CHAMPION & EB': 'academy.html#1-map-stakeholders-to-find-your-mobilizer',
212
- 'DECISION PROCESS & CRITERIA': 'academy.html#3-qualify-with-meddicc-to-build-the-business-case',
213
- 'COMPETITION & BLOCKERS': 'academy.html#engaging-proposals-elite-sales',
214
- 'PAPER PROCESS': 'academy.html#phase-3-evaluation-justification',
215
- 'IMPLEMENTATION PLAN': 'academy.html#solution-architects-as-partners'
216
  };
217
 
218
  function checkSelections() { app.inputs.startBtn.disabled = !(app.state.industry && app.state.salesStage); }
@@ -279,7 +280,7 @@
279
  // Condition to show recommendation is a score less than 5 (i.e., 0 or 3)
280
  if (answer.score < 5) {
281
  let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
282
- const link = lowScoreLinks[answer.section] || 'academy.html'; // Direct lookup from the link map
283
  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="${link}" target="_blank" class="font-bold underline hover:text-red-100">learn more</a></p></div>`;
284
  }
285
  const scoreRatio = answer.score / 9;
 
206
  const industrySpecificAdvice = { 'FSI': { 'PAIN & METRICS': 'Frame pain around compliance...', 'PAPER PROCESS': 'The legal review is rigorous...' }, 'Healthcare': { 'PAIN & METRICS': 'Pain is tied to HIPAA...', 'DECISION PROCESS & CRITERIA': 'Criteria weighs heavily on security...' }, 'Tech (SaaS)': { 'COMPETITION & BLOCKERS': 'The SaaS market is crowded...', 'IMPLEMENTATION PLAN': 'Offer a "quick start" plan...' } };
207
 
208
  // --- MAPPING FOR LOW SCORE RECOMMENDATION LINKS ---
209
+ // This now correctly maps to the IDs found in academy.html
210
  const lowScoreLinks = {
211
+ 'PAIN & METRICS': 'academy.html#discovery-qualification',
212
+ 'CHAMPION & EB': 'academy.html#stakeholder-mapping',
213
+ 'DECISION PROCESS & CRITERIA': 'academy.html#qualify-meddicc',
214
+ 'COMPETITION & BLOCKERS': 'academy.html#proposals',
215
+ 'PAPER PROCESS': 'academy.html#evaluation-justification',
216
+ 'IMPLEMENTATION PLAN': 'academy.html#solution-architects'
217
  };
218
 
219
  function checkSelections() { app.inputs.startBtn.disabled = !(app.state.industry && app.state.salesStage); }
 
280
  // Condition to show recommendation is a score less than 5 (i.e., 0 or 3)
281
  if (answer.score < 5) {
282
  let advice = industrySpecificAdvice[app.state.industry]?.[answer.section] || summarySnippets[answer.section] || 'Focus on improving this area.';
283
+ const link = lowScoreLinks[answer.section] || 'academy.html'; // Direct lookup from the corrected link map
284
  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="${link}" target="_blank" class="font-bold underline hover:text-red-100">learn more</a></p></div>`;
285
  }
286
  const scoreRatio = answer.score / 9;