continue;
}
- let move = "<a class=\"move\" href=\"javascript:show_line(" + display_lines.length + ", " + 0 + ");\">" + line['move'] + "</a>";
- move_td.innerHTML = move;
+ let move_link = document.createElement("a");
+ move_link.classList.add("move");
+ move_link.setAttribute("href", "javascript:show_line(" + display_lines.length + ", 0)");
+ move_link.textContent = line['move'];
+ move_td.appendChild(move_link);
let score_td = document.createElement("td");
tr.appendChild(score_td);
return;
}
+ if (clock_timer !== null) {
+ clearTimeout(clock_timer);
+ }
update_clock();
// The score.
}
let update_clock = function() {
- clearTimeout(clock_timer);
+ clock_timer = null;
let data = displayed_analysis_data || current_analysis_data;
if (!data) return;