Consistent HTML for the task source and solution
This commit is contained in:
parent
79417c6e73
commit
51d2097536
1 changed files with 3 additions and 2 deletions
|
@ -3,10 +3,9 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Document</title>
|
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script src="hoverIntent.js"></script>
|
<script src="hoverIntent.js"></script>
|
||||||
<script src="https://js.cx/test/libs.js"></script>
|
<script src="https://en.js.cx/test/libs.js"></script>
|
||||||
<script src="test.js"></script>
|
<script src="test.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -26,6 +25,8 @@
|
||||||
new HoverIntent({
|
new HoverIntent({
|
||||||
elem,
|
elem,
|
||||||
over() {
|
over() {
|
||||||
|
tooltip.style.left = elem.getBoundingClientRect().left + 5 + 'px';
|
||||||
|
tooltip.style.top = elem.getBoundingClientRect().bottom + 5 + 'px';
|
||||||
tooltip.hidden = false;
|
tooltip.hidden = false;
|
||||||
},
|
},
|
||||||
out() {
|
out() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue