blob: 79659b684e7317d5dc0bfabe95b7edb4a660f25c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
var resultOutputDiv = document.getElementById("result_output");
var resultControlsDiv = document.getElementById("result_controls");
var outputHTML = "<%= j render(partial: "look/results", locals: { results: @results }) %>"
if (resultOutputDiv) {
resultOutputDiv.innerHTML += outputHTML;
resultOutputDiv.scrollTo({
top: resultOutputDiv.scrollHeight, left: 0, behavior: 'smooth'
});
}
if (resultControlsDiv) {
resultControlsDiv.innerHTML = "<%= j render(partial: "look/timer") %>"
}
|