- my $countdown = $tree->fid('countdown');
- $countdown->attr('data-start' => $args{contest_start});
- $countdown->attr('data-stop' => $args{contest_stop});
- $countdown->attr('data-time' => $args{time});
- my $left = $args{contest_stop} - $args{time};
- $countdown->replace_content(sprintf '%02d:%02d:%02d', $left/60/60, $left/60%60, $left%60);
- $tree->fid('score')->attr('data-value' => $args{value});
- $tree->fid('score')->replace_content(Gruntmaster::Data::calc_score($args{value}, $args{time} - $args{contest_start}, 0, $args{contest_stop} - $args{contest_start}));
+ $tree->fid('score')->replace_content($args{value});
+ $tree->fid('countdown')->attr('data-stop' => $args{contest_stop});