{"size": 865, "ext": "js", "max_stars_repo_path": "jQueryFile.js", "max_stars_repo_name": "baree99/Thermostat", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "jQueryFile.js", "max_issues_repo_name": "baree99/Thermostat", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "jQueryFile.js", "max_forks_repo_name": "baree99/Thermostat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.7142857143, "max_line_length": 75, "alphanum_fraction": 0.6011560694}
$( document ).ready(function() {

  var thermostat = new Thermostat();


  $("#up").click(function() {
    thermostat.up();
    $("#temperature-display").text(thermostat.temperatureDisplay() + "°C");
  });

  $("#down").click(function() {
    thermostat.down();
    $("#temperature-display").text(thermostat.temperatureDisplay() + "°C");
  });

  $("#powersavemode").click(function() {
    thermostat.powerSavingToggle();
    $("#temperature-display").text(thermostat.temperatureDisplay() + "°C");
  });

  $('label input[type="checkbox"]').each(function (){
    if($(this).hasClass('checked')){
      $(this).attr('checked', true);
    }
  });

  $("#reset").click(function() {
    thermostat.reset();
    $("#temperature-display").text(thermostat.temperatureDisplay() + "°C");
  });

  $("#temperature-display").text(thermostat.temperatureDisplay() + "°C");

});
