ProjetRIOT/components/school-info.riot

25 lines
768 B
Plaintext
Raw Normal View History

2023-03-28 13:06:28 +02:00
<school-info>
<div if={state.enabled} style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background: #000000DD;">
<div style="position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; background: #FFFFFF">
<button onclick={closeWindow}>X</button>
<p>
<h2></h2>
</p>
<line-graph style="height: 90px; margin: 10px;"></line-graph>
</div>
2023-03-25 20:29:49 +01:00
</div>
<script>
export default {
onMounted() {
2023-03-28 13:06:28 +02:00
this.state.enabled = true
this.update()
2023-03-28 10:22:35 +02:00
},
closeWindow() {
2023-03-28 13:06:28 +02:00
this.state.enabled = false
this.update()
2023-03-25 20:29:49 +01:00
}
}
</script>
</school-info>