forked from springload/BigLink.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
41 lines (35 loc) · 1.02 KB
/
example.html
File metadata and controls
41 lines (35 loc) · 1.02 KB
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
<html>
<head>
<title>bigLink.js examples</title>
<style>
body {
font-family: Helvetica, Arial, sans-serif;
}
.bigLink {
position: absolute;
top: 20%;
left: 20%;
bottom: 20%;
right: 20%;
border: 1px solid #666;
padding: 2em;
background: #efefef;
}
.bigLink:hover {
cursor: pointer;
background: #dfdfdf;
}
</style>
</head>
<body>
<div class="bigLink">
<a href="https://www.google.co.nz/search?q=foo">This whole box is a link</a>
<p>Here is a paragraph of text to accompany the big link, but guess what, there's <a href="https://www.google.co.nz/search?q=bar">another link</a> in here too that we want to go somewhere else.</p>
</div>
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="jquery.biglink.js"></script>
<script>
$(".bigLink").bigLink();
</script>
</body>
</html>