14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
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();
|