|
| 1 | +// (setq js-indent-level 1) # for Emacs |
| 2 | +function bchrest_info_html() { |
| 3 | + |
| 4 | +let bchrest_section_data = [ |
| 5 | + {"title":"I. ṛgveda", "ipage":"1", "rem":"341"}, |
| 6 | + {"title":"II. aitareyabrāhmaṇa", "ipage":"20", "rem":"349"}, |
| 7 | + {"title":"III. śatapathabrāhmaṇa ", "ipage":"27", "rem":"353"}, |
| 8 | + {"title":"IV. āśvalāyana's gṛhya—sūtra", "ipage":"37", "rem":"358"}, |
| 9 | + {"title":"V. mahābhārata", "ipage":"38", "rem":"358"}, |
| 10 | + {"title":"VI. rāmāyaṇa", "ipage":"85", "rem":"360"}, |
| 11 | + {"title":"VII. raghuvaṃśa", "ipage":"95", "rem":"360"}, |
| 12 | + {"title":"VIII. viṣṇupurāṇa ", "ipage":"100", "rem":"360"}, |
| 13 | + {"title":"IX. bhaṭṭikāvya", "ipage":"108", "rem":"362"}, |
| 14 | + {"title":"X. kathāsaritsāgara, vetālapañcaviṃśatikā", "ipage":"109", "rem":"362"}, |
| 15 | + {"title":"XI. hitopadeśa", "ipage":"139", "rem":"363"}, |
| 16 | + {"title":"XII. Sprüche", "ipage":"161", "rem":"363"}, |
| 17 | + {"title":"XIII. gītagovinda", "ipage":"187", "rem":"364"}, |
| 18 | + {"title":"XIV. mānavadharmaśāstra", "ipage":"188", "rem":"364"}, |
| 19 | + {"title":"XV. vijñāneśvara mitākṣarā", "ipage":"209", "rem":"365"}, |
| 20 | + {"title":"XVI. súśruta", "ipage":"216", "rem":"365"}, |
| 21 | + {"title":"XVII. varāhamihira bṛhatsaṃhitā", "ipage":"218", "rem":"365"}, |
| 22 | + {"title":"XVIII. Grammatisches", "ipage":"221", "rem":"366"}, |
| 23 | + {"title":"XIX. amarakoṣa", "ipage":"244", "rem":"367"}, |
| 24 | + {"title":"XX. kāvyadarśa ", "ipage":"248", "rem":"367"}, |
| 25 | + {"title":"XXI. sadānanda vedānta-sāra", "ipage":"253", "rem":"367"}, |
| 26 | + {"title":"XXII. ratnāvalī", "ipage":"290", "rem":"368"}, |
| 27 | + {"title":"Alphabetisches Verzeichnis", "ipage":"330", "rem":"372"}, |
| 28 | + {"title":"Nachträgliche Verbesserungen", "ipage":"372","rem":""}, |
| 29 | +]; |
| 30 | + const f = function(x) { |
| 31 | + let link = `<a href="index.html?${x.ipage}">${x.ipage}</a>`; |
| 32 | + let rem = x.rem; |
| 33 | + let remark=''; |
| 34 | + if (rem != '') { |
| 35 | + remark = `<a href="index.html?${rem}" title="Remarks">(${rem})</a>`; |
| 36 | + } |
| 37 | + let y = `<tr><td>${link}</td> <td>${x.title}</td> <td>${remark}</td> </tr>`; |
| 38 | + return y; |
| 39 | + }; |
| 40 | + let htmlarr = bchrest_section_data.map(f); |
| 41 | + let tabmain = htmlarr.join('\n'); |
| 42 | + //let tabhead = `<tr><th>P</th><th>R</th><th>S</th></tr>`; |
| 43 | + let tabhead = `<caption><b>Brief table of contents</b></caption>`; |
| 44 | + let html = `<table>\n${tabhead}\n${tabmain}\n</table>\n`; |
| 45 | + return html; |
| 46 | +}; // function |
| 47 | +function bchrest_info() { |
| 48 | + //let tabtitle = "<b>Brief table of contents</b><br/>"; |
| 49 | + //let data = "<b>Brief table of contents</b><br/>"; |
| 50 | + //let section = ''; |
| 51 | + let html = bchrest_info_html(); |
| 52 | + //let html = tabtitle + table; |
| 53 | + let elt=document.getElementById('infotoc'); |
| 54 | + elt.innerHTML = html; |
| 55 | +} |
| 56 | +document.getElementsByTagName("BODY")[0].onload = bchrest_info; |
| 57 | + |
0 commit comments