Skip to content

Commit df4acb6

Browse files
authored
Merge pull request #1629 from koala-lava/patch-7
Consistent HTML for the task source and solution
2 parents cd27aff + 51d2097 commit df4acb6

File tree

1 file changed

+3
-2
lines changed
  • 2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view

1 file changed

+3
-2
lines changed

2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
<head>
55
<meta charset="UTF-8">
6-
<title>Document</title>
76
<link rel="stylesheet" href="style.css">
87
<script src="hoverIntent.js"></script>
9-
<script src="https://js.cx/test/libs.js"></script>
8+
<script src="https://en.js.cx/test/libs.js"></script>
109
<script src="test.js"></script>
1110
</head>
1211

@@ -26,6 +25,8 @@
2625
new HoverIntent({
2726
elem,
2827
over() {
28+
tooltip.style.left = elem.getBoundingClientRect().left + 5 + 'px';
29+
tooltip.style.top = elem.getBoundingClientRect().bottom + 5 + 'px';
2930
tooltip.hidden = false;
3031
},
3132
out() {

0 commit comments

Comments
 (0)