Skip to content

Commit

Permalink
修复第一次显示动画
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 7, 2015
1 parent b84f15e commit 3100860
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/flashview/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var nextseconds = 0;
var nextnum = "";
var curlog = "";
var fixtime = 0;
var isok = 0;
$(document).ready(
function(){
setInterval(countdown, 1000);
Expand Down Expand Up @@ -94,11 +95,12 @@ $(document).ready(

nextnum = json.nextnum;
nextseconds = parseInt(json.seconds);
isok = 1;
}
}
)
}
else
else if (isok == 1)
{
if (nextseconds == 60)
{
Expand Down

0 comments on commit 3100860

Please sign in to comment.