Line 11: | Line 11: | ||
if($(window).scrollTop() + $(window).height() == $(document).height()) { | if($(window).scrollTop() + $(window).height() == $(document).height()) { | ||
$("#nugget").fadeOut("slow"); | $("#nugget").fadeOut("slow"); | ||
− | $(".testtext").delay(500).fadeIn("slow") | + | $(".testtext").delay(500).fadeIn("slow", function () { |
− | + | flag=true; | |
+ | }); | ||
+ | |||
} | } | ||
else { | else { | ||
Line 18: | Line 20: | ||
{ | { | ||
$("#nugget").fadeIn("slow"); | $("#nugget").fadeIn("slow"); | ||
− | $(".testtext").delay(500).fadeOut("slow") | + | $(".testtext").delay(500).fadeOut("slow", function () { |
− | + | flag=false; | |
+ | }); | ||
+ | |||
} | } | ||
+ | |||
+ | $('.alert-success').show().fadeOut(9000, function () { | ||
+ | alert("test"); | ||
+ | }); | ||
+ | |||
} | } | ||
Revision as of 19:52, 8 August 2016