Difference between revisions of "Widget:RootVersesTOC"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 499: Line 499:
 
     $('a.blankTabLabel').tab('show');
 
     $('a.blankTabLabel').tab('show');
 
});
 
});
 +
$('#frenchVerses').click(function(event) {
 +
    $('.english-french-verse-toggle').css('display', 'none');
 +
    $('.french-verse').siblings('div:first-of-type').css('display', 'none');
 +
    $('.french-verse').css('display', 'block');
 +
    $('.french-english-verse-toggle').css('display', 'block');
 +
});
 +
 
</script>
 
</script>

Revision as of 12:48, 24 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>

Select Languages

Select the languages to toggle for ALL verses.

  • 1 English commentary
  • 1 French verses
  • 1 Tibetan commentary
  • 1 Sanskrit commentary
  • 1 Chinese commentary
  • 1 Close commentary tabs

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

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

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

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

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

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

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

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

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

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

}); $('#frenchVerses').click(function(event) {

   $('.english-french-verse-toggle').css('display', 'none');
   $('.french-verse').siblings('div:first-of-type').css('display', 'none');
   $('.french-verse').css('display', 'block');
   $('.french-english-verse-toggle').css('display', 'block');

});

</script>