Template:Commentary: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
var body = document.getElementById('commentary-body-{{{verse_id}}}-{{{name}}}'); | var body = document.getElementById('commentary-body-{{{verse_id}}}-{{{name}}}'); | ||
var btn = document.getElementById('toggle-{{{verse_id}}}-{{{name}}}'); | var btn = document.getElementById('toggle-{{{verse_id}}}-{{{name}}}'); | ||
if(body. | if(body.classList.contains('commentary-hidden')){ | ||
body. | body.classList.remove('commentary-hidden'); | ||
} else { | } else { | ||
body. | body.classList.add('commentary-hidden'); | ||
} | } | ||
})()" | })()" | ||
title="{{{label}}}">💬</span><div class="commentary-body" | title="{{{label}}}">💬</span><div class="commentary-body commentary-hidden" | ||
id="commentary-body-{{{verse_id}}}-{{{name}}} | id="commentary-body-{{{verse_id}}}-{{{name}}}"> | ||
{{{text}}} | {{{text}}} | ||
</div> | </div> | ||
Revision as of 07:02, 24 March 2026
💬
{{{text}}}