Skip to content

Commit eb09161

Browse files
committed
app3 -- access by supplement sections.
> Ref: sanskrit-lexicon/PWG#160 (comment)
1 parent 37781cf commit eb09161

File tree

14 files changed

+1004
-0
lines changed

14 files changed

+1004
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ Provide access to Bhartṛhariśataka by śataka (1-4) and verse
2323

2424
Example: https://sanskrit-lexicon-scans.github.io/bhartrhari/app2/?2,1
2525

26+
## app3
27+
Provide access to Bhartṛhariśataka Supplement by section (1-25)
28+
29+
Example: https://sanskrit-lexicon-scans.github.io/bhartrhari/app3/?20

app3/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>bhartrhari</title>
6+
<link rel="stylesheet" type="text/css" href="main.css">
7+
<style>
8+
form {
9+
display: inline-block;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<div id="title">
15+
<span style="font-size:20px;">
16+
Bhartṛhariśataka , ed. Bohlen, 1833, Suppl.
17+
</span>
18+
<form action="info.html" target="_blank">
19+
&nbsp;&nbsp;&nbsp;&nbsp;
20+
<input type="submit" value="Info">
21+
</form>
22+
23+
</div>
24+
<div id="ipageid">
25+
26+
</div>
27+
<div id="ipage">
28+
</div>
29+
30+
31+
<script src="index.js"></script>
32+
<script src="main.js"></script>
33+
</body>
34+
</html>

app3/index.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
indexdata =
2+
[
3+
{
4+
"page": 278,
5+
"v1": 1,
6+
"v2": 6,
7+
"ipage": 241,
8+
"vp": "278"
9+
},
10+
{
11+
"page": 279,
12+
"v1": 7,
13+
"v2": 9,
14+
"ipage": 242,
15+
"vp": "279"
16+
},
17+
{
18+
"page": 280,
19+
"v1": 10,
20+
"v2": 15,
21+
"ipage": 243,
22+
"vp": "280"
23+
},
24+
{
25+
"page": 281,
26+
"v1": 16,
27+
"v2": 20,
28+
"ipage": 244,
29+
"vp": "281"
30+
},
31+
{
32+
"page": 282,
33+
"v1": 21,
34+
"v2": 25,
35+
"ipage": 245,
36+
"vp": "282"
37+
},
38+
{
39+
"page": 283,
40+
"v1": 26,
41+
"v2": 26,
42+
"ipage": 246,
43+
"vp": "283"
44+
}
45+
]
46+
; // end of indexdata

app3/index.txt

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
page adhy. from v. to v. ipage
2+
19 1 1 8 1
3+
20 1 9 20 2
4+
21 1 21 31 3
5+
22 2 1 11 4
6+
23 2 12 21 5
7+
24 2 22 30 6
8+
24 3 1 1 6
9+
25 3 2 11 7
10+
26 3 12 23 8
11+
27 3 24 25 9
12+
27 4 1 7 9
13+
28 4 8 19 10
14+
29 4 20 30 11
15+
30 4 31 31 12
16+
30 5 1 9 12
17+
31 5 10 21 13
18+
32 5 22 33 14
19+
33 5 34 45 15
20+
34 5 46 46 16
21+
34 6 1 9 16
22+
35 6 10 14 17
23+
35 7 1 4 17
24+
36 7 5 16 18
25+
37 7 17 17 19
26+
37 8 1 9 19
27+
38 8 10 21 20
28+
39 8 22 25 21
29+
39 9 1 5 21
30+
40 9 6 17 22
31+
41 9 18 29 23
32+
42 9 30 36 24
33+
42 10 1 1 24
34+
43 10 2 12 25
35+
44 10 13 24 26
36+
45 10 25 29 27
37+
45 11 1 5 27
38+
46 11 6 17 28
39+
47 11 18 29 29
40+
48 11 30 37 30
41+
48 12 1 2 30
42+
49 12 3 14 31
43+
50 12 15 26 32
44+
51 12 27 38 33
45+
52 12 39 50 34
46+
53 12 51 62 35
47+
54 12 63 74 36
48+
55 12 75 86 37
49+
56 12 87 98 38
50+
57 12 99 100 39
51+
57 13 1 7 39
52+
58 13 8 19 40
53+
59 13 20 31 41
54+
60 13 32 43 42
55+
61 13 44 48 43
56+
61 14 1 5 43
57+
62 14 6 17 44
58+
63 14 18 25 45
59+
63 15 1 2 45
60+
64 15 3 12 46
61+
65 15 13 18 47
62+
65 16 1 4 47
63+
66 16 5 15 48
64+
67 16 16 26 49
65+
68 16 27 35 50
66+
68 17 1 1 50
67+
69 17 2 12 51
68+
70 17 13 24 52
69+
71 17 25 36 53
70+
72 17 37 46 54
71+
73 18 1 11 55
72+
74 18 12 21 56
73+
75 18 22 25 57
74+
75 19 1 5 57
75+
76 19 6 16 58
76+
77 19 17 26 59
77+
78 19 27 29 60
78+
78 20 1 7 60
79+
79 20 8 19 61
80+
80 20 20 31 62
81+
81 20 32 35 63
82+
81 21 1 6 63
83+
82 21 7 16 64
84+
83 21 17 28 65
85+
84 21 29 32 66
86+
84 22 1 5 66
87+
85 22 6 13 67
88+
86 22 14 22 68
89+
87 22 23 29 69
90+
87 23 1 3 69
91+
88 23 4 14 70
92+
89 23 15 25 71
93+
90 23 26 26 72
94+
90 24 1 9 72
95+
91 24 10 21 73
96+
92 24 22 33 74
97+
93 24 34 45 75
98+
94 24 46 47 76
99+
94 25 1 8 76
100+
95 25 9 16 77
101+
95 26 1 1 77
102+
96 26 2 13 78
103+
97 26 14 25 79
104+
98 26 26 35 80

app3/info.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>bhartrhari info</title>
6+
<link rel="stylesheet" type="text/css" href="main.css">
7+
</head>
8+
<body>
9+
<div id="title">
10+
<span style="font-size:20px;">
11+
Bhartṛhariśataka , ed. Bohlen, 1833, Suppl.
12+
</span>
13+
</div>
14+
<p style="font-size:16px;">
15+
app3 takes 1 numerical parameter, the section (1-25).
16+
<br/>Example: https://sanskrit-lexicon-scans.github.io/bhartrhari/app3?10
17+
</p>
18+
<!--
19+
<p>Scanned images courtesy of Bayerische StaatsBibliothek (<a href="https://opacplus.bsb-muenchen.de/title/BV012357417">Reference</a>).<br> For non-commercial use only.
20+
</p>
21+
<p><a href="pdfpages/Bayer_chr2 8.pdf">Foreword</a></p>
22+
-->
23+
24+
<!--
25+
<div id="infotoc"></div>
26+
<script src="info.js"></script>
27+
-->
28+
29+
</body>
30+
</html>

app3/info.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+

app3/main.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/* bchrest.css */
2+
body {
3+
font-family: sans-serif;
4+
font-size: 14pt;
5+
font-style: normal;
6+
font-weight: normal;
7+
color: #333333;
8+
background: white;
9+
}
10+
#ipage {
11+
height: 900px;
12+
}
13+
#title {
14+
border-left: 100px;
15+
border-top: 10px;
16+
}
17+
#pagenav {
18+
position: fixed;
19+
/*left: 10px; */
20+
left: 10px;
21+
top: 10px;
22+
/* width: 30px; height: 30px; */
23+
background-color: #EBF4FD;
24+
}cd
25+
#servepdf {
26+
position: absolute;
27+
left: 10px;
28+
width: 900px;
29+
height: 700px;
30+
}
31+
#serveidx {
32+
position: absolute;
33+
left: 5 px;
34+
top: 15 px;
35+
width: 180px;
36+
height: 700px;
37+
}
38+
span.nppage {
39+
font-weight: bold;
40+
font-size: 12px; /*24pt; */
41+
/*line-height: 18pt;*/
42+
/*background-color: #DBE4ED; */
43+
}
44+
45+
a.nppage:link {
46+
/* color: #FF0000; */
47+
text-decoration: none;
48+
/* background: #222222; */
49+
}
50+
a.nppage:visited {
51+
/* color: #000033; */
52+
text-decoration: none;
53+
54+
}
55+
a.nppage:hover {
56+
/* background: #000033; */
57+
color: #FF0000;
58+
text-decoration: none;
59+
cursor: pointer;
60+
}

0 commit comments

Comments
 (0)