diff --git a/sapl/templates/index.html b/sapl/templates/index.html index bbcfb97e2..69c53e075 100644 --- a/sapl/templates/index.html +++ b/sapl/templates/index.html @@ -192,4 +192,11 @@ -{% endblock %} \ No newline at end of file + +{% endblock %} diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index a1830a54a..1330b95ac 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -132,6 +132,17 @@ $( "#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) => {if (e.keyCode == 83){ + document.getElementsByClassName("btn btn-lg btn-success")[0].click() + };}); + $(document).on('keyup', (e) => {if (e.keyCode == 78){ + document.getElementsByClassName("btn btn-lg btn-danger")[0].click() + };}); + $(document).on('keyup', (e) => {if (e.keyCode == 65){ + document.getElementsByClassName("btn btn-lg btn-secondary")[0].click() + };}); + $(document).ready( function(){ @@ -154,8 +165,8 @@ startTime(); setTimeout(function() { - document.location.reload(true); + // document.location.reload(true); }, 30000) }); - \ No newline at end of file +