-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
43 lines (39 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/jquery_carousel_slider.css">
<script src="js/jquery-1.11.2.min.js"></script>
<script src="js/jquery_carousel_slider.js"></script>
<script>
$(function(){
$.getJSON("JSON/data.js",function (result){
var setting = {
subject:'Movie',
cardw : 145, //page card's width .
cardh : 217,
cardn : 5, //the number of visible page card .
margin : 9, //margin between cards .
JSON :result
};
$('#movie').slider(setting);
});
$.getJSON("JSON/data.js",function (result){
var setting = {
subject:'NBA',
cardw : 145, //page card's width .
cardh : 145,
cardn : 7, //the number of visible page card .
margin : 9, //margin between cards .
JSON :result
};
$('#nba').slider(setting);
});
});
</script>
<title>jquery_carousel_slider (Imitation of FaceBook UI component)</title>
</head>
<body>
<div class ='box' id="nba"></div>
<div class ='box' id="movie"></div>
</body>
</html>