Commit e9c4b1470e473882579bc142e6fed62165477434

Authored by Ábner Silva de Oliveira
1 parent 6c2e09e1

fixing bug in high contrast

Showing 2 changed files with 3 additions and 8 deletions   Show diff stats
header.rhtml
1   -<script type='text/javascript'>
2   -(function($) {
3   - if($.cookie("high_contrast") === 'true'){
4   - $( "body" ).toggleClass( "contraste" );
5   - }
6   -})(jQuery);
7   -</script>
8 1 <div id="barra-brasil">
9 2 <a href="http://brasil.gov.br" style="background:#7F7F7F; height: 20px; padding:4px 0 4px 10px; display: block; font-family:sans,sans-serif; text-decoration:none; color:white; ">Portal do Governo Brasileiro</a>
10 3 </div>
... ...
theme.js
1 1 (function($) {
2   -
  2 + if($.cookie("high_contrast") === 'true'){
  3 + $( "body" ).toggleClass( "contraste" );
  4 + }
3 5 // Run code
4 6 $( "#siteaction-contraste a" ).click(function() {
5 7 $( "body" ).toggleClass( "contraste" );
... ...