Skip to content

Commit

Permalink
update from devel 276a98e
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarnakov committed Jan 14, 2024
1 parent 2ef560f commit 8a5f1c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitrev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0bc057b
276a98e
6 changes: 2 additions & 4 deletions poisson/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@
<div style="margin:auto;">
<input type="button" title="space" class="button" id="button_pause" value="pause" onclick="togglePause();">
<input type="button" title='r' class="button" id="button_restart" value="restart" onclick="pressButton('r')">
<input type="button" title='o' class="button" id="button_o" value="reset opt" onclick="pressButton('o')">
</div>
<div style="width:400px;margin:auto;text-align:left;">
<kbd>click</kbd> draw mask,
<kbd>space</kbd> toggle pause,
<kbd>r</kbd> restart,
<kbd>r</kbd> restart
<br>
<kbd>o</kbd> reset optimizer<br>
<span id="text_status" style="margin-top:5px;"></span>
<div id="text_status" style="margin-top:10px;"></div>
</div>
<!--
<div style="display: inline-block; vertical-align: top; margin: 0;">
Expand Down
2 changes: 1 addition & 1 deletion poisson/poisson.js

Large diffs are not rendered by default.

Binary file modified poisson/poisson.wasm
Binary file not shown.
5 changes: 3 additions & 2 deletions poisson/poisson_inc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function restart() {
}

function setButtonStyle(button_name, pressed) {
document.getElementById('button_' + button_name).className = pressed ? "button pressed" : "button";
document.getElementById('button_' + button_name).className =
pressed ? 'button pressed' : 'button';
}

function syncButtons() {
Expand Down Expand Up @@ -172,7 +173,7 @@ function postRun() {

// Disable Space on buttons.
[
window.button_pause, window.button_restart, window.button_i,
window.button_pause, window.button_restart,
].forEach(b => {
b.addEventListener('keydown', function(e){
if (e.key == ' ') {
Expand Down

0 comments on commit 8a5f1c7

Please sign in to comment.