Browse Source

Fix #1928

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

9
sapl/templates/index.html

@ -192,4 +192,11 @@
</div>
</div>
{% endblock %}
<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 %}

15
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)
});
</script>
</script>

Loading…
Cancel
Save