Commit d1c22d95f8f6d032cff8342fb39ac3a3175d363b

Authored by higo.gomes
1 parent 3fb682a0

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…

…0Web/Fontes/avaliador-web@10624 c2178572-b5ca-4887-91d2-9e3a90c7d55b
src/main/webapp/inicial_arquivos/js/tab_avaliar_script.js 0 → 100644
... ... @@ -0,0 +1,143 @@
  1 +
  2 +$(document).ready(function()
  3 +
  4 + {
  5 +
  6 + $("#tabelaErros a").click(function(){
  7 +
  8 + $($(this).attr('id')).prop("checked", true);
  9 + });
  10 +
  11 + var teclaPressionada;
  12 + var shiftPressionado;
  13 +
  14 +
  15 +
  16 + $(document).keydown(function(e)
  17 + {
  18 +
  19 + if(e.which != 13 )
  20 + {
  21 + shiftPressionado = e.shiftKey;
  22 + teclaPressionada = e.which;
  23 +
  24 + //Tab 1
  25 + $("#fim_mark").blur(function() {
  26 + if (shiftPressionado == false && teclaPressionada == 9) {
  27 + $("#tab-2").prop("checked", true);
  28 + }
  29 + });
  30 +
  31 + //fim Tab 1
  32 +
  33 + //Tab 2
  34 +
  35 + $("#inicio_behavior").blur(function() {
  36 +
  37 + if (shiftPressionado == true)
  38 + {
  39 + $("#tab-1").prop("checked", true);
  40 + }
  41 +
  42 + });
  43 +
  44 +
  45 + $("#fim_behavior").blur(function() {
  46 +
  47 + if (shiftPressionado == false && teclaPressionada == 9)
  48 + {
  49 + $("#tab-3").prop("checked", true);
  50 + }
  51 +
  52 + });
  53 + //fim Tab 2
  54 +
  55 + //Tab 3
  56 +
  57 + $("#inicio_information").blur(function() {
  58 +
  59 + if (shiftPressionado == true)
  60 + {
  61 + $("#tab-2").prop("checked", true);
  62 + }
  63 +
  64 + });
  65 +
  66 +
  67 + $("#fim_information").blur(function() {
  68 +
  69 + if (shiftPressionado == false && teclaPressionada == 9)
  70 + {
  71 + $("#tab-4").prop("checked", true);
  72 + }
  73 +
  74 + });
  75 +
  76 + //Fim Tab 3
  77 +
  78 + //Tab 4
  79 +
  80 + $("#inicio_presentation").blur(function() {
  81 +
  82 + if (shiftPressionado == true)
  83 + {
  84 + $("#tab-3").prop("checked", true);
  85 + }
  86 +
  87 + });
  88 +
  89 +
  90 + $("#fim_presentation").blur(function() {
  91 +
  92 + if (shiftPressionado == false && teclaPressionada == 9)
  93 + {
  94 + $("#tab-5").prop("checked", true);
  95 + }
  96 +
  97 + });
  98 +
  99 + //Fim Tab 4
  100 +
  101 + //Tab 5
  102 +
  103 + $("#inicio_multimedia").blur(function() {
  104 +
  105 + if (shiftPressionado == true)
  106 + {
  107 + $("#tab-4").prop("checked", true);
  108 + }
  109 +
  110 + });
  111 +
  112 +
  113 + $("#fim_multimedia").blur(function() {
  114 +
  115 + if (shiftPressionado == false && teclaPressionada == 9)
  116 + {
  117 + $("#tab-6").prop("checked", true);
  118 + }
  119 +
  120 + });
  121 +
  122 + //Fim Tab 5
  123 +
  124 + //Tab 6
  125 + $("#inicio_form").blur(function() {
  126 +
  127 + if (shiftPressionado == true)
  128 + {
  129 + $("#tab-5").prop("checked", true);
  130 + }
  131 +
  132 + });
  133 +
  134 + //Fim tab6
  135 +
  136 +
  137 +
  138 + }
  139 + });
  140 +
  141 +
  142 +
  143 + });
0 144 \ No newline at end of file
... ...