Skip to content

Commit

Permalink
📝 Whitespace commit (WOOHOOOgit push)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyBlaze committed Jul 23, 2016
1 parent 1e61888 commit 9c84ee7
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions octoprint_fullscreen/static/js/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
* License: AGPLv3
*/
$(function() {
function FullscreenViewModel(parameters) {
var self = this;
function FullscreenViewModel(parameters) {
var self = this;
var $webcam = $('#webcam_image');
var $container = $('#webcam_rotator');
var $info = $('#fullscreen-bar');
var $body = $('body');

self.tempModel = parameters[0];
self.tempModel = parameters[0];
self.printer = parameters[2];
self.settings = parameters[1];
self.settings = parameters[1];

self.printer.isFullscreen = ko.observable(false);
self.printer.fullscreen = function() {
Expand Down Expand Up @@ -43,22 +43,22 @@ $(function() {
$("#job_pause").clone().appendTo(".user-buttons");

ko.applyBindings(self.printer, document.getElementById("fullscreen-cancel"))
}
}

OCTOPRINT_VIEWMODELS.push([
FullscreenViewModel,
["temperatureViewModel", "settingsViewModel", "printerStateViewModel"],
["#fullscreen-info"]
]);
OCTOPRINT_VIEWMODELS.push([
FullscreenViewModel,
["temperatureViewModel", "settingsViewModel", "printerStateViewModel"],
["#fullscreen-info"]
]);
});

function formatBarTemperature(toolName, actual, target) {
var output = toolName + ": " + _.sprintf("%.1f°C", actual);
var output = toolName + ": " + _.sprintf("%.1f°C", actual);

if (target) {
var sign = (target >= actual) ? " \u21D7 " : " \u21D8 ";
output += sign + _.sprintf("%.1f°C", target);
}
if (target) {
var sign = (target >= actual) ? " \u21D7 " : " \u21D8 ";
output += sign + _.sprintf("%.1f°C", target);
}

return output;
return output;
};

0 comments on commit 9c84ee7

Please sign in to comment.