-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
executable file
·47 lines (46 loc) · 1.08 KB
/
test.html
File metadata and controls
executable file
·47 lines (46 loc) · 1.08 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="jquery-3.5.1.min.js"></script>
<style>
.container{
width: 150px;
height: 50px;
color: rgb(37, 139, 255);
background-color: rgb(248, 248, 248);
border-radius: 10px;
padding: 30px;
margin: 30px;
}
#x_y{
width: 150px;
}
#screen{
width: 500px;
height: 500px;
}
#hint{
font-weight: bold;
font-size: large;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<div id="hint">
mouse is in:
</div>
<div id="x_y">
</div>
</div>
</body>
<script>
$(document).mousemove(function(e){
$('#x_y').html('X = ' + e.clientX + ' , Y = ' + e.clientY)
})
</script>
</html>