Browse Source

Fix #1928

pull/2343/head
Talitha 7 years ago
parent
commit
b0aec4b8b7
  1. 7
      sapl/templates/index.html
  2. 13
      sapl/templates/painel/voto_nominal.html

7
sapl/templates/index.html

@ -192,4 +192,11 @@
</div> </div>
</div> </div>
<script>
$(document).on('keyup', (e) => {
if (e.keyCode == 86){
window.open("{% url 'sapl.painel:voto_individual' %}",'Voto Individual','width=1000, height=800, scrollbars=yes');
};
});
</script>
{% endblock %} {% endblock %}

13
sapl/templates/painel/voto_nominal.html

@ -132,6 +132,17 @@
$( "#votosim" ).mouseleave(function(){document.location.reload(true);}); $( "#votosim" ).mouseleave(function(){document.location.reload(true);});
$( "#votonao" ).mouseleave(function(){document.location.reload(true);}); $( "#votonao" ).mouseleave(function(){document.location.reload(true);});
$( "#votoabstencao" ).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( $(document).ready(
function(){ function(){
@ -154,7 +165,7 @@
startTime(); startTime();
setTimeout(function() { setTimeout(function() {
document.location.reload(true); // document.location.reload(true);
}, 30000) }, 30000)
}); });

Loading…
Cancel
Save