Difference between revisions of "Template:Toronto/Javascript"

Line 8: Line 8:
 
var flag = false;
 
var flag = false;
  
  $(window).scroll(function() {  
+
  $(window).scroll(function() {
  if($(window).scrollTop() + $(window).height() == $(document).height()) {
+
      $("#nugget").fadeOut("slow");
+
      $(".testtext").delay(500).fadeIn("slow");
+
//  if($(window).scrollTop() + $(window).height() == $(document).height()) {
        
+
  //    $("#nugget").fadeOut("slow");
 +
    //  $(".testtext").delay(500).fadeIn("slow");
 +
 
 +
       $("#nugget").style.opacity=0.5;
 
}
 
}
 
    
 
    

Revision as of 20:00, 8 August 2016