Difference between revisions of "Widget:RootVersesTOC"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 474: Line 474:
 
<li class="toclevel-1" id="chineseFullCommentary">
 
<li class="toclevel-1" id="chineseFullCommentary">
 
<span class="tocnumber">1</span> <span class="toctext">Chinese</span>
 
<span class="tocnumber">1</span> <span class="toctext">Chinese</span>
 +
</li>
 +
<li class="toclevel-1" id="blankFullCommentary">
 +
<span class="tocnumber">1</span> <span class="toctext">close</span>
 
</li>
 
</li>
 
</ul>
 
</ul>
Line 479: Line 482:
 
<script>
 
<script>
 
$('li#englishFullCommentary').on("click",function(event) {
 
$('li#englishFullCommentary').on("click",function(event) {
 +
    $('a.englishTabLabel').tab('show');
 +
});
 +
$('li#tibetanFullCommentary').on("click",function(event) {
 +
    $('a.englishTabLabel').tab('show');
 +
});
 +
$('li#sanskritFullCommentary').on("click",function(event) {
 +
    $('a.englishTabLabel').tab('show');
 +
});
 +
$('li#chineseFullCommentary').on("click",function(event) {
 
     $('a.englishTabLabel').tab('show');
 
     $('a.englishTabLabel').tab('show');
 
});
 
});
 
</script>
 
</script>

Revision as of 13:29, 20 February 2020

<button type="button" class="btn border btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Click to select a verse </button>

Select a chapter

  • <a href="#Chapter_I">1 Chapter 1</a>
  • <a href="#Chapter_II">1 Chapter 2</a>
  • <a href="#Chapter_III">1 Chapter 3</a>
  • <a href="#Chapter_IV">1 Chapter 4</a>
  • <a href="#Chapter_V">1 Chapter 5</a>

Toggle Language

Select the language of commentary to toggle for ALL verses.

  • 1 English
  • 1 Tibetan
  • 1 Sanskrit
  • 1 Chinese
  • 1 close

<script> $('li#englishFullCommentary').on("click",function(event) {

   $('a.englishTabLabel').tab('show');

}); $('li#tibetanFullCommentary').on("click",function(event) {

   $('a.englishTabLabel').tab('show');

}); $('li#sanskritFullCommentary').on("click",function(event) {

   $('a.englishTabLabel').tab('show');

}); $('li#chineseFullCommentary').on("click",function(event) {

   $('a.englishTabLabel').tab('show');

}); </script>