dashboard-ui/modules/appfooter/appfooter.js
2023-08-31 15:30:17 +02:00

1 line
1.3 KiB
JavaScript

define(["exports","./../dom.js"],function(_exports,_dom){function AppFooter(){var elem;this.element=((elem=document.createElement("div")).classList.add("appfooter"),_dom.default.allowBackdropFilter()&&elem.classList.add("appfooter-withbackdropfilter"),document.body.appendChild(elem),elem)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/appfooter/appfooter.css"]),AppFooter.prototype.add=function(elem){"string"==typeof elem?this.element.insertAdjacentHTML("beforeend",elem):this.element.appendChild(elem)},AppFooter.prototype.insert=function(elem){var thisElement=this.element;"string"==typeof elem?thisElement.insertAdjacentHTML("afterbegin",elem):thisElement.insertBefore(elem,thisElement.firstChild)},AppFooter.prototype.setWithContent=function(withContent){var thisElement=this.element;withContent?thisElement.classList.add("appfooter-withContent"):thisElement.classList.remove("appfooter-withContent")},AppFooter.prototype.setWithContent50w=function(withContent){var thisElement=this.element;withContent?thisElement.classList.add("appfooter-withContent50w"):thisElement.classList.remove("appfooter-withContent50w")},AppFooter.prototype.destroy=function(){this.element=null};var _default=new AppFooter;_exports.default=_default});