1,956
edits
(refactoring expandables (templates & javascript) (better fallback and nestability)) |
No edit summary |
||
Line 41: | Line 41: | ||
} | } | ||
function showOnlyNext(ev) { // for expandable text | function showOnlyNext(ev) { // for expandable text | ||
ev. | ev.currentTarget.style.display = "none"; | ||
ev. | ev.currentTarget.nextElementSibling.style.display = "initial"; | ||
ev.stopPropagation(); | ev.stopPropagation(); | ||
} | } | ||
function showOnlyPrev(ev) { | function showOnlyPrev(ev) { | ||
ev. | ev.currentTarget.style.display = "none"; | ||
ev. | ev.currentTarget.previousElementSibling.style.display = "initial"; | ||
ev.stopPropagation(); | ev.stopPropagation(); | ||
} | } |