/* * Author: ntoff * License: AGPLv3 */ $(function() { function ExtraDistanceViewModel(parameters) { var self = this; self.control = parameters[0]; self.control.distances1 = ko.observableArray([0.01, 0.1, 1, 10]); self.control.distances2 = ko.observableArray([5, 50, 100, 150]); if ($("#touch body").length == 0) { $(".distance").remove(); $("#control-jog-z").after("\
\
\ \ \ \
\
\ \ \ \
\
\ "); } } OCTOPRINT_VIEWMODELS.push({ construct: ExtraDistanceViewModel, dependencies: [ "controlViewModel"] }); });