6,094
edits
No edit summary |
No edit summary |
||
Line 57: | Line 57: | ||
//add arrows linking to expanded child proposition | //add arrows linking to expanded child proposition | ||
var numbersOfRemarksWithChildren = document.querySelectorAll('.tlp-pr-with-children .tlp-aside-par'); | |||
console.log( | for (i = 0; i < numbersOfRemarksWithChildren.length; i++) { | ||
var oldNumberString = numbersOfRemarksWithChildren[i].innerHTML; | |||
console.log( | console.log("oldNumberString: " + oldNumberString); | ||
var numberStringId = numbersOfRemarksWithChildren[i].id; | |||
console.log("id: " + numberStringId); | |||
var newNumberString = oldNumberString + ' <a href="#separator-' + numberStringId + '">→</a>'; | |||
console.log("newNumberString: " + newNumberString); | |||
numbersOfRemarksWithChildren[i].innerHTML = newNumberString; | |||
} | |||
</script> | </script> | ||
</html> | </html> |