Skip to content

Commit

Permalink
call gen also on load
Browse files Browse the repository at this point in the history
  • Loading branch information
superboum committed Jan 2, 2025
1 parent 6709d3e commit eb4da4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions algo/rail-fence/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const gen = () => {
const ret4 = dec.decode(ret3);
dr(ret4);
}
gen();
document.getElementById('alphabet').onload = gen;
document.getElementById('gen').addEventListener('click', gen);

0 comments on commit eb4da4e

Please sign in to comment.