mixsy/index.js

14 lines
343 B
JavaScript
Raw Normal View History

2020-07-03 13:57:07 +00:00
import init, {merge} from './pkg/bitsy_merge.js';
async function run() {
await init();
document.getElementById('merge').addEventListener('click', () => {
let a = document.getElementById('a').value;
let b = document.getElementById('b').value;
document.getElementById('c').value = merge(a, b);
})
}
run();