Difference: JavaScript (10 vs. 11)

Revision 1117 Aug 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
Line: 40 to 40
  $(".active").parents("ul ul").slideToggle("normal");

//marca como "destacado" o item do menu de teses e dissertações

Changed:
<
<
$("[href*='TesesDissertacoes']").parent("#menu li").addClass("destacado");
>
>
$("[href*='DissertacoesDefendidas']").parent("#menu li").addClass("destacado");
  //links externos abrem em janelas novas $("[href*='http://']").attr("target", "_blank");
Line: 48 to 48
  //coloca o primeiro h2 como título no navegador var titulo = $(".post h2").html();
Changed:
<
<
titulo = titulo.substr(titulo.lastIndexOf(">") + 1);
>
>
//titulo = titulo.substr(titulo.lastIndexOf("") + 1); if (titulo)
  document.title += " - " + titulo;

//macra com a classe "title" o primeiro h2 do post

 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback