diff --git a/lib/ComicBook.js b/lib/ComicBook.js index a16105d..b8238fd 100755 --- a/lib/ComicBook.js +++ b/lib/ComicBook.js @@ -4,8 +4,9 @@ TODOs: Fo sho: + - make control images sprites + - disable the strech button if in an auto zoom mode - page controls - current page indicator - - style page controls - improve prev/next buttons, only show them when they can possibly work (not at beginning/end) - an "alert" control for any error messages / notifications ( & remove any instances of alert() ) - decouple controls from reader api @@ -163,6 +164,7 @@ function ComicBook(id, srcs, opts) { .addClass("cb-control") .append( $(document.createElement("button")) + .attr("title", "close the toolbar") .addClass("cb-close") .click(function(){ ComicBook.prototype.toggleToolbar(); @@ -170,6 +172,7 @@ function ComicBook(id, srcs, opts) { ) .append( $(document.createElement("button")) + .attr("title", "switch between dual and single page modes") .addClass("cb-layout " + options.displayMode) .click(function(){ ComicBook.prototype.toggleLayout(); @@ -177,6 +180,7 @@ function ComicBook(id, srcs, opts) { ) .append( $(document.createElement("button")) + .attr("title", "tweak the page colors") .addClass("cb-color cb-menu-button") .click(function(){ ComicBook.prototype.toggleControl("color"); @@ -184,6 +188,7 @@ function ComicBook(id, srcs, opts) { ) .append( $(document.createElement("button")) + .attr("title", "zoom out") .addClass("cb-zoom-out") .click(function(){ ComicBook.prototype.zoom(scale - 0.1); @@ -191,6 +196,7 @@ function ComicBook(id, srcs, opts) { ) .append( $(document.createElement("button")) + .attr("title", "zoom in") .addClass("cb-zoom-in") .click(function(){ ComicBook.prototype.zoom(scale + 0.1); @@ -198,6 +204,7 @@ function ComicBook(id, srcs, opts) { ) .append( $(document.createElement("button")) + .attr("title", "fit to page width") .addClass("cb-fit-width") .click(function(){ options.zoomMode = "fitWidth"