example-in-django-waiting-r.../waiting_room/templates/components/tasks/layout.html

17 lines
410 B
HTML
Raw Normal View History

2024-11-07 08:17:10 +01:00
<section
id="component-notification"
hx-ext="ws"
style="
position: fixed;
right: 0;
bottom: 0;
padding: 2rem;
background: lightgray;
">
{% include 'components/tasks/update.html' %}
2024-11-07 16:20:51 +01:00
{% include 'components/tasks/location.html' %}
2024-11-07 08:17:10 +01:00
</section>
<script>
document.querySelector('#component-notification').setAttribute('ws-connect', '/ws/' + localStorage.getItem('userId') + '/');
</script>