var LightControl = View.extend({ el: ".lightcontrol", events: { }, toggle: function(){ this.$el.toggleClass("active"); // toggle the class that makes the cursor a paintbucket // $("body").removeClass("pastePaper"); }, /* $("#shadow-control").on({ mousedown: function(){ app.dragging = true }, change: function(){ var hex = (~~($(this).int() / 100 * 0xff)).toString(10) if (hex.length == 1) hex = "0" + hex; var color = "rgba(" + [hex, hex, hex, "1.0"] + ")" $(".face").css("border-color", color) } }) $("#brightness-control").on({ mousedown: function(){ app.dragging = true }, change: function(){ var hex = (~~($(this).int() / 100 * 0xff)).toString(10) var color = "rgba(" + [hex, hex, hex, "0.9"] + ")" $("body,.face").css("background-color", color) } }) */ })