Commit 89dc1422c3927419540565d4dd6289bc1d464b0a
1 parent
fc579f1e
Exists in
master
and in
1 other branch
Correção da chamada para as Abas e nova funcionalidade que cria os
href's nos links utilizados para navegação via tecla "tab"
Showing
1 changed file
with
41 additions
and
16 deletions
Show diff stats
src/main/webapp/inicial_arquivos/js/tab_avaliar_script.js
... | ... | @@ -2,12 +2,32 @@ |
2 | 2 | $(document).ready(function() |
3 | 3 | |
4 | 4 | { |
5 | - | |
6 | - $("#tabelaErros a").click(function(){ | |
7 | - | |
5 | + | |
6 | + //abre a aba de resultados de acordo com o link clicado | |
7 | + $("#tabelaErros a").click(function(){ | |
8 | + $($(this).attr('id')).prop("checked", true); | |
9 | + }); | |
10 | + | |
11 | + //abre a aba de resultados de acordo com o link clicado | |
12 | + $("#tabelaErrossem_nota a").click(function(){ | |
8 | 13 | $($(this).attr('id')).prop("checked", true); |
9 | 14 | }); |
10 | 15 | |
16 | + | |
17 | + | |
18 | + $("#altoContraste a").attr("href", "#"); | |
19 | + $("#fim_mark").attr("href", "#"); | |
20 | + $("#inicio_behavior").attr("href", "#"); | |
21 | + $("#fim_behavior").attr("href", "#"); | |
22 | + $("#inicio_information").attr("href", "#"); | |
23 | + $("#fim_information").attr("href", "#"); | |
24 | + $("#inicio_presentation").attr("href", "#"); | |
25 | + $("#fim_presentation").attr("href", "#"); | |
26 | + $("#inicio_multimedia").attr("href", "#"); | |
27 | + $("#fim_multimedia").attr("href", "#"); | |
28 | + $("#inicio_form").attr("href", "#"); | |
29 | + | |
30 | + | |
11 | 31 | var teclaPressionada; |
12 | 32 | var shiftPressionado; |
13 | 33 | |
... | ... | @@ -15,19 +35,23 @@ $(document).ready(function() |
15 | 35 | |
16 | 36 | $(document).keydown(function(e) |
17 | 37 | { |
18 | - | |
38 | + | |
19 | 39 | if(e.which != 13 ) |
20 | 40 | { |
41 | + | |
21 | 42 | shiftPressionado = e.shiftKey; |
22 | 43 | teclaPressionada = e.which; |
23 | 44 | |
45 | + | |
24 | 46 | //Tab 1 |
25 | - $("#fim_mark").blur(function() { | |
47 | + $("#fim_mark").blur(function() { | |
26 | 48 | if (shiftPressionado == false && teclaPressionada == 9) { |
49 | + | |
27 | 50 | $("#tab-2").prop("checked", true); |
28 | 51 | } |
29 | 52 | }); |
30 | - | |
53 | + | |
54 | + | |
31 | 55 | //fim Tab 1 |
32 | 56 | |
33 | 57 | //Tab 2 |
... | ... | @@ -35,7 +59,7 @@ $(document).ready(function() |
35 | 59 | $("#inicio_behavior").blur(function() { |
36 | 60 | |
37 | 61 | if (shiftPressionado == true) |
38 | - { | |
62 | + { | |
39 | 63 | $("#tab-1").prop("checked", true); |
40 | 64 | } |
41 | 65 | |
... | ... | @@ -45,7 +69,8 @@ $(document).ready(function() |
45 | 69 | $("#fim_behavior").blur(function() { |
46 | 70 | |
47 | 71 | if (shiftPressionado == false && teclaPressionada == 9) |
48 | - { | |
72 | + { | |
73 | + | |
49 | 74 | $("#tab-3").prop("checked", true); |
50 | 75 | } |
51 | 76 | |
... | ... | @@ -57,7 +82,7 @@ $(document).ready(function() |
57 | 82 | $("#inicio_information").blur(function() { |
58 | 83 | |
59 | 84 | if (shiftPressionado == true) |
60 | - { | |
85 | + { | |
61 | 86 | $("#tab-2").prop("checked", true); |
62 | 87 | } |
63 | 88 | |
... | ... | @@ -67,7 +92,8 @@ $(document).ready(function() |
67 | 92 | $("#fim_information").blur(function() { |
68 | 93 | |
69 | 94 | if (shiftPressionado == false && teclaPressionada == 9) |
70 | - { | |
95 | + { | |
96 | + | |
71 | 97 | $("#tab-4").prop("checked", true); |
72 | 98 | } |
73 | 99 | |
... | ... | @@ -80,7 +106,7 @@ $(document).ready(function() |
80 | 106 | $("#inicio_presentation").blur(function() { |
81 | 107 | |
82 | 108 | if (shiftPressionado == true) |
83 | - { | |
109 | + { | |
84 | 110 | $("#tab-3").prop("checked", true); |
85 | 111 | } |
86 | 112 | |
... | ... | @@ -90,7 +116,7 @@ $(document).ready(function() |
90 | 116 | $("#fim_presentation").blur(function() { |
91 | 117 | |
92 | 118 | if (shiftPressionado == false && teclaPressionada == 9) |
93 | - { | |
119 | + { | |
94 | 120 | $("#tab-5").prop("checked", true); |
95 | 121 | } |
96 | 122 | |
... | ... | @@ -103,7 +129,7 @@ $(document).ready(function() |
103 | 129 | $("#inicio_multimedia").blur(function() { |
104 | 130 | |
105 | 131 | if (shiftPressionado == true) |
106 | - { | |
132 | + { | |
107 | 133 | $("#tab-4").prop("checked", true); |
108 | 134 | } |
109 | 135 | |
... | ... | @@ -113,7 +139,7 @@ $(document).ready(function() |
113 | 139 | $("#fim_multimedia").blur(function() { |
114 | 140 | |
115 | 141 | if (shiftPressionado == false && teclaPressionada == 9) |
116 | - { | |
142 | + { | |
117 | 143 | $("#tab-6").prop("checked", true); |
118 | 144 | } |
119 | 145 | |
... | ... | @@ -125,7 +151,7 @@ $(document).ready(function() |
125 | 151 | $("#inicio_form").blur(function() { |
126 | 152 | |
127 | 153 | if (shiftPressionado == true) |
128 | - { | |
154 | + { | |
129 | 155 | $("#tab-5").prop("checked", true); |
130 | 156 | } |
131 | 157 | |
... | ... | @@ -134,7 +160,6 @@ $(document).ready(function() |
134 | 160 | //Fim tab6 |
135 | 161 | |
136 | 162 | |
137 | - | |
138 | 163 | } |
139 | 164 | }); |
140 | 165 | ... | ... |