OSDN Git Service

complete slideshow
[pybbs/pybbs.git] / static / js / top.js
index 1c59228..ba3168c 100644 (file)
@@ -22,7 +22,6 @@ $(function(){
                
                $indicator.html(indicatorHTML);
                
-               
                function goToSlide(index){
                        $slideGroup.animate({left:-100*index+'%'},duration,easing);
                        currentIndex = index;
@@ -45,20 +44,7 @@ $(function(){
                        $indicator.find('a').removeClass('active')
                                .eq(currentIndex).addClass('active');
                }
-               
-               function startTimer(){
-                       timer = setInterval(function(){
-                               var nextIndex = (currentIndex+1) % slideCount;
-                               goToSlide(nextIndex);
-                       },interval);
-               }
-               
-               function stopTimer(){
-                       clearInterval(timer);
-               }
-               
-               
-               
+                       
                $nav.on('click','a',function(event){
                        event.preventDefault();
                        if ($(this).hasClass('prev')){
@@ -74,12 +60,9 @@ $(function(){
                                goToSlide($(this).index());
                        }
                });
-               
-
-               
+                       
                goToSlide(currentIndex);
-       
-       
+               
        });
        
 });