Browse Source

Adiciona sinal sonoro automático ao faltar 30 segundos para o término do tempo de fala #1616 (#1674)

pull/1678/head
VictorFabreF 7 years ago
committed by Edward
parent
commit
14d8a2b119
  1. 14
      sapl/templates/painel/index.html
  2. 8
      sapl/templates/sessao/painel.html

14
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
})
})();

8
sapl/templates/sessao/painel.html

@ -11,7 +11,9 @@
{% block detail_content %}
<audio type="hidden" id="audio" src="{% static 'audio/ring.mp3' %}"></audio>
<audio type="hidden" id="audio" src="{% static 'audio/ring.mp3' %}"></audio>
<div class="row">
<div class="col-md-6"><a href="" onclick="window.open('{% url 'sapl.painel:painel_principal' pk %}','Comprovante','width=800, height=800, scrollbars=yes'); return false;" class="btn btn-primary btn-sm active">Iniciar painel completo</a></div>
<div class="col-md-3"><button onclick="switch_painel(true)" id="id_abrir_painel" class="btn btn-primary btn-sm active" style="display: none">Abrir Painel</button></div>
@ -77,10 +79,6 @@
<script language="JavaScript">
$(function() {
function tocarSinalSonoro() {
alert('ok');
}
function checkTime(i) {
if (i<10) {i = "0" + i};
return i;

Loading…
Cancel
Save