fixevalidator
Some checks failed
Cadoles/nineskeletor/pipeline/head Build started...
Cadoles/nineskeletor/pipeline/pr-master There was a failure building this commit

This commit is contained in:
2023-01-05 20:07:17 +01:00
parent c6678e8e02
commit be78875030
554 changed files with 175 additions and 34 deletions

0
templates/Home/docrest.html.twig Normal file → Executable file
View File

4
templates/Home/home.html.twig Normal file → Executable file
View File

@ -8,10 +8,6 @@
{{ render(path("app_publish_sample",{id:1})) }}
</div>
<div class="col col-md6">
<h3>Chat #2</h3>
{{ render(path("app_publish_sample",{id:2})) }}
</div>
</div>
{% else %}
<div style="text-align:center">

0
templates/Home/mail.html.twig Normal file → Executable file
View File

0
templates/Home/noperm.html.twig Normal file → Executable file
View File

5
templates/Home/publishsample.html.twig Normal file → Executable file
View File

@ -15,7 +15,8 @@
const eventSource = new EventSource("{{ mercure('chat-'~id)|escape('js') }}");
eventSource.onopen = function(e) {
console.log("== ONOPEN");
console.log("== ONOPEN chat"+id{{idwidget}});
console.log("== SEND alive");
sendMessage{{idwidget}}(channel,id{{idwidget}},{command: "alive"});
};
@ -87,6 +88,8 @@
function send{{idwidget}}() {
if($("#chat{{idwidget}} #pushmessage").val()) {
console.log("SEND push")
sendMessage{{idwidget}}('chat',1,{command: "push", message:$("#chat{{idwidget}} #pushmessage").val()});
$("#chat{{idwidget}} #pushmessage").val("");
}