forked from nswilhelm/jquery-map-trifecta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (71 loc) · 2.96 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<title>Trifecta Example</title>
<link href="css/bootstrap-3.3.1.min.css" rel="stylesheet" />
<link href="css/map-trifecta.css" rel="stylesheet" /> <!--Needed for Zoom and img-->
</head>
<body>
<!--MAIN CONTAINER -->
<div class="container" id="main">
<div class="row">
<!--IMAGE MAP-->
<div class="col-lg-5 col-lg-push-7">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Shapes Image</h4>
</div>
<div class="panel-body">
<center>
<img id="myImageMap" src="images/shapes.png" usemap="#shapesMap">
<map name="shapesMap">
<area data-mapid="1" coords="5,136,80,9,152,135" alt="Triangle" href="#" shape="poly" />
<area data-mapid="2" coords="177,134,179,7,307,8,308,134" alt="Square" href="#" shape="poly" />
<area data-mapid="3" coords="358,123,353,119,342,104,334,88,333,67,339,46,352,26,379,10,403,7,420,13,438,22,448,33,454,43,459,61,462,77,459,93,449,112,437,122,426,128,414,134,393,135,376,132" alt="Circle" href="#" shape="poly" />
</map>
</center>
</div>
</div>
</div>
<!--TABLE ROWS-->
<div class="col-lg-7 col-lg-pull-5">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Shapes Table</h4>
</div>
<div class="panel-body">
<table id="myTable" class="table table-hover">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr data-mapid="1">
<td>Triangle</td>
</tr>
<tr data-mapid="2">
<td>Square</td>
</tr>
<tr data-mapid="3">
<td>Circle</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<hr>
</div>
<div id="scripts">
<!-- 3rd party libraries -->
<script src="js/jquery-1.11.1.min.js"></script>
<!--For Responsive, Hilight, Zoom for Image Map & Table -->
<script src="js/jquery.map-trifecta.min.js"></script>
<script>
$("img[usemap]").mapTrifecta();
</script>
</div>
</body>
</html>