added a button to invert page controls

main
Mojo 4 years ago
parent 5964ee763c
commit c1174c2e8b
  1. BIN
      reader/img/invert.png
  2. 4
      reader/js/reader.js
  3. 3
      reader/reader.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

@ -172,6 +172,10 @@ document.getElementById("fitButton").addEventListener("click", function (e) {
loadPage(); loadPage();
}); });
document.getElementById("invertButton").addEventListener("click", function (e) {
invertPage();
});
document.getElementById("titlebarContainer").addEventListener("mouseenter", function () { document.getElementById("titlebarContainer").addEventListener("mouseenter", function () {
document.getElementById("titlebar").style.visibility = "visible"; document.getElementById("titlebar").style.visibility = "visible";
}); });

@ -26,6 +26,9 @@
<button class="titlebarButton" id="fitButton"> <button class="titlebarButton" id="fitButton">
<img class="titlebarIcon" id="fitIcon" src="img/height.png"/> <img class="titlebarIcon" id="fitIcon" src="img/height.png"/>
</button> </button>
<button class="titlebarButton" id="invertButton">
<img class="titlebarIcon" id="invertIcon" src="img/invert.png"/>
</button>
</div> </div>
</div> </div>

Loading…
Cancel
Save