Add templates
This commit is contained in:
@ -5,13 +5,16 @@
|
||||
{% block content %}
|
||||
<h1>Index</h1>
|
||||
<section
|
||||
id="form-start-task"
|
||||
hx-ext="ws"
|
||||
ws-connect="/ws/nombre_temporal/"
|
||||
>
|
||||
<form id="form" ws-send>
|
||||
<input type="submit" name="task" value="calculate">
|
||||
</form>
|
||||
</section>
|
||||
<script>
|
||||
document.querySelector('#form-start-task').setAttribute('ws-connect', '/ws/' + localStorage.getItem('userId') + '/');
|
||||
</script>
|
||||
<section>
|
||||
{% if result %}
|
||||
<h2>The result is {{ result }}</h2>
|
||||
|
Reference in New Issue
Block a user