|
@ -1,6 +1,5 @@ |
|
|
/* eslint-env browser */ |
|
|
/* eslint-env browser */ |
|
|
import 'babel-polyfill'; |
|
|
import 'babel-polyfill'; |
|
|
import whenDomReady from 'when-dom-ready'; |
|
|
|
|
|
import noUiSlider from 'nouislider'; |
|
|
import noUiSlider from 'nouislider'; |
|
|
import dogeSeed from '..'; |
|
|
import dogeSeed from '..'; |
|
|
import {version} from '../package'; |
|
|
import {version} from '../package'; |
|
@ -13,9 +12,6 @@ const bitsToWords = { |
|
|
256: 24 |
|
|
256: 24 |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const main = async () => { |
|
|
|
|
|
await whenDomReady(); |
|
|
|
|
|
|
|
|
|
|
|
document.querySelector('.version').innerText = `v${version}`; |
|
|
document.querySelector('.version').innerText = `v${version}`; |
|
|
|
|
|
|
|
|
const seedText = document.querySelector('.seed-text'); |
|
|
const seedText = document.querySelector('.seed-text'); |
|
@ -48,6 +44,3 @@ const main = async () => { |
|
|
bitSlider.on('update', generateSeed); |
|
|
bitSlider.on('update', generateSeed); |
|
|
|
|
|
|
|
|
generateSeed(); |
|
|
generateSeed(); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
main(); |
|
|
|
|
|