-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.html
39 lines (39 loc) · 1.3 KB
/
example.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
34
35
36
37
38
39
<html>
<head>
<style type="text/css">
.bodyBox{
width:100%;
min-width:600px;
min-height:600px;
}
.box{
width:90px;
display:inline-block;
border: solid 1px black;
height:90px;
}
</style>
</head>
<body>
<div class="bodyBox">
<button id="btnHeatMap">Draw Heatmap</button>
<button id="btnDrawLiveContent">Draw Live Content</button>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="/jquery.mousetracker.js"></script>
<script type="text/javascript" >
$(function(){
$('.box').mouseTracker();
$('#btnHeatMap').click(function(){$('.box').mouseTracker('drawHeatMap');});
$('#btnDrawLiveContent').click(function(){$('.box').mouseTracker('drawLiveContent');});
});
</script>
</body>
</html>