|
@ -60,10 +60,10 @@ const getLatinSquareOrder = function(participantNumber) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const el = latinSquareElement[indexElement + 1]; |
|
|
|
|
|
const elIndex = findIndexOfOrderElement(el, latinSquareElement); |
|
|
|
|
|
const nextLatinSquareIndex = latinSquareElement[(elIndex)]; |
|
|
|
|
|
latinSquareRedirectOrder.push(("study-page-" + nextLatinSquareIndex)); |
|
|
|
|
|
|
|
|
const nextOrderElement = latinSquareElement[(indexElement + 1)]; |
|
|
|
|
|
const nextOrderElementIndex = findIndexOfOrderElement(nextOrderElement, latinSquareElement); |
|
|
|
|
|
const nextRedirctElement = latinSquareElement[nextOrderElementIndex]; |
|
|
|
|
|
latinSquareRedirectOrder.push(("study-page-" + nextRedirctElement )); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return latinSquareRedirectOrder; |
|
|
return latinSquareRedirectOrder; |
|
|