|
@@ -9,4 +9,21 @@ function homeF(){
|
|
|
|
|
|
}
|
|
|
lang();
|
|
|
+ var carousel_prev= $("#home .carousel .glyphicon-menu-left");
|
|
|
+ var carousel_next= $("#home .carousel .glyphicon-menu-right");
|
|
|
+ carousel_prev[0].onclick=function(){
|
|
|
+ var scrollObj = $("#home .carousel .scroll")[0];
|
|
|
+ var current = scrollObj.scrollLeft;
|
|
|
+ if (current>0) {
|
|
|
+ scrollObj.scrollLeft=current-220;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ carousel_next[0].onclick=function(){
|
|
|
+ var scrollObj = $("#home .carousel .scroll")[0];
|
|
|
+ var current = scrollObj.scrollLeft;
|
|
|
+ var maxWidth = $("#home .carousel ul").width()
|
|
|
+ if (current<maxWidth) {
|
|
|
+ scrollObj.scrollLeft=current+220
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|