Removed live indicator + began to write graphics menu
This commit is contained in:
20
client/components/help_popup/help_popup.css
Normal file
20
client/components/help_popup/help_popup.css
Normal 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;
|
||||
}
|
22
client/components/help_popup/help_popup.js
Normal file
22
client/components/help_popup/help_popup.js
Normal 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);
|
Reference in New Issue
Block a user