Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(function() {
container = domify('<div></div>');
document.body.appendChild(container);
});
function createOverlay() {
var element = highlight(domify('<div>OV<br>#' + (overlaysCounter++) + '</div>'));
assign(element.style, { width: 40, height: 40 });
return element;
}
function Popup(options) {
options = options || {};
this.template = options.template || this.template;
var el = this.el = domify(this.template);
this.header = domQuery('.popup-header', el);
this.body = domQuery('.popup-body', el);
this.footer = domQuery('.popup-footer', el);
document.body.appendChild(el);
this._attachEvents();
}
export function open() {
if (!lightbox) {
lightbox = domify(LIGHTBOX_MARKUP);
domDelegate.bind(lightbox, '.backdrop', 'click', function(event) {
document.body.removeChild(lightbox);
});
}
document.body.appendChild(lightbox);
}
export function open() {
if (!lightbox) {
lightbox = domify(LIGHTBOX_MARKUP);
domDelegate.bind(lightbox, '.backdrop', 'click', function(event) {
document.body.removeChild(lightbox);
});
}
document.body.appendChild(lightbox);
}