
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 81 to 81 | ||||||||
| $("#fotos img:eq("+it+")").show(); tout = setTimeout('rodaFotos()', 5000); } | ||||||||
| Added: | ||||||||
| > > | setInterval("updateTime()",60000); | |||||||
| }); | ||||||||
| Added: | ||||||||
| > > | function updateTime() { $("#horadata").html(''); } | |||||||
| function rodaFotos() { $("#fotos img:eq("+ it++%total +")").fadeOut(1500); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 64 to 64 | ||||||||
| //Seletor de e-mails para o Fale Conosco $("#faleconosco :radio").click(function(){ | ||||||||
| Changed: | ||||||||
| < < | $("#faleconosco input#to").attr("value", $(this).attr("name")); | |||||||
| > > | $("#faleconosco input#to").attr("value", $(this).attr("id")); | |||||||
| $("#faleconosco input#cc").attr("value", $(this).attr("value")); }); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 64 to 64 | ||||||||
| //Seletor de e-mails para o Fale Conosco $("#faleconosco :radio").click(function(){ | ||||||||
| Changed: | ||||||||
| < < | $("#faleconosco input#to").attr("value", $(this).attr("value")); | |||||||
| > > | $("#faleconosco input#to").attr("value", $(this).attr("name")); $("#faleconosco input#cc").attr("value", $(this).attr("value")); | |||||||
| }); //Coloca o nome do remetente no corpo da mensagem | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 63 to 63 | ||||||||
| $("div.escondido h4").attr("title","Clique para mostrar"); //Seletor de e-mails para o Fale Conosco | ||||||||
| Changed: | ||||||||
| < < | $(":radio").click(function(){ | |||||||
| > > | $("#faleconosco :radio").click(function(){ | |||||||
| $("#faleconosco input#to").attr("value", $(this).attr("value")); }); | ||||||||
| Added: | ||||||||
| > > | //Coloca o nome do remetente no corpo da mensagem $("#faleconosco :submit").click(function(){ $("#faleconosco textarea").attr("value","Remetente: " + $("#faleconosco #remetente").attr("value") + "\n" + $("#faleconosco textarea").attr("value")); // $("#faleconosco textarea").prepend("Remetente: " + $("#faleconosco #remetente").attr("value") + "\n"); }); | |||||||
| total = document.getElementById("fotos"); if (total) { total = total.getElementsByTagName("img").length; | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 62 to 62 | ||||||||
| }); $("div.escondido h4").attr("title","Clique para mostrar"); | ||||||||
| Added: | ||||||||
| > > | //Seletor de e-mails para o Fale Conosco $(":radio").click(function(){ $("#faleconosco input#to").attr("value", $(this).attr("value")); }); | |||||||
| total = document.getElementById("fotos"); if (total) { total = total.getElementsByTagName("img").length; | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 60 to 60 | ||||||||
| $(".show .editTable").slideToggle("slow"); } }); | ||||||||
| Added: | ||||||||
| > > | $("div.escondido h4").attr("title","Clique para mostrar"); | |||||||
| total = document.getElementById("fotos"); if (total) { | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 38 to 38 | ||||||||
| $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); | ||||||||
| Added: | ||||||||
| > > | //expande as tabelas das agendas /*if ($(".escondido")) { var tabela = document.URL.lastIndexOf("edittable"); if (tabela = -1){ var tabela = document.URL.substr(tabela + 9); tabela = Number(tabela); $(".escondido:eq("+tabela - 1+")").addClass("show"); $(".show .editTable").slideToggle("slow"); } }*/ $("div.escondido h4").click(function(){ if ($(this).parents(".escondido").hasClass("show")) { $(".show .editTable").slideToggle("slow"); $(".show").removeClass("show"); } else { $(".show .editTable").slideToggle("slow"); $(".show").removeClass("show"); $(this).parents(".escondido").addClass("show"); $(".show .editTable").slideToggle("slow"); } }); | |||||||
| total = document.getElementById("fotos"); if (total) { total = total.getElementsByTagName("img").length; | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="%ATTACHURL%/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Added: | ||||||||
| > > | var total; var it; var tout; | |||||||
| $("document").ready(function(){ $("#menu").children("ul").children("li").children("a").click(function(){ if ($(this).parents("li").hasClass("expand")) { | ||||||||
| Line: 34 to 38 | ||||||||
| $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); | ||||||||
| Changed: | ||||||||
| < < | var t=setTimeout("window.location.reload()",60000); | |||||||
| > > | total = document.getElementById("fotos"); if (total) { total = total.getElementsByTagName("img").length; it = Math.floor(Math.random()*total); $("#fotos img:eq("+it+")").show(); tout = setTimeout('rodaFotos()', 5000); } | |||||||
| }); | ||||||||
| Added: | ||||||||
| > > | function rodaFotos() { $("#fotos img:eq("+ it++%total +")").fadeOut(1500); $("#fotos img:eq("+ it%total +")").fadeIn(1500); tout = setTimeout('rodaFotos()', 5000); } | |||||||
| Deleted: | ||||||||
| < < | EXTRAS: | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% | ||||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | ||||||||
| Line: 44 to 46 | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 22 to 22 | ||||||||
| if (pagina.indexOf("#") = -1) { pagina = pagina.slice(0,pagina.length-2) } | ||||||||
| Changed: | ||||||||
| < < | if (pagina.lastIndexOf("/Quimica/") + 7 == pagina.length) | |||||||
| > > | if (pagina.lastIndexOf("/Quimica/") + 9 == pagina.length) | |||||||
| pagina += "WebHome"; pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){ | ||||||||
| Changed: | ||||||||
| < < | $("#menu li").click(function(){ if ($(this).hasClass("show")) { $(".show ul").slideToggle("normal"); $(".show").removeClass("show"); | |||||||
| > > | $("#menu").children("ul").children("li").children("a").click(function(){ if ($(this).parents("li").hasClass("expand")) { $(".expand").children("ul").slideToggle("normal"); $(".expand").removeClass("expand"); | |||||||
| } else { | ||||||||
| Changed: | ||||||||
| < < | $(".show ul").slideToggle("normal"); $(".show").removeClass("show"); $(this).addClass("show"); $(".show ul").slideToggle("normal"); | |||||||
| > > | $(".expand").children("ul").slideToggle("normal"); $(".expand").removeClass("expand"); $(this).parents("li").addClass("expand"); $(".expand").children("ul").find("*").show(); $(".expand").children("ul").slideToggle("normal"); | |||||||
| } }); | ||||||||
| Added: | ||||||||
| > > | //macra com a classe "active" o item de menu caso leve à página atual var pagina = document.URL.substr(document.URL.lastIndexOf("/Quimica/")); if (pagina.indexOf("#") = -1) { pagina = pagina.slice(0,pagina.length-2) } if (pagina.lastIndexOf("/Quimica/") + 7 == pagina.length) pagina += "WebHome"; pagina = "[href*='" + pagina + "']"; $(pagina).parent("#menu li").addClass("active"); $(".active").addClass("expand"); $(".active").children("ul").slideToggle(); $(".active").parents("ul ul").parents("li").addClass("expand"); $(".active").parents("ul ul").slideToggle("normal"); | |||||||
| $("[href*='http://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank"); }); | ||||||||
| Line: 24 to 39 | ||||||||
| EXTRAS: | ||||||||
| Changed: | ||||||||
| < < | $(":contains('Administração')").parent("#menu li").addClass("show"); $(".show ul").slideToggle(); | |||||||
| > > | $(":contains('Administração')").parent("#menu li").addClass("expand"); $(".expand ul").slideToggle(); | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 17 to 17 | ||||||||
| }); $("[href*='http://']").attr("target", "_blank"); | ||||||||
| Added: | ||||||||
| > > | $("[href*='.pdf']").attr("target", "_blank"); | |||||||
| }); | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Line: 15 to 15 | ||||||||
| $(".show ul").slideToggle("normal"); } }); | ||||||||
| Added: | ||||||||
| > > | $("[href*='http://']").attr("target", "_blank"); | |||||||
| }); | ||||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | EXTRAS: | |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){
$("#menu li").click(function(){ | ||||||||
| Added: | ||||||||
| > > | 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"); | ||||||||
| Changed: | ||||||||
| < < | $(this).removeClass("show"); | |||||||
| > > | } | |||||||
| }); }); | ||||||||
| Added: | ||||||||
| > > | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
%STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> <script type="text/javascript"> | ||||||||
| Deleted: | ||||||||
| < < | function clearMenu() { $("li").removeClass('show'); } | |||||||
| Changed: | ||||||||
| < < | function expand(item) { clearMenu(); $(item).addClass('show'); } | |||||||
| > > | $("document").ready(function(){ $("#menu li").click(function(){ $(this).addClass("show"); $(".show ul").slideToggle("normal"); $(this).removeClass("show"); }); }); | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Changed: | ||||||||
| < < | ||||||||
| > > | %STARTINCLUDE% <script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script> | |||||||
| Changed: | ||||||||
| < < | ||||||||
| > > |
| |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | ||||||||