Unfold highlighted
This commit is contained in:
parent
7f52c5de98
commit
5743d2ee97
|
@ -55,7 +55,7 @@
|
|||
|
||||
for (let el of els) {
|
||||
const extended = el.querySelector(".extended-text");
|
||||
|
||||
|
||||
//Hide extended text
|
||||
extended.classList.add("hidden");
|
||||
//Add button to show extended text
|
||||
|
@ -77,6 +77,10 @@
|
|||
const highlighted = document.querySelector(".highlighted");
|
||||
if (highlighted) {
|
||||
highlighted.scrollIntoView();
|
||||
const showMoreButton = highlighted.querySelector(".show_more");
|
||||
if (showMoreButton) {
|
||||
showMoreButton.click();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue