-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (25 loc) · 925 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Detect position of mouse cursor/position</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Detect Mouse Coordinates</h1>
<h3>Position at all times: </h3>
<p id="global-coordinates"></p>
<div id='detection-click' onclick="showClickCoords(event)">
<p>CLICK on any area inside of this box:</p>
<p id="click-coordinates"></p>
</div>
<div id='detection-move' onmousemove="showMoveCoords(event)" onmouseout="clearCoord()">
<p>MOVE mouse in the area inside of this box:</p>
<p id="move-coordinates"></p>
</div>
<div id='detection-boolean' onmousemove="showBooleanIndicator(event)" onmouseout="clearBoxStyle()">
<p>Is the cursor inside this box?</p>
<p id="mouse-status"></p>
</div>
<script src="app.js" async defer></script>
</body>
</html>