<commit_before>'use strict';

(function(module) {
  const gameView = {};

  // gameView.displayArticles = function(ctx) {
  //   // if (!Game.allGames.length) {
  //   //   console.log('no data in array, populating');
  //     // gameController.init();
  //   // }
  //   console.log('this is displayArticles');
  //     $('#game-info').show().siblings().hide();
  //     $('#hero-img').show();
  //     let temp = $('#g' + ctx.params.id);
  //     console.log(temp, 'temp');
  //     $('#g' + ctx.params.id).removeClass();
  // };

  gameView.setClickHandler = () => {
    $('#index ').on('click', (e) => {
      e.preventDefault();
      let id = $(e.target).parent().parent().attr('id');
      page('/gameView/' + id); //eslint-disable-line
    });
  };

  gameView.initGamePage = (id) => {
    $('#game-info').html('');
    Game.allGames.forEach(gameItem => { //eslint-disable-line
      $('#game-info').append(gameItem.toHtml());
    });
    $('#game-info').show().siblings().hide();

    let temp = $('#g' + id);
    $('#g' + id).removeClass().addClass('image-container');;

  };

  module.gameView = gameView;
})(window);<commit_msg>fixed issue with clicking on space around game images<commit_after>'use strict';

(function(module) {
  const gameView = {};

  // gameView.displayArticles = function(ctx) {
  //   // if (!Game.allGames.length) {
  //   //   console.log('no data in array, populating');
  //     // gameController.init();
  //   // }
  //   console.log('this is displayArticles');
  //     $('#game-info').show().siblings().hide();
  //     $('#hero-img').show();
  //     let temp = $('#g' + ctx.params.id);
  //     console.log(temp, 'temp');
  //     $('#g' + ctx.params.id).removeClass();
  // };

  gameView.setClickHandler = () => {
    $('#index li').on('click', (e) => {
      e.preventDefault();
      let id = $(e.target).parent().parent().attr('id');
      page('/gameView/' + id); //eslint-disable-line
    });
  };

  gameView.initGamePage = (id) => {
    $('#game-info').html('');
    Game.allGames.forEach(gameItem => { //eslint-disable-line
      $('#game-info').append(gameItem.toHtml());
    });
    $('#game-info').show().siblings().hide();

    let temp = $('#g' + id);
    $('#g' + id).removeClass().addClass('image-container');;

  };

  module.gameView = gameView;
})(window);
{'fraction_non_alphanumeric': 0.2566752799310939, 'fraction_numerical': 0.0, 'mean_word_length': 2.601550387596899, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2990979', 'n_tokens_mistral': 783, 'n_tokens_neox': 790, 'n_words': 117}