Unverified Commit 8bf43e4f authored by Claude's avatar Claude
Browse files

Fix JavaScript template literal syntax in results page

- Fixed Monthly Profit chart labels to properly display month numbers
- Fixed toggleMonth function to enable clickable monthly details
- Changed {variable} to ${variable} for proper template literal interpolation

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent 50ae222e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -250,8 +250,8 @@

<script>
function toggleMonth(monthNum) {
    const content = document.getElementById(`month_CHF {monthNum}`);
    const icon = document.getElementById(`icon_CHF {monthNum}`);
    const content = document.getElementById(`month_${monthNum}`);
    const icon = document.getElementById(`icon_${monthNum}`);

    if (content.style.display === 'none') {
        content.style.display = 'block';
@@ -312,7 +312,7 @@ const profitCtx = document.getElementById('profitChart');
new Chart(profitCtx, {
    type: 'line',
    data: {
        labels: monthlyComparison.map(m => `Month CHF {m.month}`),
        labels: monthlyComparison.map(m => `Month ${m.month}`),
        datasets: [{
            label: 'Monthly Profit',
            data: monthlyComparison.map(m => {