bhagvatgita:chapter

Differences

This shows you the differences between two versions of the page.

bhagvatgita:chapter [2021/07/18 03:58] – created brahmantrabhagvatgita:chapter [2022/12/25 10:34] () brahmantra
 2:  2:
 ---- ----
  
-CHAPTER 1 +  * [[bhagvatgita:chapter-1|CHAPTER 1]] 
  
-CHAPTER 2 +  * [[bhagvatgita:chapter-2|CHAPTER 2]] 
  
-CHAPTER 3 +  * [[bhagvatgita:chapter-3|CHAPTER 3]] 
  
-CHAPTER 4+  * [[bhagvatgita:chapter-4|CHAPTER 4]]
  
-CHAPTER 5+  * [[bhagvatgita:chapter-5|CHAPTER 5]]
  
-CHAPTER 6+  * [[bhagvatgita:chapter-6|CHAPTER 6]]
  
-CHAPTER 7 +  * [[bhagvatgita:chapter-7|CHAPTER 7]] 
  
 +  * [[bhagvatgita:chapter-8|CHAPTER 8]] 
  
-CHAPTER +  * [[bhagvatgita:chapter-9|CHAPTER 9]] 
  
-CHAPTER +  * [[bhagvatgita:chapter-10|CHAPTER 10]] 
  
-CHAPTER 10 +  * [[bhagvatgita:chapter-11|CHAPTER 11]] 
  
-CHAPTER 11 +  * [[bhagvatgita:chapter-12|CHAPTER 12]] 
  
-CHAPTER 12 +  * [[bhagvatgita:chapter-13|CHAPTER 13]] 
  
-CHAPTER 13 +  * [[bhagvatgita:chapter-14|CHAPTER 14]] 
  
-CHAPTER 14 +  * [[bhagvatgita:chapter-15|CHAPTER 15]]
  
-CHAPTER 15+  * [[bhagvatgita:chapter-16|CHAPTER 16]] 
  
-CHAPTER 16 +  * [[bhagvatgita:chapter-17|CHAPTER 17]] 
  
-CHAPTER 17 +  * [[bhagvatgita:chapter-18|CHAPTER 18]] 
  
-CHAPTER 18 + 
 + 
 +<html> 
 +<head> 
 +<meta charset="utf-8" /> 
 +<title>Alphabetized Table</title> 
 +</head> 
 +<body> 
 +  <h1>This table should get automagically sorted and have alphabet links</h1> 
 +   
 +  <!-- the alphabet nav will get added by the js and only existing items will have links --> 
 +  <table class="alphabetize-me"> 
 +    <thead> 
 +      <tr> 
 +        <th>Name</th> 
 +        <th>Other info</th> 
 +      </tr> 
 +    </thead> 
 +    <tbody> 
 +      <!-- the order of these is unimportant since they will be sorted by JS --> 
 +      <tr><td>Banana</td><td>bat</td></tr> 
 +      <tr><td>Apple</td><td>cat</td></tr> 
 +      <tr><td>Dodecahedron</td><td>ant</td></tr> 
 +      <tr><td>Cherry</td><td>antelope</td></tr> 
 +      <tr><td>Dog</td><td>cow</td></tr> 
 +      <tr><td>Cat</td><td>bull</td></tr> 
 +      <tr><td>lion</td><td>bear</td></tr> 
 +      <tr><td>tiger</td><td>boar</td></tr> 
 +    </tbody> 
 +  </table> 
 + 
 +<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
 +<script>window.jQuery || document.write('<script src="http://code.jquery.com/jquery-1.7.2.min.js"><\/script>')</script> 
 +<script> 
 +(function ($) { 
 +   
 +  $(function () { 
 +     
 +    var linkTemplate = "<a href='#{href}'>{html}</a>", 
 +        findHref = /\{href\}/g, 
 +        findHtml = /\{html\}/g; 
 +     
 +    $("table.alphabetize-me").each(function () { 
 +       
 +      var $table = $(this), 
 +          $rowBody = $table.find(">tbody"), 
 +          // only get rows in tbody element (skip table headers) 
 +          $dataRows = $rowBody.find(">tr"), 
 +          sortColumn = 0, 
 +          uniqueTableId = "table-" + (new Date()).valueOf(); 
 +         
 +      // sort array based on sortColumn (set to 0 above) 
 +      $dataRows.sort(function (a, b) { 
 +        var $a = $(a), 
 +            $b = $(b), 
 +            aVal = $a.find(">td:eq(" + sortColumn + ")").text().toLowerCase(), 
 +            bVal = $b.find(">td:eq(" + sortColumn + ")").text().toLowerCase(); 
 +         
 +        $a.attr("data-sort-text", aVal); 
 +        $b.attr("data-sort-text", bVal); 
 +         
 +        if (aVal < bVal) return -1; 
 +        else if (aVal > bVal) return 1; 
 +        else return 0; 
 +      }); 
 +      $rowBody.empty().append($dataRows); 
 +       
 +      // loop through and build alphabet nav 
 +      var nav = ""; 
 +       
 +      for (var i = "A".charCodeAt(0); i <= "Z".charCodeAt(0); i++) { 
 +        var letter = String.fromCharCode(i), 
 +            // look for first row that starts with the letter 
 +            $tr = $dataRows.filter("[data-sort-text^='" + letter.toLowerCase() + "']:eq(0)"), 
 +            rowId = letter + "-" + uniqueTableId; 
 +         
 +        nav += " "; 
 +        if ($tr.length > 0) { 
 +          $tr.attr("id", rowId); 
 +          nav += linkTemplate.replace(findHref, rowId).replace(findHtml, letter); 
 +        } else { 
 +          nav += letter; 
 +        } 
 +      } 
 +       
 +      $("<div class='alphabet'>" + nav + "</div>").insertBefore($table); 
 +    }); 
 +     
 +  }); 
 +   
 +})(window.jQuery); 
 +</script> 
 +</body> 
 +</html>
  

This topic does not exist yet

You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by clicking on Create this page.

  • bhagvatgita/chapter.1626580731.txt.gz
  • 2021/07/18 03:58
  • brahmantra