Removed live indicator + began to write graphics menu

This commit is contained in:
l_samenv
2024-08-08 16:19:21 +02:00
parent 13a105183b
commit aef9813590
14 changed files with 222 additions and 8 deletions

View File

@ -0,0 +1,20 @@
.help-popup{
width: 300px;
height: 200px;
border: 2px solid black;
background-color: white;
border-radius: 10px;
z-index: 2;
position: absolute;
box-sizing: border-box;
}
.help-popup-description-container{
margin-left: 10px;
margin-right: 10px;
padding-top: 10px;
}
.help-popup-description{
overflow-wrap: break-word;
}

View File

@ -0,0 +1,22 @@
class HelpPopup extends HTMLElement{
constructor(){
super();
}
connectedCallback(){
this.render();
}
render(){
this.innerHTML = `
<link rel="stylesheet" href="./components/help_popup/help_popup.css">
<div class="help-popup">
<div class="help-popup-description-container">
<span class="help-popup-description">${this.getAttribute("helpdescription")}</span>
</div>
</div>
`
}
}
customElements.define("sea-help-popup", HelpPopup);