pinafore/routes/_components/dialog/createDialogElement.js

8 lines
217 B
JavaScript
Raw Normal View History

2018-04-01 03:46:44 +02: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
}