Difference: JavaScript (1 vs. 20)

Revision 2028 Oct 2010 - FlavioAraujo

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);

Revision 1928 Sep 2010 - FlavioAraujo

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")); });

Revision 1810 Sep 2010 - FlavioAraujo

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

Revision 1702 Sep 2010 - FlavioAraujo

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;

Revision 1601 Sep 2010 - FlavioAraujo

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;

Revision 1526 Aug 2010 - FlavioAraujo

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) {

Revision 1424 Aug 2010 - FlavioAraujo

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;

Revision 1319 Aug 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="%ATTACHURL%/jquery.js"></script>
<script type="text/javascript">

Revision 1219 Aug 2010 - FlavioAraujo

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:
 
META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1280860589" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp61054" user="FlavioAraujo" version="1"

Revision 1103 Aug 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
Changed:
<
<
>
>
 
Line: 44 to 46
 
Changed:
<
<
META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1275062799" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp60254" user="FlavioAraujo" version="1"
>
>
META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1280860589" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp61054" user="FlavioAraujo" version="1"

Revision 1030 Jun 2010 - FlavioAraujo

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");

Revision 929 Jun 2010 - FlavioAraujo

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:

Revision 811 Jun 2010 - DelzaSantos

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
<script type="text/javascript">

Revision 702 Jun 2010 - DelzaSantos

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");
 });

Revision 602 Jun 2010 - FlavioAraujo

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:
 
META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1275062799" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp60254" user="FlavioAraujo" version="1"

Revision 501 Jun 2010 - FlavioAraujo

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:
>
>
 

Revision 401 Jun 2010 - FlavioAraujo

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"); }); });
 

Revision 328 May 2010 - FlavioAraujo

Line: 1 to 1
Changed:
<
<
>
>
%STARTINCLUDE%
<script type="text/javascript" src="/twiki/pub/Quimica/JavaScript/jquery.js"></script>
 
Changed:
<
<
>
>

META FILEATTACHMENT attachment="jquery.js" attr="" comment="" date="1275062799" name="jquery.js" path="jquery.js" size="69838" stream="jquery.js" tmpFilename="/var/tmp/CGItemp60254" user="FlavioAraujo" version="1"

Revision 226 May 2010 - FlavioAraujo

Line: 1 to 1
 

Revision 126 May 2010 - FlavioAraujo

Line: 1 to 1
Added:
>
>
 
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