1(function($){ 2 $size = localStorage.getItem('fontSize'); 3 $contrast = localStorage.getItem('contrast'); 4 5 $('*').each(function() { 6 // Tamanho da fonte 7 if ($size === 'aumentar') $(this).css('font-size', `${parseFloat($(this).css('font-size')) * 1.1}px`); 8 else if ($size === 'diminuir') $(this).css('font-size', `${parseFloat($(this).css('font-size')) * 0.8}px`); 9 10 // Contraste 11 if ($contrast === '1') $('body').addClass('contraste'); 12 }); 13 14 // Botões 15 $('.btnfont').click(function() { 16 $val = $(this).attr('data-value'); 17 if ($val === localStorage.getItem('fontSize')) return; 18 else if ($val) localStorage.setItem('fontSize', $val); 19 else localStorage.removeItem('fontSize'); 20 location.reload(); 21 }); 22 23 $('.btncontrast').click(function() { 24 if (!$contrast) localStorage.setItem('contrast', '1'); 25 else localStorage.removeItem('contrast'); 26 location.reload(); 27 }); 28 29 // Navegação pelo teclado 30 $(document).keydown(function (e) { 31 if (e.altKey) { 32 switch (e.keyCode) { 33 case 49: // Começo da página (Alt + 1) 34 e.preventDefault(); 35 e.stopPropagation(); 36 $(window).scrollTop(0); 37 break; 38 case 50: // InÃcio do menu (Alt + 2) 39 e.preventDefault(); 40 e.stopPropagation(); 41 $('.menu-modal').toggleClass('show-modal active'); 42 $('.menu-modal a').first().focus(); 43 break; 44 case 51: // Ativa a busca (Alt + 3) 45 e.preventDefault(); 46 e.stopPropagation(); 47 $('.search-modal').toggleClass('show-modal active'); 48 $('.search-modal .search-field').focus(); 49 break; 50 case 52: // Rodapé (Alt + 4) 51 e.preventDefault(); 52 e.stopPropagation(); 53 $(window).scrollTop($('#site-footer').offset().top); 54 break; 55 } 56 } 57 }) 58 59})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.