Add templates
This commit is contained in:
15
waiting_room/templates/components/tasks/layout.html
Normal file
15
waiting_room/templates/components/tasks/layout.html
Normal file
@ -0,0 +1,15 @@
|
||||
<section
|
||||
id="component-notification"
|
||||
hx-ext="ws"
|
||||
style="
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 2rem;
|
||||
background: lightgray;
|
||||
">
|
||||
{% include 'components/tasks/update.html' %}
|
||||
</section>
|
||||
<script>
|
||||
document.querySelector('#component-notification').setAttribute('ws-connect', '/ws/' + localStorage.getItem('userId') + '/');
|
||||
</script>
|
Reference in New Issue
Block a user