This will give us a way to tell which elements are part of the
cooldown clock and therefore need to be removed when it runs down.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
$node->removeChildNodes();
$node->appendText('{{ label_text }}');
}
-p "{% if label_text != \"\" %}\n";
+# This <text> node also acts as the sentinel for when the JS
+# wants to remove the cooldown timer.
process_node('textlabel', \&filter_text);
-p "{% endif %}\n";
p "{% if cooldown_active %}\n";
process_node('timeblack', sub {