
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 23 to 23 | ||||||||
| }); //coloca o degrade fora do corpo | ||||||||
| Changed: | ||||||||
| < <  | $("#menu").children("ul").children("li").prepend(" | |||||||
| > >  | //$("#menu").children("ul").children("li").prepend(" | |||||||
| //marca o primeiro item de menu com a classe "first" (necessário p/ IE) $("#menu li:first-child").addClass("first"); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 22 to 22 | ||||||||
| } }); | ||||||||
| Added: | ||||||||
| > >  | //coloca o degrade fora do corpo
$("#menu").children("ul").children("li").prepend(" | |||||||
| //marca o primeiro item de menu com a classe "first" (necessário p/ IE) $("#menu li:first-child").addClass("first"); | ||||||||
| Line: 75 to 78 | ||||||||
| Added: | ||||||||
| > >  | 
  | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 62 to 62 | ||||||||
| total = total.getElementsByTagName("img").length; it = Math.floor(Math.random()*total); $("#splash img:eq("+it+")").show(); | ||||||||
| Changed: | ||||||||
| < <  | tout = setTimeout('rodaTopo()', 60000); | |||||||
| > >  | tout = setTimeout('rodaTopo()', 30000); | |||||||
| } }); | ||||||||
| 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 | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 61 to 61 | ||||||||
| total = total.getElementsByTagName("img").length; it = Math.floor(Math.random()*total); $("#splash img:eq("+it+")").show(); | ||||||||
| Changed: | ||||||||
| < <  | rodaTopo(); | |||||||
| > >  | tout = setTimeout('rodaTopo()', 60000); | |||||||
| } }); function rodaTopo() { | ||||||||
| Changed: | ||||||||
| < <  | $("#splash img:eq("+ it%total +")").fadeTo("slow", 0); $("#splash img:eq("+ it++%total +")").toggle(); $("#splash img:eq("+ it%total +")").toggle(); $("#splash img:eq("+ it%total +")").fadeTo(0); $("#splash img:eq("+ it%total +")").fadeTo("slow", 1); tout = setTimeout('rodaTopo()', 1000); | |||||||
| > >  | $("#splash img:eq("+ it++%total +")").fadeOut(2000); $("#splash img:eq("+ it%total +")").fadeIn(2000); tout = setTimeout('rodaTopo()', 60000); | |||||||
| } | ||||||||
| Deleted: | ||||||||
| < <  | function changeDestaques(valor) { toggleDestaque(it%total); it = valor-1; toggleDestaque(it%total); | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript">  | ||||||||
| Added: | ||||||||
| > >  | var total; var it; var tout; | |||||||
| $("document").ready(function(){ //Expande submenu quando clicado $("#menu li").click(function(){ | ||||||||
| Line: 50 to 54 | ||||||||
| //macra com a classe "title" o primeiro h2 do post $(".post h2:first-child").addClass("title"); | ||||||||
| Deleted: | ||||||||
| < <  | }); EXTRAS: | |||||||
| Changed: | ||||||||
| < <  | $("document").ready(function(){ $("#menu li").click(function(){ if ($(this).hasClass("show")) { $(".show ul").slideToggle("normal"); $(".show").removeClass("show"); } else { $(".show ul").slideToggle("normal"); $(".show").removeClass("show"); $(this).addClass("show"); $(".show ul").slideToggle("normal"); | |||||||
| > >  | total = document.getElementById("splash"); if (total) { total = total.getElementsByTagName("img").length; it = Math.floor(Math.random()*total); $("#splash img:eq("+it+")").show(); rodaTopo(); | |||||||
| } }); | ||||||||
| Changed: | ||||||||
| < <  | }); | |||||||
| > >  | function rodaTopo() { $("#splash img:eq("+ it%total +")").fadeTo("slow", 0); $("#splash img:eq("+ it++%total +")").toggle(); $("#splash img:eq("+ it%total +")").toggle(); $("#splash img:eq("+ it%total +")").fadeTo(0); $("#splash img:eq("+ it%total +")").fadeTo("slow", 1); tout = setTimeout('rodaTopo()', 1000); } function changeDestaques(valor) { toggleDestaque(it%total); it = valor-1; toggleDestaque(it%total); | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 35 to 35 | ||||||||
| $(".active").parents("ul ul").parents("li").addClass("expand"); $(".active").parents("ul ul").slideToggle("normal"); | ||||||||
| Added: | ||||||||
| > >  | //marca como "destacado" o item do menu de teses e dissertações $("[href*='TesesDissertacoes']").parent("#menu li").addClass("destacado"); | |||||||
| //links externos abrem em janelas novas $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 26 to 26 | ||||||||
| if (pagina.indexOf("#") = -1) { pagina = pagina.slice(0,pagina.length-2) } | ||||||||
| Added: | ||||||||
| > >  | if (pagina.lastIndexOf("/PGNUT/") + 7 == pagina.length) pagina += "WebHome"; | |||||||
| pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); $(".active").addClass("expand"); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){ | ||||||||
| Added: | ||||||||
| > >  | //Expande submenu quando clicado $("#menu li").click(function(){ if ($(this).hasClass("expand")) { $(".expand ul").slideToggle("normal"); $(".expand").removeClass("expand"); } else { $(".expand ul").slideToggle("normal"); $(".expand").removeClass("expand"); $(this).addClass("expand"); $(".expand ul").slideToggle("normal"); } }); | |||||||
| //marca o primeiro item de menu com a classe "first" (necessário p/ IE) $("#menu li:first-child").addClass("first"); //macra com a classe "active" o item de menu caso leve à página atual var pagina = document.URL.substr(document.URL.lastIndexOf("/PGNUT/")); | ||||||||
| Added: | ||||||||
| > >  | if (pagina.indexOf("#") = -1) { pagina = pagina.slice(0,pagina.length-2) } | |||||||
| pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); | ||||||||
| Added: | ||||||||
| > >  | $(".active").addClass("expand"); | |||||||
| $(".active ul").slideToggle(); | ||||||||
| Added: | ||||||||
| > >  | $(".active").parents("ul ul").parents("li").addClass("expand"); $(".active").parents("ul ul").slideToggle("normal"); | |||||||
| //links externos abrem em janelas novas $("[href*='http://']").attr("target", "_blank"); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 9 to 9 | ||||||||
| $("#menu li:first-child").addClass("first"); //macra com a classe "active" o item de menu caso leve à página atual | ||||||||
| Changed: | ||||||||
| < <  | var pagina = document.URL.substr(document.URL.lastIndexOf("PGNUT")); | |||||||
| > >  | var pagina = document.URL.substr(document.URL.lastIndexOf("/PGNUT/")); | |||||||
| pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); $(".active ul").slideToggle(); | ||||||||
| Line: 22 to 22 | ||||||||
| var titulo = $(".post h2").html(); titulo = titulo.substr(titulo.lastIndexOf(">") + 1); document.title += " - " + titulo; | ||||||||
| Added: | ||||||||
| > >  | //macra com a classe "title" o primeiro h2 do post $(".post h2:first-child").addClass("title"); | |||||||
| }); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){ | ||||||||
| Added: | ||||||||
| > >  | //marca o primeiro item de menu com a classe "first" (necessário p/ IE) | |||||||
| $("#menu li:first-child").addClass("first"); | ||||||||
| Added: | ||||||||
| > >  | //macra com a classe "active" o item de menu caso leve à página atual var pagina = document.URL.substr(document.URL.lastIndexOf("PGNUT")); pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); $(".active ul").slideToggle(); //links externos abrem em janelas novas | |||||||
| $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); | ||||||||
| Added: | ||||||||
| > >  | //coloca o primeiro h2 como título no navegador | |||||||
| var titulo = $(".post h2").html(); titulo = titulo.substr(titulo.lastIndexOf(">") + 1); document.title += " - " + titulo; | ||||||||
| Line: 19 to 28 | ||||||||
| EXTRAS: | ||||||||
| Changed: | ||||||||
| < <  | $(":contains('Administração')").parent("#menu li").addClass("show"); | |||||||
| > >  | $(":contains('Administra�§�£o')").parent("#menu li").addClass("show"); | |||||||
| $(".show ul").slideToggle(); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 19 to 19 | ||||||||
| EXTRAS: | ||||||||
| Changed: | ||||||||
| < <  | $(":contains('Administração')").parent("#menu li").addClass("show"); | |||||||
| > >  | $(":contains('Administração')").parent("#menu li").addClass("show"); | |||||||
| $(".show ul").slideToggle(); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>  | ||||||||
| Line: 6 to 6 | ||||||||
| $("document").ready(function(){ $("#menu li:first-child").addClass("first"); | ||||||||
| Added: | ||||||||
| > >  | ||||||||
| $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); | ||||||||
| Added: | ||||||||
| > >  | var titulo = $(".post h2").html(); titulo = titulo.substr(titulo.lastIndexOf(">") + 1); document.title += " - " + titulo; | |||||||
| }); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > >  | 
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){
  $("#menu li:first-child").addClass("first");
  $("[href*='http://']").attr("target", "_blank");
  $("[href*='.pdf']").attr("target", "_blank");
});
</script>
%STOPINCLUDE%
EXTRAS:
<script type="text/javascript">
  $(":contains('Administração')").parent("#menu li").addClass("show");
  $(".show ul").slideToggle();
</script>
$("document").ready(function(){
$("#menu li").click(function(){
  if ($(this).hasClass("show")) {
    $(".show ul").slideToggle("normal");
    $(".show").removeClass("show");
  } else {
    $(".show ul").slideToggle("normal");
    $(".show").removeClass("show");
    $(this).addClass("show");
    $(".show ul").slideToggle("normal");
  }
});
});
 | |||||||