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,
|
next: 78,
|
||||||
previous: 80,
|
previous: 80,
|
||||||
control: {
|
control: {
|
||||||
image: 69
|
color: 69
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -158,7 +158,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
* Image enhancements
|
* Image enhancements
|
||||||
* TODO: split out brightness / contrast controls?
|
* TODO: split out brightness / contrast controls?
|
||||||
*/
|
*/
|
||||||
image: $(document.createElement("div"))
|
color: $(document.createElement("div"))
|
||||||
.attr("id", "color")
|
.attr("id", "color")
|
||||||
.addClass("control floating")
|
.addClass("control floating")
|
||||||
.append("<label>brightness</label>")
|
.append("<label>brightness</label>")
|
||||||
|
@ -217,7 +217,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
$(canvas)
|
$(canvas)
|
||||||
.after(this.getControl("navigation").left)
|
.after(this.getControl("navigation").left)
|
||||||
.after(this.getControl("navigation").right)
|
.after(this.getControl("navigation").right)
|
||||||
.after(this.getControl("image").hide());
|
.after(this.getControl("color").hide());
|
||||||
|
|
||||||
$("#desaturate").click(function(e){
|
$("#desaturate").click(function(e){
|
||||||
if ($(this).is(":checked")) {
|
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.previous) { side = "left"; }
|
||||||
if (e.keyCode === options.keyboard.next) { side = "right"; }
|
if (e.keyCode === options.keyboard.next) { side = "right"; }
|
||||||
if (e.keyCode === options.keyboard.control.image) {
|
if (e.keyCode === options.keyboard.control.color) {
|
||||||
ComicBook.prototype.toggleControl("image");
|
ComicBook.prototype.toggleControl("color");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue