<commit_before>var countdown = new ReactiveCountdown(30);

countdown.start(function() {

    // do something when this is completed
    countdown.start();

    $('.menu .item').tab();

    Meteor.call('getGameData',function(response) {
      // Session.set('noRender', true);
      // Meteor.setTimeout(function() {
        // Session.set('noRender', false);
      // }, 1);
    });
});

Template.mainContent.helpers({
  getCountdown: function() {
        var number = countdown.get();
        return number >= 10 ? '0:' + countdown.get() : '0:0' + countdown.get();
  },
  currentUser: function(){
    return Meteor.user();
  }
  // ,
  // 'noRender': function() {
  //     return Session.get('noRender');
  // }
});


Template.mainContent.rendered = function() {

  $('.menu .item').tab();

  if(!Router.current().params.week) {
    $.getJSON( "http://www.nfl.com/liveupdate/scorestrip/ss.json", {} )
      .done(function( json ) {
        Session.set('week', json.w);
      })
      .fail(function( jqxhr, textStatus, error ) {
        var err = textStatus + ", " + error;
        Router.go('/4', {week: 4}, {query: 'q=s', hash: 'hashFrag'});
      });
  }
};<commit_msg>Back to original Router render calls, remove auto-refresh data<commit_after>// var countdown = new ReactiveCountdown(30);
//
// countdown.start(function() {
//
//     // do something when this is completed
//     countdown.start();
//
//     $('.menu .item').tab();
//
//     Meteor.call('getGameData',function(response) {
//       // Session.set('noRender', true);
//       // Meteor.setTimeout(function() {
//         // Session.set('noRender', false);
//       // }, 1);
//     });
// });

Template.mainContent.helpers({
  currentUser: function(){
    return Meteor.user();
  }
  // ,
  // 'noRender': function() {
  //     return Session.get('noRender');
  // }
});


Template.mainContent.rendered = function() {

  $('.menu .item').tab();

  if(!Router.current().params.week) {
    $.getJSON( "http://www.nfl.com/liveupdate/scorestrip/ss.json", {} )
      .done(function( json ) {
        Session.set('week', json.w);
        Meteor.call('getGameData',function(response) {
          Router.current().render(Template.mainContentScores, { to: 'mainContentScores' });
          Router.current().render(Template.mainContentVersus, { to: 'mainContentVersus' });
        });
      })
      .fail(function( jqxhr, textStatus, error ) {
        var err = textStatus + ", " + error;
        Router.go('/4', {week: 4}, {query: 'q=s', hash: 'hashFrag'});
      });
  }
};
{'fraction_non_alphanumeric': 0.20843183609141056, 'fraction_numerical': 0.00591016548463357, 'mean_word_length': 2.551048951048951, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6694002', 'n_tokens_mistral': 851, 'n_tokens_neox': 820, 'n_words': 140}