Interactive Website: Flipboard // Next Dot 1


#1

Been working on the next dot 1 exercise for awhile and kept getting the message "Oops, try again. Remember to remove '.active-dot' from the current dot."

var main = function () {
    $('.dropdown-toggle').click(function(){
        $('.dropdown-menu').toggle();
    });
    
    $('.arrow-next').click(function() {
        var currentSlide = $('active-slide');
        var nextSlide = currentSlide.next();
        
        var currentDot = $('.active-dot');
        var nextDot = currentDot.next();
        
        if (nextSlide.length == 0) {
        nextSlide = $('.slide').first();
        }
        
        currentSlide.fadeOut(600).removeClass('active-slide');
        nextSlide.fadeIn(600).addClass('active-slide');
        
        currentDot.removeClass('active-dot');
        nextDot.addClass('active-dot');
        
        });

$(document).ready(main);

T.T Not sure what I'm missing after combing through my code and redoing the exercise over and over...


#2

Hi Antoniatran,

You need to close your main function with a closing curly brace (}) placed on the next to last line :slightly_smiling: