-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.05 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ec-tooltip</title>
<style media="screen">
.ec-tooltip-container {
display: block;
padding: 10px;
background-color: #e8e8e8;
border: 2px solid #dddddd;
}
.container p {
display: inline-block;
}
</style>
</head>
<body>
<div class="container">
<p class="tooltipThis" data-ec-text="This is a tooltip with some text">This text has a tooltip</p>
</div>
<!-- <div class="container">
<p class="tooltipThis" data-ec-text="This is another tooltip with some text">This text has a tooltip</p>
</div> -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
<script src="jquery.ecTooltip.js" type="text/javascript"></script>
<script type="text/javascript">
$('.tooltipThis').ecTooltip();
</script>
</body>
</html>