/
index.html
35 lines (32 loc) · 1009 Bytes
/
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
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<meta http-equiv='X-UA-Compatible' content='chrome=1'>
<style>
.tile:hover {
opacity: .80;
filter: alpha(opacity=80);
}
</style>
<title>jquery.tiles.js | Splits images in as many tiles as you want, even with a gap.</title>
</head>
<body>
<img id="img1" src="http://lorempixel.com/320/240" />
<img id="img2" src="http://lorempixel.com/640/480" />
<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
<script src='jquery.tiles.js'></script>
<script>
window.onload = function () {
$('#img1').tiles({
x: 12,
y: 1
});
$('#img2').tiles({
gap: 5
});
};
</script>
</body>
</html>