Work Habit Improvement Tool

Work Habit Improvement Tool

Reflect on Your Current Habits

Answer the following questions honestly to gain self-awareness about your current work patterns. This will help you identify areas for growth in the next step.

Planning & Prioritization

Time Management

Focus & Distraction Management

Energy & Well-being

Select Your Focus Habits for Improvement

Based on your reflections (or your own priorities), please select up to 3 habits you'd like to focus on improving:

Your Personalized Habit Improvement Plan

Your improvement plan will appear here once generated.

${habitInfo.importance}

    `; whitGeneratedPlanContent += `## ${habitInfo.displayName}\n\n`; whitGeneratedPlanContent += `*Why it matters:* ${habitInfo.importance}\n\n*Actionable Strategies:*\n`; habitInfo.tips.forEach(tip => { planHTML += `
  • ${tip}
  • `; whitGeneratedPlanContent += ` - ${tip}\n`; }); planHTML += "
"; whitGeneratedPlanContent += "\n"; } }); outputDiv.innerHTML = planHTML; document.getElementById('whit-commitment-section').style.display = 'block'; const pdfBtn = document.getElementById('whit-pdf-download'); if(pdfBtn) pdfBtn.style.display = 'inline-block'; } function whitDownloadPDF() { if (!jsPDF_constructor_whit) { alert("PDF library error."); return; } if (whitSelectedFocusHabits.length === 0 || !whitGeneratedPlanContent) { alert("Please generate your improvement plan first."); return; } const commitmentNotes = document.getElementById('whit-commitment-notes').value.trim(); const doc = new jsPDF_constructor_whit('p', 'pt', 'a4'); const FONT_FAMILY = "helvetica"; const ACCENT_COLOR_HEX = getComputedStyle(document.documentElement).getPropertyValue('--accent-color').trim(); const PRIMARY_TEXT_COLOR_HEX = getComputedStyle(document.documentElement).getPropertyValue('--primary-text').trim(); const SECTION_TITLE_COLOR_HEX = getComputedStyle(document.documentElement).getPropertyValue('--section-title-color').trim(); const BUTTON_TEXT_COLOR_HEX = getComputedStyle(document.documentElement).getPropertyValue('--button-text-color').trim(); let yPos = 40; const pageWidth = doc.internal.pageSize.getWidth(); const margin = 40; const usableWidth = pageWidth - (2 * margin); doc.setFillColor(ACCENT_COLOR_HEX); doc.rect(0, 0, pageWidth, yPos + 10, 'F'); doc.setFont(FONT_FAMILY, "bold"); doc.setFontSize(18); doc.setTextColor(BUTTON_TEXT_COLOR_HEX); doc.text("My Work Habit Improvement Plan", pageWidth / 2, yPos, { align: "center" }); yPos += 25; doc.setFont(FONT_FAMILY, "normal"); doc.setFontSize(10); doc.setTextColor(PRIMARY_TEXT_COLOR_HEX); const genDate = new Date(2025, 4, 18).toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' }); // Context date doc.text(`Plan Generated: ${genDate}`, margin, yPos); yPos += 25; doc.setFont(FONT_FAMILY, "bold"); doc.setFontSize(14); doc.setTextColor(SECTION_TITLE_COLOR_HEX); doc.text("Your Chosen Focus Habits for Improvement:", margin, yPos); yPos += 20; whitSelectedFocusHabits.forEach(habitId => { const habitInfo = whitHabitStrategies[habitId]; if (habitInfo) { if (yPos > doc.internal.pageSize.getHeight() - 100) { doc.addPage(); yPos = margin; } doc.setFont(FONT_FAMILY, "bold"); doc.setFontSize(12); doc.setTextColor(ACCENT_COLOR_HEX); doc.text(habitInfo.displayName, margin, yPos); yPos += 18; doc.setFont(FONT_FAMILY, "italic"); doc.setFontSize(9); doc.setTextColor(PRIMARY_TEXT_COLOR_HEX); const importanceLines = doc.splitTextToSize(habitInfo.importance, usableWidth); doc.text(importanceLines, margin, yPos); yPos += (importanceLines.length * 11) + 8; doc.setFont(FONT_FAMILY, "bold"); doc.setFontSize(10); doc.text("Actionable Strategies:", margin, yPos); yPos += 14; doc.setFont(FONT_FAMILY, "normal"); doc.setFontSize(9); habitInfo.tips.forEach(tip => { if (yPos > doc.internal.pageSize.getHeight() - 30) { doc.addPage(); yPos = margin; } const tipLines = doc.splitTextToSize(`• ${tip}`, usableWidth - 10); // Indent bullet doc.text(tipLines, margin + 10, yPos); yPos += (tipLines.length * 11) + 3; }); yPos += 15; // Space after each habit section } }); if (commitmentNotes) { if (yPos > doc.internal.pageSize.getHeight() - 60) { doc.addPage(); yPos = margin; } doc.setFont(FONT_FAMILY, "bold"); doc.setFontSize(12); doc.setTextColor(SECTION_TITLE_COLOR_HEX); doc.text("My Commitment & First Steps:", margin, yPos); yPos += 18; doc.setFont(FONT_FAMILY, "normal"); doc.setFontSize(10); const commitmentLines = doc.splitTextToSize(commitmentNotes, usableWidth); doc.text(commitmentLines, margin, yPos); yPos += (commitmentLines.length * 12) + 10; } // Footer const pageCount = doc.internal.getNumberOfPages(); for (let i = 1; i <= pageCount; i++) { doc.setPage(i); const pageHeight = doc.internal.pageSize.getHeight(); doc.setLineWidth(0.5); doc.setDrawColor(ACCENT_COLOR_HEX); doc.line(margin, pageHeight - 30, pageWidth - margin, pageHeight - 30); doc.setFont(FONT_FAMILY, "normal"); doc.setFontSize(8); doc.setTextColor(PRIMARY_TEXT_COLOR_HEX); doc.text(`Page ${i} of ${pageCount}`, pageWidth / 2, pageHeight - 20, { align: "center" }); } doc.save("Work_Habit_Improvement_Plan.pdf"); }
Scroll to Top