Skip to content

Commit b65197f

Browse files
authored
Create index.html
1 parent fbfcc8c commit b65197f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<button id="device-button">Check My Device</button>
5+
<p id="device-status"></p>
6+
7+
<script>
8+
// Get the button and status element
9+
const button = document.getElementById("device-button");
10+
const status = document.getElementById("device-status");
11+
12+
// Add an event listener to the button
13+
button.addEventListener("click", () => {
14+
// When the button is clicked, change the text of the status element
15+
status.textContent = "Your Device is On";
16+
});
17+
</script>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)