diff --git a/effect.js b/effect.js index 0433c43..03ab79f 100755 --- a/effect.js +++ b/effect.js @@ -176,7 +176,7 @@ $('document').ready(function(){ $("p:nth-child("+i+")").fadeOut('slow').delay(800).promise().done(function(){ i=i+1; $("p:nth-child("+i+")").fadeIn('slow').delay(1000); - if(i==50){ + if(i== $("#message_row").children("p").length){ $("p:nth-child(49)").fadeOut('slow').promise().done(function () { $('.cake').fadeIn('fast'); }); diff --git a/index.html b/index.html index cc44745..afa369c 100755 --- a/index.html +++ b/index.html @@ -102,7 +102,7 @@