renamed "image" control to "color"
This commit is contained in:
parent
6df9ce23ab
commit
c4e9c72cc6
1 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@ function ComicBook(id, srcs, opts) {
|
|||
next: 78,
|
||||
previous: 80,
|
||||
control: {
|
||||
image: 69
|
||||
color: 69
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -158,7 +158,7 @@ function ComicBook(id, srcs, opts) {
|
|||
* Image enhancements
|
||||
* TODO: split out brightness / contrast controls?
|
||||
*/
|
||||
image: $(document.createElement("div"))
|
||||
color: $(document.createElement("div"))
|
||||
.attr("id", "color")
|
||||
.addClass("control floating")
|
||||
.append("<label>brightness</label>")
|
||||
|
@ -217,7 +217,7 @@ function ComicBook(id, srcs, opts) {
|
|||
$(canvas)
|
||||
.after(this.getControl("navigation").left)
|
||||
.after(this.getControl("navigation").right)
|
||||
.after(this.getControl("image").hide());
|
||||
.after(this.getControl("color").hide());
|
||||
|
||||
$("#desaturate").click(function(e){
|
||||
if ($(this).is(":checked")) {
|
||||
|
@ -606,8 +606,8 @@ function ComicBook(id, srcs, opts) {
|
|||
|
||||
if (e.keyCode === options.keyboard.previous) { side = "left"; }
|
||||
if (e.keyCode === options.keyboard.next) { side = "right"; }
|
||||
if (e.keyCode === options.keyboard.control.image) {
|
||||
ComicBook.prototype.toggleControl("image");
|
||||
if (e.keyCode === options.keyboard.control.color) {
|
||||
ComicBook.prototype.toggleControl("color");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue