Commit e9b7a71beb01741b78cda8e2fd95707af64c7f64
1 parent
f40e2f4c
Exists in
master
and in
1 other branch
git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%2…
…0Web/Fontes/avaliador-web@10603 c2178572-b5ca-4887-91d2-9e3a90c7d55b
Showing
1 changed file
with
56 additions
and
6 deletions
Show diff stats
src/main/webapp/inicial_arquivos/js/acessibilidade.js
1 | 1 | |
2 | -/** | |
3 | -* FUNCAO QUE LIMPA OS INPUT TEXT. | |
4 | -*/ | |
5 | -function clearDefault(el) { | |
6 | - if (el.defaultValue==el.value) el.value = "" | |
7 | -} | |
8 | 2 | \ No newline at end of file |
3 | + | |
4 | +//Contraste | |
5 | +function configContrastePadrao(){ | |
6 | + if(!$.cookie("contraste")) | |
7 | + { | |
8 | + $.cookie("contraste", "", { path: '/' }); | |
9 | + } | |
10 | + | |
11 | + if($.cookie("contraste") && $.cookie("contraste") != "") | |
12 | + { | |
13 | + $("body").addClass($.cookie("contraste")); | |
14 | + } | |
15 | +} | |
16 | + | |
17 | +function selecionaContraste(){ | |
18 | + | |
19 | + if ($.cookie("contraste") == "") | |
20 | + { | |
21 | + $("body").addClass("contraste"); | |
22 | + | |
23 | + $.cookie("contraste", "contraste", { path: '/' }); | |
24 | + } | |
25 | + else | |
26 | + { | |
27 | + $('body').removeClass("contraste") | |
28 | + | |
29 | + $.cookie("contraste", "", { path: '/' }); | |
30 | + } | |
31 | +} | |
32 | + | |
33 | +$(document).ready(function() { | |
34 | + configContrastePadrao(); | |
35 | + | |
36 | + $("#ancoraConteudo").click(function(){ gotoConteudo(); return false;}); | |
37 | + $("#ancoraMenu").click(function(){ gotoMenu(); return false;}); | |
38 | + $("#altoContraste").click(function(){selecionaContraste(); return false;}); | |
39 | + | |
40 | + $(document).bind("keydown", "Alt+Shift+1", function(){ gotoConteudo(); return false;}); | |
41 | + $(document).bind("keydown", "Alt+1", function(){ gotoConteudo(); return false;}); | |
42 | + | |
43 | + $(document).bind("keydown", "Alt+Shift+2", function(){ gotoMenu(); return false;}); | |
44 | + $(document).bind("keydown", "Alt+2", function(){ gotoMenu(); return false;}); | |
45 | + | |
46 | + $(document).bind("keydown", "Alt+Shift+4", function(){ selecionaContraste(); return false;}); | |
47 | + $(document).bind("keydown", "Alt+4", function(){ selecionaContraste(); return false;}); | |
48 | + | |
49 | + $(document).bind("keydown", "Alt+Shift+5", function(){ gotoAcessibilidade(); return false;}); | |
50 | + $(document).bind("keydown", "Alt+5", function(){ gotoAcessibilidade(); return false;}); | |
51 | + | |
52 | + $(document).bind("keydown", "Alt+Shift+6", function(){ gotoAnterior(); return false;}); | |
53 | + $(document).bind("keydown", "Alt+6", function(){ gotoAnterior(); return false;}); | |
54 | + | |
55 | + $(document).bind("keydown", "Alt+Shift+7", function(){ gotoSeguinte(); return false;}); | |
56 | + $(document).bind("keydown", "Alt+7", function(){ gotoSeguinte(); return false;}); | |
57 | +}); | |
58 | + | ... | ... |