master
iotcat 2 years ago
parent 335071d5f4
commit 5e8b257e9f
  1. 7
      effect.js

@ -173,12 +173,13 @@ $('document').ready(function(){
var i; var i;
function msgLoop (i) { function msgLoop (i) {
$("p:nth-child("+i+")").fadeOut('slow').delay(800).promise().done(function(){ $("p:nth-child("+i+")").fadeOut('slow').delay(800).promise().done(function(){
i=i+1; i=i+1;
$("p:nth-child("+i+")").fadeIn('slow').delay(1000); $("p:nth-child("+i+")").fadeIn('slow').delay(1000);
if(i== $("#message_row").children("p").length+2){ if(i== $("#message_row").children("p").length){
$("p:nth-child(49)").fadeOut('slow').promise().done(function () { $("p:nth-child("+i+")").delay(4000).fadeOut('slow').promise().done(function () {
$('.cake').fadeIn('slow'); $('.cake').delay(400).fadeIn('slow');
}); });
} }

Loading…
Cancel
Save