Skip to content

Commit

Permalink
demo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leao authored and Eduardo Leao committed Mar 26, 2024
1 parent c4c3611 commit 9d30388
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2>Graph</h2>
inputField.type = 'number';
// The next Box has as many neurons as last current Box:
inputField.value = boxCount[boxCount.length -1] || '10';
inputField.max = '128';
inputField.max = '100';
inputField.idx = boxCount.length;
inputField.id = `box-input`;
inputField.onchange = function() {
Expand All @@ -131,15 +131,15 @@ <h2>Graph</h2>
};

function changeDim(el, boxCount) {
if (el.value > 128) {
el.value = 128;
if (el.value > 100) {
el.value = 100;
};
boxCount[el.idx] = Number(el.value);
};

function checkInput(el){
if (el.value > 64) {
el.value = 64;
if (el.value > 32) {
el.value = 32;
};
}

Expand Down

0 comments on commit 9d30388

Please sign in to comment.