export class Message{ constructor(content){ this.content = content; let closeIcon = `${exports.resourcePath}/icons/close.svg`; this.element = $(`
`); this.elClose = this.element.find("img[name=close]"); this.elContainer = this.element.find("span[name=content_container]"); if(typeof content === "string"){ this.elContainer.append($(`${content}`)); }else{ this.elContainer.append(content); } } setMessage(content){ this.elContainer.empty(); if(typeof content === "string"){ this.elContainer.append($(`${content}`)); }else{ this.elContainer.append(content); } } }