{"size": 1235, "ext": "js", "max_stars_repo_path": "public/js/application.js", "max_stars_repo_name": "sagmor/mapsketcher", "max_stars_repo_stars_event_min_datetime": "2015-11-05T08:54:03.000Z", "max_stars_repo_stars_event_max_datetime": "2015-11-05T08:54:03.000Z", "max_issues_repo_path": "public/js/application.js", "max_issues_repo_name": "sagmor/mapsketcher", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/application.js", "max_forks_repo_name": "sagmor/mapsketcher", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0535714286, "max_line_length": 77, "alphanum_fraction": 0.5611336032}
var mapSketcherClient;
jQuery(function() {
  jQuery.getJSON('/config.json', function(config) {
    config.hostname = window.location.hostname
    mapSketcherClient = new MapSketcherClient(config);
    mapSketcherClient.launch();
  });

  $("a[rel]").overlay({
	  mask: {
		  color: '#ebecff'
		, loadSpeed: 200
		, opacity: 0.9
    , onLoad: function() {
        $('#name').focus();
      }
    , onClose: function() {
        $('#workspace').focus();
      }
    }
  });

  $('#collaborativeRoomSelection form .cancel').click(function(e) {
    $('.close').click();
    return e.preventDefault();
  });
  
  $('#collaborativeRoomSelection form').submit(function(e) {
    $('.close').click();
    
    mapSketcherClient.joinColaborativeRoom(this.name.value);

    return e.preventDefault();
  });

  $(function() {  
    $("#collaborativeRoomSelection form input").keypress(function (e) {  
        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {  
           $('#collaborativeRoomSelection form').submit();
            return false;  
        } else {  
            return true;  
        }  
    });  
  });
  


   $('#feedback').githubVoice('sagmor', 'mapsketcher');
   $('#personal').touchScrollable();




});
