Commit d9ebb5ea59d161d2c4255ae28755e1ee58260f37
1 parent
02c6bebf
Exists in
master
Correção da seta no mobile
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
recipes/default/assets/barra-functions.coffee
... | ... | @@ -38,4 +38,11 @@ scrollBarra = -> |
38 | 38 | , 100 |
39 | 39 | console.log element.scrollLeft |
40 | 40 | console.log element.scrollRight |
41 | + return | |
42 | + | |
43 | +checkScrollBarra = (objeto) -> | |
44 | + if objeto.scrollLeft >= (objeto.scrollWidth - objeto.clientWidth)-1 | |
45 | + document.getElementById('botao-seta-direita').style.display = 'none' | |
46 | + else | |
47 | + document.getElementById('botao-seta-direita').style.display = 'block' | |
41 | 48 | return |
42 | 49 | \ No newline at end of file | ... | ... |
recipes/default/assets/conteudo-barra_i18n.html
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | </div> |
5 | 5 | <div class="conteudo-barra-brasil"> |
6 | 6 | <a href="http://brasil.gov.br" class="pic-gov" title="GovBR">GovBR</a> |
7 | - <nav id="menu-barra-brasil"> | |
7 | + <nav id="menu-barra-brasil" onscroll="checkScrollBarra(this);"> | |
8 | 8 | <ul class="lista-barra-brasil"> |
9 | 9 | <li class="list-item"> |
10 | 10 | <a href="http://brasil.gov.br/barra#participe" class="link-barra link-externo-barra" onmouseover="hoverInOutLinksExternos(this);" onmouseout="hoverInOutLinksExternos(this);">Participe</a> | ... | ... |