diff --git a/index.html b/index.html index 68e2ec3..c5028ca 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ Beyond Cloud Technology - Project Base - + @@ -63,7 +63,7 @@ - diff --git a/script.js b/script.js index bb001a2..e7c88e9 100644 --- a/script.js +++ b/script.js @@ -35,6 +35,7 @@ function setLoading(isLoading) { // ============================================================================ async function runTest() { + console.log('Run Test triggered'); const urlInput = document.getElementById('test-url'); const url = urlInput.value.trim(); const errorMsg = document.getElementById('error-msg'); @@ -213,6 +214,15 @@ document.addEventListener('DOMContentLoaded', () => { updateVersionBadge(); loadHistory(); + // Attach event listener programmatically + const runBtn = document.getElementById('run-btn'); + if (runBtn) { + runBtn.addEventListener('click', runTest); + console.log('Run Test button listener attached'); + } else { + console.error('Run Test button not found'); + } + // Auto-refresh Git badge setInterval(updateVersionBadge, 5 * 60 * 1000); });