From d473a21f1f07e7d53944aa63c1d1b3840f430bed Mon Sep 17 00:00:00 2001 From: Cesar Augusto de Carvalho Date: Fri, 28 Jun 2019 12:45:51 -0300 Subject: [PATCH] HOT-FIX: Melhora HTML de voto nominal (#2858) --- sapl/templates/painel/voto_nominal.html | 94 ++++++++++++------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index aa1a8f9cf..ecd915c25 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -90,25 +90,23 @@

{% csrf_token %} -
-
+
- -
-   -
-   -
+
+   +
+   +
-
-
-
-
-
-
-
- +
+
+
+ + + + +
{% else %} @@ -139,11 +137,13 @@ document.getElementById("date").innerHTML = n; $(window).on('beforeunload', function () { - $("input[type=submit], input[type=button]").prop("disabled", "disabled"); - }); - $( "#votosim" ).mouseleave(function(){document.location.reload(true);}); - $( "#votonao" ).mouseleave(function(){document.location.reload(true);}); - $( "#votoabstencao" ).mouseleave(function(){document.location.reload(true);}); + $("input[type=submit], input[type=button]").prop("disabled", "disabled"); + }); + + //TODO: Este código é necessário? + // $( "#votosim" ).mouseleave(function(){document.location.reload(true);}); + // $( "#votonao" ).mouseleave(function(){document.location.reload(true);}); + // $( "#votoabstencao" ).mouseleave(function(){document.location.reload(true);}); $(document).on('keyup', (e) => { var tecla_press = e.keyCode; @@ -160,34 +160,34 @@ case 86: //86 = valor da tecla V document.querySelectorAll("#voltar button")[0].click(); break; - }; }); - $(document).ready( - function(){ - - function checkTime(i) { - if (i<10) {i = "0" + i}; // add zero in front of numbers < 10 - return i; - } - function startTime() { - var today=new Date(); - var h=today.getHours(); - var m=today.getMinutes(); - var s=today.getSeconds(); - m = checkTime(m); - s = checkTime(s); - $("#relogio").text(h+":"+m+":"+s) - var t = setTimeout(function(){ - startTime() - }, 500); - } - startTime(); - - setTimeout(function() { - document.location.reload(true); - }, 30000) - }); + function checkTime(i) { + if (i<10) + i = "0" + i; // add zero in front of numbers < 10 + return i; + } + + function startTime() { + var today=new Date(); + var h=today.getHours(); + var m=today.getMinutes(); + var s=today.getSeconds(); + m = checkTime(m); + s = checkTime(s); + $("#relogio").text(h+":"+m+":"+s) + var t = setTimeout(function(){ + startTime() + }, 500); + } + + $(document).ready(function(){ + startTime(); + + setTimeout(function() { + document.location.reload(true); + }, 30000) + });