pinafore/routes/_components/dialog/helpers/createDialogElement.js

8 lines
217 B
JavaScript
Raw Normal View History

2018-04-01 01:46:44 +00:00
export function createDialogElement () {
let div = document.createElement('div')
div.setAttribute('class', 'modal-dialog')
div.setAttribute('aria-hidden', 'true')
document.body.appendChild(div)
return div
}