import 'elements-sk/styles/buttons' | |
import { $$ } from 'common-sk/modules/dom' | |
import './index.js' | |
$$('#ask').addEventListener('click', e => { | |
$$('#dialog').open('Do something dangerous?').then(() => { | |
$$('#results').textContent = 'Confirmed!'; | |
}).catch(() => { | |
$$('#results').textContent = 'Cancelled!'; | |
}); | |
}) |