Skip to content

Commit c627214

Browse files
authored
main
1 parent fd4e9e4 commit c627214

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Animation - Radar/index.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<meta charset="utf-8" />
6+
<title>page</title>
7+
<link rel="stylesheet" type="text/css" href="index.css">
8+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
9+
</head>
10+
<body>
11+
12+
<div id="container">
13+
<div onmousemove="myRadar(event)" id="out">
14+
<div id="in"></div>
15+
<div id="radar"></div>
16+
</div>
17+
<div id="coordinate"></div>
18+
</div>
19+
20+
<script>
21+
22+
function myRadar(event) {
23+
let x = event.clientX;
24+
let y = event.clientY;
25+
let show = document.getElementById("coordinate");
26+
show.innerHTML = "X:" + x + "&emsp;&emsp;" + "Y:" + y;
27+
28+
}
29+
30+
</script>
31+
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)