<div id="test-widget" class="test-widget"><h2>Interactive Test Section</h2><p>This section checks if HTML, CSS, and JS are working correctly.</p><div class="counter-box"><button id="counterBtn">Click Me</button><span id="countValue">0</span></div><div class="color-box"><input type="color" id="colorPicker"><p>Pick a background color</p></div></div><style>.test-widget{padding:20px;margin:40px 0;border-radius:12px;background:#f4f4f4;font-family:Arial,sans-serif;text-align:center;box-shadow:0 5px 15px rgba(0,0,0,.1)}.test-widget h2{margin-bottom:10px}.counter-box{margin:15px 0}#counterBtn{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;background:#007bff;color:#fff}#counterBtn:hover{background:#0056b3}#countValue{margin-left:10px;font-weight:700;font-size:18px}.color-box{margin-top:15px}</style><script>(function() { console.log("Test section loaded successfully."); let count = 0; const btn = document.getElementById("counterBtn"); const countDisplay = document.getElementById("countValue"); const colorPicker = document.getElementById("colorPicker"); const widget = document.getElementById("test-widget"); btn.addEventListener("click", function() { count++; countDisplay.textContent = count; }); colorPicker.addEventListener("input", function() { widget.style.backgroundColor = this.value; }); })();</script>
<div id="test-widget" class="test-widget"><h2>Interactive Test Section</h2><p>This section checks if HTML, CSS, and JS are working correctly.</p><div class="counter-box"><button id="counterBtn">Click Me</button><span id="countValue">0</span></div><div class="color-box"><input type="color" id="colorPicker"><p>Pick a background color</p></div></div><style>.test-widget{padding:20px;margin:40px 0;border-radius:12px;background:#f4f4f4;font-family:Arial,sans-serif;text-align:center;box-shadow:0 5px 15px rgba(0,0,0,.1)}.test-widget h2{margin-bottom:10px}.counter-box{margin:15px 0}#counterBtn{padding:8px 16px;border:0;border-radius:6px;cursor:pointer;background:#007bff;color:#fff}#counterBtn:hover{background:#0056b3}#countValue{margin-left:10px;font-weight:700;font-size:18px}.color-box{margin-top:15px}</style><script>!function(){console.log("Test section loaded successfully.");let e=0;const t=document.getElementById("counterBtn"),n=document.getElementById("countValue"),o=document.getElementById("colorPicker"),c=document.getElementById("test-widget");t.addEventListener("click",function(){e++,n.textContent=e}),o.addEventListener("input",function(){c.style.backgroundColor=this.value})}()</script>
<div id="test-widget" class="test-widget"><h2>Interactive Test Section</h2><p>This section checks if HTML, CSS, and JS are working correctly.</p><div class="counter-box"><button id="counterBtn">Click Me</button><span id="countValue">0</span></div><div class="color-box"><input type="color" id="colorPicker"><p>Pick a background color</p></div></div><style>.test-widget{padding:20px;margin:40px 0;border-radius:12px;background:#f4f4f4;font-family:Arial,sans-serif;text-align:center;box-shadow:0 5px 15px rgba(0,0,0,.1)}.test-widget h2{margin-bottom:10px}.counter-box{margin:15px 0}#counterBtn{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;background:#007bff;color:#fff}#counterBtn:hover{background:#0056b3}#countValue{margin-left:10px;font-weight:700;font-size:18px}.color-box{margin-top:15px}</style><script>(function() { console.log("Test section loaded successfully."); let count = 0; const btn = document.getElementById("counterBtn"); const countDisplay = document.getElementById("countValue"); const colorPicker = document.getElementById("colorPicker"); const widget = document.getElementById("test-widget"); btn.addEventListener("click", function() { count++; countDisplay.textContent = count; }); colorPicker.addEventListener("input", function() { widget.style.backgroundColor = this.value; }); })();</script>