5,960
edits
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
<html> | <html> | ||
<script> | <script> | ||
//change link target to tree-structured version | |||
var numbers = document.getElementsByTagName("a"); | var numbers = document.getElementsByTagName("a"); | ||
console.log("lunghezza: "+numbers.length); | console.log("lunghezza: "+numbers.length); | ||
Line 50: | Line 51: | ||
//console.log(numbers[i]); | //console.log(numbers[i]); | ||
var target = numbers[i].href; | var target = numbers[i].href; | ||
console.log(target); | //console.log(target); | ||
target = target.replace("Logisch-philosophische_Abhandlung", "Logisch-philosophische_Abhandlung_(Darstellung_in_Baumstruktur)"); | target = target.replace("Logisch-philosophische_Abhandlung", "Logisch-philosophische_Abhandlung_(Darstellung_in_Baumstruktur)"); | ||
numbers[i].href = target; | numbers[i].href = target; | ||
} | } | ||
//add arrows linking to expanded child proposition | |||
remarkNumber = document.getElementById('1'); | |||
console.log(remarkNumber); | |||
remarkNumber = remarkNumber + ' <a href="#separator-1">*</a>'; | |||
console.log(remarkNumber); | |||
</script> | </script> | ||
</html> | </html> |