mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
reverse array
This commit is contained in:
parent
90ef828e61
commit
0146a92f6d
@ -249,7 +249,7 @@ class ResultsList extends List {
|
|||||||
rc = document.getElementsByClassName("right-context");
|
rc = document.getElementsByClassName("right-context");
|
||||||
for (let element of lc) {
|
for (let element of lc) {
|
||||||
array = Array.from(element.childNodes);
|
array = Array.from(element.childNodes);
|
||||||
for (let element of array.slice(newContextValue)) {
|
for (let element of array.reverse().slice(newContextValue)) {
|
||||||
element.classList.add("hide");
|
element.classList.add("hide");
|
||||||
}
|
}
|
||||||
for (let element of array.slice(0, newContextValue)) {
|
for (let element of array.slice(0, newContextValue)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user