'; games += "
    "; games += '' + scores[0][i].team_second + ''; games += '' + scores[0][i].team_second_record + ''; games += '' + scores[0][i].team_second_score + ''; //games += ""; games += '
    '; games += ''; } games += ''; //console.log(games); //console.log(leagues); $('#leader .nav').html(leagues); $('#leader .games').html(games); scoreSlider = { init: function() { var firstNavItem = $($('#leader .nav li')[0]).attr('id'); _currentLeague = $('#leader .games li.' + firstNavItem), _currentLeagueCount = $('#leader .games li.' + firstNavItem).length; _slideWidth = 272; $('#leader .nav li#' + firstNavItem).addClass('current'); $('#leader .games li').hide(); $('#leader .games li.' + firstNavItem).show(); $('#leader .nav li').click(function(e) { var league = $(e.currentTarget).attr('id'); _count = 0; $('#leader .games').css('left', 0 + 'px'); $('#leader .games li').hide(); $('#leader .games li.' + league).show(); $('#leader .nav li').removeClass('current'); $('#leader .nav li#' + league).addClass('current'); _currentLeague = $('#leader .games li.' + league); _currentLeagueCount = $('#leader .games li.' + league).length; _pageCount = Math.floor(_currentLeagueCount / _gamesPerSlide); }); $('#leader .actions a').click(function(e) { var action = $(e.currentTarget).attr('class'), _pageCount = Math.floor(_currentLeagueCount / _gamesPerSlide), distance; if (action === 'next') { console.log(_pageCount); if (_count !== _pageCount) { _count++; distance = _slideWidth * _gamesPerSlide * _count; $('#leader .games').css('left', '-' + distance + 'px'); } }else{ console.log(_pageCount); if ( _count > 0 ) { _count--; distance = _slideWidth * _gamesPerSlide * _count; $('#leader .games').css('left', '-' + distance + 'px'); } } }); }, wireUp: function() { } } scoreSlider.init(); }); })(jQuery); });
    • It’s Time to Come Home, Cesc

      Arsenal FC has lost some pretty special players during this nine-year trophy drought for the club. We lost countless captains in Patrick Viera, Thierry Henry and Cesc Fabregas, men who are...

    • Serie A Round 33 Recap

      Juventus took a step closer to the title by defeating Udinese 2-0 this past weekend. Juve got goals from ex U21 Italian international Sebastian Giovinco in the 16th minute, and Fernando...

    • Resilient Chelsea Holds Off PSG To Reach Semi’s in CL

      Grit and determination; sometimes that is what it takes in order for teams to overcome adversity. And on Tuesday night in the blue corner of London, that is what Chelsea displayed....

    • Serie A Week 32 Round UP: Juve and Roma Shine

      Juventus got their 27th victory of the season by defeating Livorno 2-0 on goals from Fernando Llorente coming in the 32nd and 35th minutes. It was an easy win for the...

    • Liverpool F.C.: What A Difference A Year Makes

      This time last year Liverpool were in seventh place in the Premier League standings, a massive 29 points behind leaders and eventual champions Manchester United. Today they find themselves in second...

    • Chelsea---Jose-Mourinho-P-017

      A Daunting Task For Jose Mourinho

      After a disappointing loss at Paris Saint-Germain, the pressure is on Chelsea to stage a comeback and secure their hopes of being crowned European Champions. With a crucial and inconveniently timed...

    • Jose Callejon 2

      Serie A Review: Juve Finally Lose, Roma Continues Climb

      In a Clash of the Titans match up in front of a packed San Paolo stadium, Napoli handed Juventus their first loss in 22 league games this past weekend. Napoli won...

    • Donavan Dempsey

      Road to the World Cup Coming to an End

      The U.S. men’s national team starts their sendoff series April 2, with a matchup against Mexico in Glendale Arizona. They will then go to San Francisco to face Azerbaijan on May...

    • Wenger Out Slider

      Arsene Wenger And The Arsenal Supporters Divide

      I have never been a part of a fan base so split down the middle on issues as I am being a supporter for Arsenal F.C. It’s basically an internal war...

    • suarez-gerrard-sturridge-mirror

      Liverpool’s Season From An American Gooner

      Barring Arsenal, there is no team in World Futbol I respect more than Liverpool FC. I’ve always enjoyed watching the Reds play and I always wish them well except in the...

    Next Page »