-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (33 loc) · 842 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
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script src="hoverIntent.js"></script>
<!--<script src="https://js.cx/test/libs.js"></script>
<script src="test.js"></script>-->
</head>
<body>
<div id="elem" class="clock">
<span class="hours">12</span> :
<span class="minutes">30</span> :
<span class="seconds">00</span>
</div>
<div id="tooltip" hidden>Tooltip</div>
<script>
var elem = document.getElementById ("elem");
var hint = new Hint (elem, "111");
hint.hide();
var clock = new Clock(elem);
clock.start();
new HoverIntent ({elem: elem, over: showHint, out: hideHint});
function showHint () {
hint.show();
};
function hideHint () {
hint.hide();
};
</script>
</body>
</html>