Jump to content

Template:Commentary: Difference between revisions

From Grantha
No edit summary
No edit summary
Line 10: Line 10:
-->
-->
<span class="commentary-toggle"
<span class="commentary-toggle"
       id="toggle-{{{verse_id}}}-{{{name}}}"
       data-target="commentary-body-{{{verse_id}}}-{{{name}}}"
      onclick="(function(){
        var body = document.getElementById('commentary-body-{{{verse_id}}}-{{{name}}}');
        var btn = document.getElementById('toggle-{{{verse_id}}}-{{{name}}}');
        if(body.classList.contains('commentary-hidden')){
          body.classList.remove('commentary-hidden');
        } else {
          body.classList.add('commentary-hidden');
        }
      })()"
       title="{{{label}}}">💬</span><div class="commentary-body commentary-hidden"
       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:19, 24 March 2026

💬

{{{text}}}