'; 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); });
    • LSN’S Top 50 NBA Fantasy Player Rankings

      For those of you who have been following us, this will be our last NBA Fantasy rankings column for a while. To be honest, and I mentioned this in my first...

    • LSN NBA Fantasy Player Rankings 11-30

      After the success of theLSN NBA Fantasy Top 10 Rankings, we got a bunch of emails and tweets about the players after the top 10. And since we’ve also reached the halfway...

    • NBA Fantasy New Year’s Tip-Off

      To start off the New Year, and as this is my first story with La Sportsa Nostra, I think the best thing to do would be to put all our cards...