UNPKG

agentscape

Version:

Agentscape is a library for creating agent-based simulations. It provides a simple API for defining agents and their behavior, and for defining the environment in which the agents interact. Agentscape is designed to be flexible and extensible, allowing

37 lines (35 loc) 1.08 kB
class AppFooter extends HTMLElement { constructor() { super(); // sticky footer const style = ` :root { width: auto; } :host { height: 25px; border-top: 1px solid black; position: fixed; left: 0; bottom: 0; width: 100%; } footer { background-color: white; padding: 3px; } `; const template = document.createElement('template'); template.innerHTML = ` <style>${style}</style> <footer> <a href="https://gitlab.com/ben_goodman/agentscape" target="_blank">Agentscape v1.5.0</a> </footer> `; const shadowRoot = this.attachShadow({ mode: 'open' }); shadowRoot.appendChild(template.content.cloneNode(true)); } } window.customElements.define('app-footer', AppFooter); export default AppFooter; //# sourceMappingURL=AppFooter.js.map