-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstream.html
42 lines (35 loc) · 1.04 KB
/
stream.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
<!DOCTYPE html>
<html>
<head>
<title>SlideScale Stream Demo Page</title>
<link rel="Stylesheet" href="./css/main.css" />
<link rel="Stylesheet" href="./css/jquery.slidescale.css" />
</head>
<body>
<div id="gallery">
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.js"></script>
<script src="./js/jquery.slidescale.js"></script>
<script src="./js/imagelist.js"></script>
<script>
var re = /(\.\w{3,4})$/, scimgs, ii,
startTime = +new Date(),
ss = $('#gallery').slidescale({
gallery_height: 400
}).data('slidescale');
function scimg_maker(path) {
return {
thumb_path: path.replace(re, "_t$1"),
photo_path: path
};
}
scimgs = $.map(imageList, scimg_maker);
for (ii = 0; ii < scimgs.length; ii++) {
ss.addImage(scimgs[ii]);
}
ss.setImageIndex(0);
console.log("elpased time: ", +new Date() - startTime);
</script>
</body>
</html>