This repository has been archived on 2023-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
scripts-old/src/utils/showPopup.js

13 lines
316 B
JavaScript

export const POPUP_SELECTOR = '.popup_box';
const showPopup = ({ html, id, title } = {}) => {
Dialog.show(id, `<h3>${title}</h3>` + html);
const popup = document.querySelector(POPUP_SELECTOR);
if (popup) {
popup.style.width = 'auto';
popup.style.maxWidth = '1000px';
}
};
export default showPopup;