Skip to content

Commit b3f8a7a

Browse files
init app [project89]
1 parent 99a30c2 commit b3f8a7a

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="stylesheet" href="styles.css" />
7+
<title>ARIA Role Implementation App</title>
8+
</head>
9+
<body>
10+
<div id="main" role="main" aria-labelledby="main-heading">
11+
<h1 id="main-heading">ARIA Role Implementation App</h1>
12+
<p>This is a simple example demonstrating ARIA roles.</p>
13+
<button
14+
id="alertBtn"
15+
role="button"
16+
aria-label="Click me to show an alert"
17+
>
18+
Show Alert
19+
</button>
20+
</div>
21+
<script src="script.js"></script>
22+
</body>
23+
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
const alertBtn = document.getElementById("alertBtn");
3+
4+
alertBtn.addEventListener("click", function () {
5+
alert("Hello, this is an alert!");
6+
});
7+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
body {
2+
font-family: "Arial", sans-serif;
3+
text-align: center;
4+
padding: 20px;
5+
}
6+
7+
#main {
8+
background-color: #f4f4f4;
9+
padding: 20px;
10+
border-radius: 8px;
11+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
12+
}
13+
14+
button {
15+
padding: 10px 20px;
16+
font-size: 16px;
17+
cursor: pointer;
18+
}
19+
20+
button:hover {
21+
background-color: #ddd;
22+
}

0 commit comments

Comments
 (0)