Skip to content

Commit

Permalink
add html ids to clear rulers, zoom fit, and reload buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Jul 16, 2024
1 parent 987e74f commit 71e0e25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kweb/static/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function showMenu(modes, annotations) {
let menuElement = document.getElementById("menu");

let clearRulers = document.createElement("button");
clearRulers.id = "clearRulers";
clearRulers.textContent = "Clear Rulers";
clearRulers.className = "col-auto btn btn-primary mx-2";
clearRulers.setAttribute("type", "button");
Expand All @@ -210,6 +211,7 @@ function showMenu(modes, annotations) {
};
menuElement.appendChild(clearRulers);
let zoomFit= document.createElement("button");
zoomFit.id = "zoomFit";
zoomFit.textContent = "Zoom Fit";
zoomFit.className = "col-auto btn btn-primary mx-2";
zoomFit.setAttribute("type", "button");
Expand All @@ -218,6 +220,7 @@ function showMenu(modes, annotations) {
};
menuElement.appendChild(zoomFit);
let reload = document.createElement("button");
reload.id = "reload";
reload.textContent = "Reload";
reload.className = "col-auto btn btn-primary mx-2";
reload.setAttribute("type", "button");
Expand Down

0 comments on commit 71e0e25

Please sign in to comment.