Browse Source

Generate => Regenerate

pull/1/head
Luke Childs 6 years ago
parent
commit
f4b9c84ca5
  1. 2
      website/index.html
  2. 4
      website/index.js

2
website/index.html

@ -18,7 +18,7 @@
<div class="wrapper">
<div class="seed-text"></div>
<input class="bits" type="range" min="128" max="256" step="32" value="256" />
<button class="generate-seed" type="button">Generate Seed</button>
<button class="regenerate-seed" type="button">Regenerate Seed</button>
</div>
</section>

4
website/index.js

@ -7,11 +7,11 @@ const main = async () => {
const seedText = document.querySelector('.seed-text');
const bits = document.querySelector('.bits');
const generateSeedButton = document.querySelector('.generate-seed');
const regenerateSeedButton = document.querySelector('.regenerate-seed');
const generateSeed = () => seedText.innerText = dogeSeed(bits.value);
generateSeedButton.addEventListener('click', generateSeed);
regenerateSeedButton.addEventListener('click', generateSeed);
bits.addEventListener('input', generateSeed);
generateSeed();

Loading…
Cancel
Save