Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehjohn committed Mar 16, 2024
1 parent cf19f8f commit d6f6d1d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Sudoku.Console/Supporting Files/Template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@
};
document.onkeyup = e => {
if (e.key === '-' || e.key === '_') {
if (zoom > 10) {
zoom -= 10;
} else if (zoom > 1) {
zoom--;
}
document.getElementsByTagName('body')[0].style.zoom = zoom + '%';
}
if (e.key === '+' || e.key === '=') {
zoom += 10;
if (zoom > 10) {
zoom += 10;
} else {
zoom++;
}
document.getElementsByTagName('body')[0].style.zoom = zoom + '%';
}
}
Expand Down

0 comments on commit d6f6d1d

Please sign in to comment.