pinafore/routes/_components/dialog/createDialogElement.js
2018-03-31 18:46:44 -07:00

8 lines
217 B
JavaScript

export function createDialogElement () {
let div = document.createElement('div')
div.setAttribute('class', 'modal-dialog')
div.setAttribute('aria-hidden', 'true')
document.body.appendChild(div)
return div
}