UNPKG

powerhouse-rp-toolkit

Version:

Renaissance Periodization Training Toolkit for PowerHouseATX

90 lines (81 loc) โ€ข 2.93 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Event Listeners Test - PowerHouse Tracker</title> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/phases.css"> <style> .test-section { margin: 20px; padding: 20px; border: 2px solid #007acc; border-radius: 8px; background: #f8f9fa; } .phase-button { margin: 5px; padding: 8px 16px; background: #007acc; color: white; border: none; border-radius: 4px; cursor: pointer; } .phase-button:hover { background: #005999; } .debug-output { background: #2d2d30; color: #cccccc; padding: 10px; border-radius: 4px; font-family: monospace; white-space: pre-wrap; max-height: 300px; overflow-y: auto; } </style> </head> <body> <div class="test-section"> <h1>PowerHouse Tracker - Event Listeners Test</h1> <p>This page tests the dynamic button event listener functionality.</p> <div id="phasesRoot"> <!-- Phase sections will be generated here --> </div> <div class="test-section"> <h3>Debug Console</h3> <div id="debugOutput" class="debug-output">Console output will appear here...</div> <button onclick="runDebugTest()">Run Debug Test</button> <button onclick="clearDebug()">Clear</button> </div> </div> <script type="module"> // Override console.log to show in debug output const originalLog = console.log; const debugOutput = document.getElementById('debugOutput'); console.log = function(...args) { originalLog.apply(console, args); debugOutput.textContent += args.join(' ') + '\n'; debugOutput.scrollTop = debugOutput.scrollHeight; }; // Load main modules import './js/ui/globals.js'; import { phaseSections } from './js/ui/phaseSections.js'; window.runDebugTest = function() { console.log('๐Ÿงช Running debug test...'); if (phaseSections && phaseSections.debugEventListeners) { phaseSections.debugEventListeners(); } else { console.log('โŒ PhaseSections not available'); } }; window.clearDebug = function() { debugOutput.textContent = ''; }; console.log('โœ… Test page loaded successfully'); </script> </body> </html>