From 57db09101dba1cdc7b2110f82d900f22d13be72f Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Mon, 22 Jan 2018 13:53:24 -0200 Subject: [PATCH] =?UTF-8?q?Adiciona=20sinal=20sonoro=20autom=C3=A1tico=20a?= =?UTF-8?q?o=20faltar=2030=20segundos=20para=20o=20t=C3=A9rmino=20do=20tem?= =?UTF-8?q?po=20de=20fala=20#1616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/templates/painel/index.html | 14 +++++++++++++- sapl/templates/sessao/painel.html | 8 +++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index 77751f92e..62ef26f45 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -295,6 +295,18 @@ ordem_previous = ordem_current; } + if($('#cronometro_discurso').runner('info').formattedTime == 30) { + audioAlertFinish.play(); + } + + if($('#cronometro_aparte').runner('info').formattedTime == 30) { + audioAlertFinish.play(); + } + + if($('#cronometro_ordem').runner('info').formattedTime == 30) { + audioAlertFinish.play(); + } + if (data['materia_legislativa_texto']){ $("#materia_legislativa_texto").text(data["materia_legislativa_texto"]); } @@ -328,7 +340,7 @@ console.error(err); }, dataType: "json", - complete: setTimeout(function() {poll()}, 2000), + complete: setTimeout(function() {poll()}, 500), timeout: 20000 // TODO: decrease }) })(); diff --git a/sapl/templates/sessao/painel.html b/sapl/templates/sessao/painel.html index 1b11bba3c..22dc62dda 100644 --- a/sapl/templates/sessao/painel.html +++ b/sapl/templates/sessao/painel.html @@ -11,7 +11,9 @@ {% block detail_content %} - + + +
@@ -77,10 +79,6 @@