5,960
edits
No edit summary |
No edit summary |
||
Line 1,786: | Line 1,786: | ||
function toggleHighlight() { | function toggleHighlight() { | ||
const div = document.getElementById("mw-content-text"); | const div = document.getElementById("mw-content-text"); | ||
const nodes = | const nodes = div.getElementsByTagName("i"); | ||
for (let | for (let j = 0; j < nodes.length; j++) { | ||
nodes[ | nodes[j].style.backgroundColor = "#fce59a"; | ||
} | } | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |