export_html.php 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <title>Vandana</title>
  6. <script language="javascript">
  7. var g_is_mobile=false;
  8. //输出调试信息
  9. function var_dump(str){
  10. getStyleClass("debug_info").style.display = "-webkit-flex";
  11. getStyleClass("debug_info").style.opacity = "0.5";
  12. document.getElementById("debug").innerHTML = str;
  13. var t=setTimeout("clearDebugMsg()",2000);
  14. }
  15. function clearDebugMsg(){
  16. document.getElementById("debug").innerHTML = "";
  17. getStyleClass("debug_info").style.opacity = "0";
  18. getStyleClass("debug_info").style.display = "none";
  19. }
  20. //页面初始字体大小 单位 %
  21. var iStartFontSize = 100;
  22. function setHitsVisibility(isVisible)
  23. {
  24. var c = getStyleClass('hit');
  25. if (isVisible)
  26. {
  27. c.style.backgroundColor = 'blue';
  28. c.style.color = 'white';
  29. }
  30. else
  31. {
  32. c.style.backgroundColor = 'white';
  33. c.style.color = 'black';
  34. }
  35. }
  36. function setPageColor(sColor)
  37. {
  38. var c = getStyleClass('mainbody');
  39. var cToc = getStyleClass('toc');
  40. switch(sColor){
  41. case 0:
  42. c.style.backgroundColor = 'white';
  43. c.style.color = 'black';
  44. cToc.style.backgroundColor = "#F1F1F1";
  45. break;
  46. case 1:
  47. c.style.backgroundColor = '#ffead7';
  48. c.style.color = '#844200';
  49. cToc.style.backgroundColor = '#fff0e4';
  50. break;
  51. case 2:
  52. c.style.backgroundColor = '#000010';
  53. c.style.color = '#e0e0e0';
  54. cToc.style.backgroundColor = '#335';
  55. break;
  56. }
  57. }
  58. //修改页面字体大小
  59. function setPageFontSize(fChange)
  60. {
  61. iStartFontSize = iStartFontSize * fChange;
  62. var myBody = document.getElementById("mbody");
  63. myBody.style.fontSize= iStartFontSize + "%";
  64. setCookie('fontsize',iStartFontSize,65)
  65. }
  66. function setFootnotesVisibility(isVisible)
  67. {
  68. getStyleClass('note').style.display = (isVisible ? 'inline' : 'none');
  69. }
  70. function setIdVisibility()
  71. {
  72. var isVisible = document.getElementById("B_Id").checked;
  73. getStyleClass('ID').style.display = (isVisible ? 'block' : 'none');
  74. }
  75. function setOrgVisibility()
  76. {
  77. var isVisible = document.getElementById("B_Org").checked;
  78. getStyleClass('org').style.display = (isVisible ? 'block' : 'none');
  79. }
  80. function setMeaningVisibility()
  81. {
  82. var isVisible = document.getElementById("B_Meaning").checked;
  83. getStyleClass('mean').style.display = (isVisible ? 'block' : 'none');
  84. }
  85. function setGrammaVisibility()
  86. {
  87. var isVisible = document.getElementById("B_Gramma").checked;
  88. getStyleClass('case').style.display = (isVisible ? 'block' : 'none');
  89. }
  90. //显示英译
  91. function setParTranEnVisibility()
  92. {
  93. var isVisible = document.getElementById("B_ParTranEn").checked;
  94. getStyleClass('tran_par_en').style.display = (isVisible ? 'block' : 'none');
  95. }
  96. //显示中译
  97. function setParTranCnVisibility()
  98. {
  99. var isVisible = document.getElementById("B_ParTranCn").checked;
  100. getStyleClass('tran_par_cn').style.display = (isVisible ? 'block' : 'none');
  101. }
  102. //显示段对译模式
  103. function setParTranShowMode()
  104. {
  105. var isVisible = document.getElementById("B_ParTranShowMode").checked;
  106. if(isVisible){ /* 上下对读 */
  107. getStyleClass('pali_par').style.width = "auto";
  108. getStyleClass('pali_par').style.float="none";
  109. getStyleClass('pali_par_gatha').style.width = "auto";
  110. getStyleClass('pali_par_gatha').style.float="none";
  111. //getStyleClass('tran_par').style.margin = "0";
  112. }
  113. else{ /* 左右对读 */
  114. getStyleClass('pali_par').style.width = "50%";
  115. getStyleClass('pali_par').style.float = "left";
  116. getStyleClass('pali_par_gatha').style.width = "50%";
  117. getStyleClass('pali_par_gatha').style.float = "left";
  118. //getStyleClass('tran_par').style.margin = "0 0 0 50%-220px";
  119. }
  120. }
  121. //显示单词表
  122. function setWordTableVisibility()
  123. {
  124. var isVisible = document.getElementById("B_WordTableShowMode").checked;
  125. document.getElementById("word_table").style.display = (isVisible ? 'block' : 'none');
  126. }
  127. function getStyle (styleName) {
  128. for (var s = 0; s < document.styleSheets.length; s++)
  129. {
  130. if(document.styleSheets[s].rules)
  131. {
  132. for (var r = 0; r < document.styleSheets[s].rules.length; r++)
  133. {
  134. if (document.styleSheets[s].rules[r].selectorText == styleName)
  135. {
  136. return document.styleSheets[s].rules[r];
  137. }
  138. }
  139. }
  140. else if(document.styleSheets[s].cssRules)
  141. {
  142. for (var r = 0; r < document.styleSheets[s].cssRules.length; r++)
  143. {
  144. if (document.styleSheets[s].cssRules[r].selectorText == styleName)
  145. return document.styleSheets[s].cssRules[r];
  146. }
  147. }
  148. }
  149. return null;
  150. }
  151. function getStyleClass (className) {
  152. for (var s = 0; s < document.styleSheets.length; s++)
  153. {
  154. if(document.styleSheets[s].rules)
  155. {
  156. for (var r = 0; r < document.styleSheets[s].rules.length; r++)
  157. {
  158. if (document.styleSheets[s].rules[r].selectorText == '.' + className)
  159. {
  160. return document.styleSheets[s].rules[r];
  161. }
  162. }
  163. }
  164. else if(document.styleSheets[s].cssRules)
  165. {
  166. for (var r = 0; r < document.styleSheets[s].cssRules.length; r++)
  167. {
  168. if (document.styleSheets[s].cssRules[r].selectorText == '.' + className)
  169. return document.styleSheets[s].cssRules[r];
  170. }
  171. }
  172. }
  173. return null;
  174. }
  175. function getCookie(c_name)
  176. {
  177. if (document.cookie.length>0)
  178. {
  179. c_start=document.cookie.indexOf(c_name + "=")
  180. if (c_start!=-1)
  181. {
  182. c_start=c_start + c_name.length+1
  183. c_end=document.cookie.indexOf(";",c_start)
  184. if (c_end==-1)
  185. c_end=document.cookie.length
  186. return unescape(document.cookie.substring(c_start,c_end))
  187. }
  188. }
  189. return ""
  190. }
  191. function setCookie(c_name,value,expiredays)
  192. {
  193. var exdate=new Date()
  194. exdate.setDate(exdate.getDate()+expiredays)
  195. document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString())
  196. }
  197. //读取cookie 中的字体大小
  198. function checkCookie(){
  199. mFontSize=getCookie('fontsize')
  200. if (mFontSize!=null && mFontSize!="")
  201. {
  202. iStartFontSize = mFontSize
  203. }
  204. else
  205. {
  206. mFontSize=100
  207. iStartFontSize = 100
  208. setCookie('fontsize',mFontSize,365)
  209. }
  210. setPageFontSize(1);
  211. setPageColor(0);
  212. }
  213. function setObjectVisibilityAlone(strIdGroup , strId){
  214. var hiden = new Array();
  215. hiden=strIdGroup.split('&');
  216. for(i=0;i<hiden.length;i++){
  217. document.getElementById(hiden[i]).style.display="none";
  218. }
  219. var obj = document.getElementById(strId);
  220. obj.style.display="block";
  221. }
  222. function setObjectVisibility(strId){
  223. var obj = document.getElementById(strId);
  224. if(obj.style.display=="none"){
  225. obj.style.display="block";
  226. }
  227. else{
  228. obj.style.display="none";
  229. }
  230. }
  231. function showTOC(){
  232. setObjectVisibility("leftmenuinner_mobile");
  233. }
  234. function setObjectVisibility2(ControllerId,ObjId){
  235. var isVisible = document.getElementById(ControllerId).checked;
  236. document.getElementById(ObjId).style.display = (isVisible ? 'block' : 'none');
  237. }
  238. function setNaviVisibility(){
  239. var objNave = document.getElementById('leftmenuinner');
  240. var objMainView = document.getElementById("body_mainview");
  241. if(objNave.style.display=="none"){
  242. objNave.style.display="block";
  243. //objMainView.style.margin = "0,0,0,18em";
  244. getStyleClass('mainview').style.margin = "0,0,0,18em";
  245. }
  246. else{
  247. objNave.style.display="none";
  248. //objMainView.style.margin = "0";
  249. getStyleClass('mainview').style.margin = "0";
  250. }
  251. }
  252. /*静态页面使用的初始化函数*/
  253. function windowsInitStatic(){
  254. checkCookie();
  255. }
  256. function showMenu(){
  257. var obj = document.getElementById("toolbar_mobile");
  258. var objX = document.getElementById("btnX");
  259. var objToc = document.getElementById("leftmenuinner_mobile");
  260. if(obj.style.display=="none"){
  261. obj.style.display="inline";
  262. objX.style.opacity ="1.0";
  263. }
  264. else{
  265. obj.style.display="none";
  266. objX.style.opacity ="0.3";
  267. objToc.style.display="none";
  268. }
  269. }
  270. var VisibleMenu = ''; // 記錄目前顯示的子選單的 ID
  271. // 顯示或隱藏子選單
  272. function switchMenu( theMainMenu, theSubMenu, theEvent ){
  273. var SubMenu = document.getElementById( theSubMenu );
  274. if( SubMenu.style.display == 'none' ){ // 顯示子選單
  275. SubMenu.style.display = 'block';
  276. hideMenu(); // 隱藏子選單
  277. VisibleMenu = theSubMenu;
  278. }
  279. else{ // 隱藏子選單
  280. if( theEvent != 'MouseOver' || VisibleMenu != theSubMenu ){
  281. SubMenu.style.display = 'none';
  282. VisibleMenu = '';
  283. }
  284. }
  285. }
  286. // 隱藏子選單
  287. function hideMenu(){
  288. if( VisibleMenu != '' ){
  289. document.getElementById( VisibleMenu ).style.display = 'none';
  290. }
  291. VisibleMenu = '';
  292. }
  293. </script>
  294. <style>
  295. body {
  296. font-family: 'Noto Sans','Noto Sans CJK TC', 'Noto Sans CJK SC', 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans CJK', 'Source Han Sans', source-han-sans-simplified-c, Verdana, sans-serif;
  297. font-style: normal;
  298. color: #444444;
  299. font-weight: 400;
  300. font-size: 14px;
  301. }
  302. .main{
  303. padding: 0;
  304. }
  305. .mainbody{
  306. padding: 0;
  307. margin: 0;
  308. font-size:100%;
  309. height: 100%;
  310. width: 100%;
  311. overflow-x:hidden;
  312. }
  313. .sutta{
  314. font-size: 100%;
  315. }
  316. .sutta_top_blank {
  317. height: 50px;
  318. }
  319. .chapter1 h1{
  320. width:Auto;
  321. float:left;
  322. color:#550;
  323. }
  324. .chapter1 a{
  325. float:right;
  326. }
  327. .heading {
  328. font-weight: bold;
  329. font-size: 158%;
  330. text-align: center;
  331. }
  332. h1 {
  333. font-size: 150%;
  334. font-weight: 800;
  335. }
  336. h2 {
  337. font-weight: 800;
  338. }
  339. h3 {
  340. font-size: 100%;
  341. font-weight: 800;
  342. }
  343. a:link,
  344. a:visited {
  345. color: #4688F1;
  346. text-decoration: none;
  347. }
  348. a:focus {
  349. outline: 1px dotted;
  350. }
  351. a:hover,
  352. a:active {
  353. color: #4688F1;
  354. outline: none;
  355. text-decoration: underline;
  356. }
  357. ::-webkit-scrollbar {
  358. width: 8px;
  359. }
  360. ::-webkit-scrollbar-track {
  361. -webkit-border-radius: 10px;
  362. border-radius: 10px;
  363. background: rgba(85,85,85,0.1);
  364. }
  365. ::-webkit-scrollbar-thumb {
  366. -webkit-border-radius: 10px;
  367. border-radius: 10px;
  368. background: rgba(85,85,85,0.2);
  369. }
  370. :hover::-webkit-scrollbar-thumb {
  371. -webkit-border-radius: 10px;
  372. border-radius: 10px;
  373. background: rgba(85,85,85,0.5);
  374. }
  375. .toc {
  376. color: #444444;
  377. margin: 0;
  378. padding: 0 5px;
  379. overflow-y: scroll;
  380. overflow-x: hidden;
  381. height:calc(100% - 40px);
  382. height:-moz-calc(100% - 40px);
  383. height:-webkit-calc(100% - 40px);
  384. background-color: #f5f5f5;
  385. }
  386. #leftmenuinner {
  387. position:fixed;
  388. display: inline-block;
  389. top: 42px;
  390. left: 0;
  391. padding: 0;
  392. height: 100%;
  393. width: 18em;
  394. background-color: #f5f5f5;
  395. float: left;
  396. z-index: 2;
  397. -webkit-transition-duration: 0.4s;/* Safari */
  398. transition-duration: 0.4;
  399. }
  400. #leftmenuinnerinner {
  401. }
  402. #leftmenuinner_mobile {
  403. position:fixed;
  404. top:42px;
  405. left:0;
  406. padding-top:0;
  407. padding-bottom:0;
  408. height:100%;
  409. width:100%;
  410. display:none;
  411. background-color: #f5f5f5;
  412. -webkit-transition-duration: 0.4s;/* Safari */
  413. transition-duration: 0.4;
  414. }
  415. #leftmenuinnerinner_mobile {
  416. }
  417. .mainview{
  418. padding: 20px;
  419. margin-left:18em;
  420. float: left;
  421. -webkit-transition-duration: 0.4s;
  422. transition-duration: 0.4s;
  423. }
  424. .mainview_mobile{
  425. padding: 20px;
  426. }
  427. .toc p {
  428. font-size: 90%;
  429. margin:4px 0 4px 0.5em;
  430. line-height:1.2;
  431. }
  432. .toc ul {
  433. font-size: 90%;
  434. list-style-type: none;
  435. padding-left: 0px;
  436. line-height:1.2;
  437. text-indent:1px;
  438. }
  439. .toc ul li{
  440. text-indent:1px;
  441. line-height:1.2;
  442. margin:5px 0;
  443. }
  444. #content {
  445. margin: 0px 5px 10px 5px;
  446. padding: 1px 3px;
  447. /*border: 1px solid #BBB;*/
  448. /*background-color: #dda;*/
  449. /*background: #EEE;*/
  450. /*color: #000;*/
  451. }
  452. #navi_bookmark{
  453. display:none;
  454. }
  455. #navi_note{
  456. display:none;
  457. }
  458. .toolbar , #toolbar_mobile{
  459. position:fixed;
  460. top: 0;
  461. left: 0;
  462. padding: 0 5px;
  463. border-top: 1px solid #FFFFFF;
  464. border-bottom: 1px solid #D2D2D2;
  465. display: inline-block;
  466. background-color: #F8F8F8;
  467. box-shadow: 0px 28px 24px 0px #FFFFFF inset;
  468. color: #444444;
  469. padding-top: 5px;
  470. width: 100%;
  471. height: 40px;
  472. font-size: 13px;
  473. -webkit-box-sizing: border-box;
  474. -moz-box-sizing: border-box;
  475. box-sizing: border-box;
  476. }
  477. .index_toolbar{
  478. top:0;
  479. left:0;
  480. border-bottom: 1px solid #BBB;
  481. margin: 0;
  482. padding: 5px 10px;
  483. background-color: #555;
  484. color:#FFF;
  485. }
  486. .debug{
  487. display:none;
  488. }
  489. #word_table{
  490. margin-top:20px;
  491. display:none;
  492. }
  493. #sutta_text{
  494. margin-top:30px;
  495. }
  496. .sutta_title{
  497. border-left:15px solid #BBB;
  498. margin:30px 2px 20px 1em;
  499. padding: 1px 0.5em;
  500. }
  501. .sutta_title a {
  502. float:right;
  503. }
  504. .tran_h1_cn, .tran_h1_en {
  505. font-size: 100%;
  506. font-weight: 500;
  507. line-height:1.1;
  508. margin: 0px 2px;
  509. }
  510. .sutta_paragraph{
  511. margin: 0;
  512. padding: 1em 0 0 0;
  513. }
  514. .pali_par{
  515. width:100%;
  516. /*float:left;*/
  517. padding: 0pt 8pt;
  518. }
  519. .pali_par_gatha{
  520. width:100%;
  521. /*float:left;*/
  522. padding: 0;
  523. margin-left:2em;
  524. }
  525. .pali_par_mobile{
  526. /*width:100%;*/
  527. padding: 0pt 8pt;
  528. }
  529. .pali_par_gatha_mobile{
  530. /*width:100%;*/
  531. padding: 0;
  532. margin-left:2em;
  533. }
  534. .tran_par
  535. {
  536. padding: 0 5px;
  537. margin: 0 ;
  538. }
  539. .tran_par_mobile
  540. {
  541. padding: 0 5px;
  542. margin: 0 ;
  543. }
  544. .tran_par_en
  545. {
  546. font-size:80%;
  547. text-indent:0;
  548. }
  549. .tran_par_cn
  550. {
  551. font-size:90%;
  552. text-indent:0;
  553. }
  554. .par_note{
  555. font-size:75%;
  556. border-left: 5px solid #CDC;
  557. margin: 2px 5px 2px 1em;
  558. padding:2px;
  559. clear:left;
  560. }
  561. .word {
  562. width: Auto;
  563. float: left;
  564. padding: 0 3pt;
  565. height: 7.5em;
  566. }
  567. .word_hightlight {
  568. width: Auto;
  569. float: left;
  570. padding: 0 3pt;
  571. background-color: #dda;
  572. }
  573. .word_punc {
  574. width: Auto;
  575. float: left;
  576. margin-right: 0.3em;
  577. height: 7.5em;
  578. }
  579. .word_detail {}
  580. .pali {
  581. font-family: 'Noto Sans', 'Noto Sans CJK TC', 'Noto Serif', 'Noto Serif CJK TC', 'Noto Serif CJK SC', Times;
  582. font-weight: 700;
  583. font-size: 110%;
  584. padding: 0pt;
  585. margin: 0pt;
  586. }
  587. .mean {
  588. font-family: 'Noto Sans', 'Noto Sans CJK TC', 'Noto Serif', 'Noto Serif CJK TC', 'Noto Serif CJK SC', Times;
  589. font-weight: 700;
  590. font-size: 90%;
  591. line-height: 1.2;
  592. margin: 3pt 0;
  593. float: none;
  594. clear: both;
  595. }
  596. .ID {
  597. font-size: 70%;
  598. line-height: 1.2;
  599. margin: 0;
  600. float: none;
  601. clear: both;
  602. display: none;
  603. }
  604. .org {
  605. font-size: 90%;
  606. line-height: 1.2;
  607. margin: 3px 0;
  608. float: none;
  609. clear: both;
  610. color: #009191;
  611. }
  612. .om {
  613. font-size: 75%;
  614. line-height: 1.2;
  615. margin: 3px 0;
  616. float: none;
  617. clear: both;
  618. color: #009191;
  619. }
  620. .case {
  621. font-size: 75%;
  622. line-height: 1.2;
  623. margin: 3px 0;
  624. float: none;
  625. clear: both;
  626. color: #009191;
  627. }
  628. .case .cell{
  629. background-color: #009191;
  630. color: #FFFFFF;
  631. padding: 0px 2px;
  632. font-weight: 300;
  633. }
  634. /*不确定的显示为红色*/
  635. .case .cell2 a{
  636. background-color:#F80;
  637. color:#FFFFFF;
  638. padding: 0px 2px;
  639. font-weight: 300;
  640. }
  641. .clr{
  642. clear:left;
  643. }
  644. .enter{
  645. clear:left;
  646. }
  647. .chanting_enter{
  648. display:none;
  649. clear:left;
  650. }
  651. .hidden{
  652. display:none;
  653. }
  654. #modifywin {
  655. width: auto;
  656. max-width: 20em;
  657. background-color: #FFFFFF;
  658. margin: 0;
  659. padding: 10px;
  660. position: absolute;
  661. border: 1px solid #D5D5D5;
  662. border-radius: 2px;
  663. box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
  664. display: none;
  665. }
  666. #modifywin p {
  667. margin: 0;
  668. padding: 0;
  669. }
  670. #modifywin button {
  671. font-size: 12px;
  672. }
  673. #modifywin .modifybutton {
  674. margin: 6px 0 0 0;
  675. padding: 5px 0;
  676. border-top: 1px solid #E4E4E4;
  677. }
  678. #modifywin .modifybutton .modify_left {
  679. width: 50%;
  680. float: left;
  681. border-right: 1px solid #AAB;
  682. }
  683. #modifywin a {
  684. width: 100%;
  685. cursor: pointer;
  686. }
  687. .bookmarkcolorblock {
  688. padding: 1px 5px;
  689. }
  690. .bookmarkcolor0 {
  691. background-color: rgba(0,0,0,0);
  692. }
  693. .bookmarkcolor1 {
  694. background-color: #F99;
  695. }
  696. .bookmarkcolor2 {
  697. background-color: #FF9;
  698. }
  699. .bookmarkcolor3 {
  700. background-color: #9F9;
  701. }
  702. .bookmarkcolor4 {
  703. background-color: #9FF;
  704. }
  705. .bookmarkcolor5 {
  706. background-color: #99F;
  707. }
  708. /*?x?没找到*/
  709. .bookmarkcolorx {
  710. background-color: #CCCCCC;
  711. }
  712. /*?a?自动匹配*/
  713. .bookmarkcolora {
  714. background-color: #DDF;
  715. }
  716. .bma {
  717. display: none;
  718. }
  719. .bmx{
  720. }
  721. .bm1{
  722. }
  723. .bm2{
  724. }
  725. .bm3{
  726. }
  727. .bm4{
  728. }
  729. .bm5{
  730. }
  731. #navi_bookmark_inner h3{
  732. font-size:100%;
  733. font-weight: 800;
  734. }
  735. .indexbody{
  736. margin:0;
  737. padding: 0;
  738. background-color: #f5f5f5;
  739. }
  740. .editor{
  741. display:inline;
  742. }
  743. .debugMsg{
  744. display:none;
  745. }
  746. table {border-collapse: collapse;}
  747. td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
  748. .h {background-color: #9999cc; font-weight: bold; color: #000000;}
  749. .center {text-align: center;}
  750. .index_inner{ width:400px; margin-left: auto; margin-right: auto; text-align: left;}
  751. #device a:link ,#device a:visited{
  752. color: #AAA;
  753. text-decoration: none;
  754. }
  755. #device a:focus {
  756. outline:1px dotted;
  757. }
  758. #device a:hover, #device a:active {
  759. color: #FFF;
  760. outline: none;
  761. text-decoration: underline;
  762. }
  763. .select_mode a:link ,#device a:visited{
  764. color: #AAA;
  765. text-decoration: none;
  766. }
  767. .select_mode a:focus {
  768. outline:1px dotted;
  769. }
  770. .select_mode a:hover, #device a:active {
  771. color: #000;
  772. outline: none;
  773. text-decoration: underline;
  774. }
  775. button {
  776. font-family: 'Noto Sans', 'Noto Sans CJK TC', 'Noto Sans CJK SC', 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans CJK', 'Source Han Sans', source-han-sans-simplified-c, Verdana, sans-serif;
  777. /*position: relative;*/
  778. /*float: left;*/
  779. border: 1px solid #DCDCDC;
  780. padding: 0.3em 0.6em;
  781. font-size: 13px;
  782. font-weight: 400;
  783. min-height: 1em;
  784. color: #009191;
  785. background-color: #F9F9F9;
  786. border-radius: 3px;
  787. margin: 0px 1px;
  788. -webkit-transition-duration: 0.2s;
  789. /* Safari */
  790. transition-duration: 0.2;
  791. cursor: pointer;
  792. box-shadow: 0px 0.6px 0px 0px rgba(0, 0, 0, 0.2);
  793. -webkit-box-sizing: border-box;
  794. -moz-box-sizing: border-box;
  795. box-sizing: border-box;
  796. }
  797. button:hover {
  798. background-color: #4688F1;
  799. color: #FFFFFF;
  800. border: 1px solid #4688F1;
  801. }
  802. .btn-group {
  803. position: relative;
  804. display: inline-block;
  805. width: auto;
  806. font-size: 0;
  807. }
  808. .btn-group .btn+.btn {
  809. margin-left: -3px;
  810. }
  811. .btn-group>.btn:not(:first-child):not(:last-child) {
  812. border-radius: 0;
  813. }
  814. .btn-group>.btn:first-child:not(:last-child) {
  815. border-top-right-radius: 0;
  816. border-bottom-right-radius: 0;
  817. }
  818. .btn-group>.btn:last-child:not(:first-child) {
  819. border-top-left-radius: 0;
  820. border-bottom-left-radius: 0;
  821. }
  822. .dropdown {
  823. position: relative;
  824. display: inline-block;
  825. }
  826. /* 下拉内容 (默认隐藏) */
  827. .dropdown-content {
  828. border-radius: 3px;
  829. border: 1px solid #D2D2D2;
  830. display: none;
  831. position: absolute;
  832. background-color: #FFFFFF;
  833. color: #444444;
  834. min-width: 60px;
  835. box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.2);
  836. /*border-radius: 6px;*/
  837. z-index: 6;
  838. top: 100%;
  839. right: 0;
  840. }
  841. /*使用一半宽度 (120/2 = 60) 来居中提示工具*/
  842. .dropdown-content::after {
  843. content: " ";
  844. position: absolute;
  845. bottom: 100%;
  846. right: 0;
  847. margin-right: 20px;
  848. border-width: 5px;
  849. border-style: solid;
  850. border-color: transparent transparent #FFFFFF transparent;
  851. }
  852. /* 下拉菜单的链接 */
  853. .dropdown-content a {
  854. padding: 6px 6px;
  855. text-decoration: none;
  856. display: block;
  857. color: #009191;
  858. white-space: nowrap;
  859. }
  860. /* 鼠标移上去后修改下拉菜单链接颜色 */
  861. .dropdown-content a:hover {
  862. background-color: #4688F1;
  863. color: #FFFFFF;
  864. border-radius: 3px;
  865. }
  866. /* 当下拉内容显示后修改下拉按钮的背景颜色 */
  867. .dropdown:hover .dropbtn {
  868. background-color: #4688F1;
  869. color: #FFFFFF;
  870. }
  871. /*此经启动不显示*/
  872. #dasadhammasutta2{
  873. display:none;
  874. }
  875. #btn_menu_show{
  876. /*position:fixed;*/
  877. top:0;
  878. right:0;
  879. background-color: #AAF;
  880. padding:0.5em;
  881. font-size:2em;
  882. color:#FFF;
  883. border-radius: 10px;
  884. opacity: 0.5;
  885. }
  886. .tran_input{
  887. display:none;
  888. clear:both;
  889. }
  890. .case{
  891. font-size:80%;
  892. line-height: 1.2;
  893. margin: 0;
  894. float:none;
  895. clear:both;
  896. }
  897. /*.case_dropbtn .cell{
  898. margin:1px;
  899. padding:1pt;
  900. background-color:#050;
  901. color:#FFF;
  902. }
  903. /*不确定的显示为红色
  904. .case_dropbtn .cell2 a{
  905. margin:1px;
  906. padding:1pt;
  907. background-color:#F80;
  908. color:#000;
  909. }
  910. */
  911. /* 下拉按钮样式 */
  912. .case_dropbtn {
  913. padding: 2px;
  914. font-size: 80%;
  915. border: none;
  916. margin: 0px;
  917. }
  918. .case_dropdown .case_dropbtn {
  919. /*background-color: #F80;*/
  920. /*color: white;*/
  921. padding-left: 3px;
  922. padding-right: 3px;
  923. padding-top: 0px;
  924. padding-bottom: 0px;
  925. border: none;
  926. font-size: 100%;
  927. cursor: pointer;
  928. margin: 0px;
  929. }
  930. /* 容器 <div> - 需要定位下拉内容 */
  931. .case_dropdown {
  932. /*position: relative;*/
  933. display: inline-block;
  934. }
  935. /* 下拉内容 (默认隐藏) */
  936. .case_dropdown-content {
  937. display: none;
  938. position: absolute;
  939. background-color: #FFFFFF;
  940. min-width: 8em;
  941. margin: -1px 0px;
  942. box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
  943. color: #444444;
  944. }
  945. /* 下拉菜单的链接 */
  946. .case_dropdown-content a {
  947. color: black;
  948. padding: 2px 4px;
  949. text-decoration: none;
  950. display: block;
  951. cursor: pointer;
  952. }
  953. /* 鼠标移上去后修改下拉菜单链接颜色 */
  954. .case_dropdown-content a:hover {
  955. background-color: #4688F1;
  956. color: #FFFFFF;
  957. }
  958. /* 在鼠标移上去后显示下拉菜单 */
  959. .case_dropdown:hover .case_dropdown-content {
  960. display: block;
  961. }
  962. /* 当下拉内容显示后修改下拉按钮的背景颜色 */
  963. .case_dropdown:hover .case_dropbtn {
  964. opacity: 0.4;
  965. }
  966. .edit_tran_button {
  967. display: inline;
  968. height: 1.5em;
  969. padding: 0 5px;
  970. margin: 0 3px 0 0;
  971. opacity: 0.5;
  972. }
  973. .edit_tran_button:hover {
  974. opacity: 1;
  975. }
  976. .tocitems li{
  977. overflow: hidden;
  978. }
  979. .toc_h_0{
  980. display:none;
  981. }
  982. .toc_h_1{
  983. padding-left:0;
  984. }
  985. .toc_h_2{
  986. padding-left:1em;
  987. }
  988. .toc_h_3{
  989. padding-left:2em;
  990. }
  991. .toc_h_4{
  992. padding-left:3em;
  993. }
  994. .head_par .head_pali_1{
  995. font-weight: 700;
  996. font-size:200%;
  997. }
  998. .head_par .head_pali_2{
  999. font-weight: 700;
  1000. font-size:150%;
  1001. }
  1002. .head_par .head_pali_3{
  1003. font-weight: 400;
  1004. font-size:120%;
  1005. }
  1006. .head_par .head_pali_4{
  1007. font-weight: 200;
  1008. font-size:100%;
  1009. }
  1010. .edit_tran_button{
  1011. display:none;
  1012. }
  1013. </style>
  1014. </head>
  1015. <body class="mainbody" id="mbody" onLoad="windowsInitStatic()">
  1016. <!-- tool bar begin-->
  1017. <!-- content begin-->
  1018. <div id="leftmenuinner_mobile">
  1019. <div class='toc' id='leftmenuinnerinner_mobile'>
  1020. <div id="navi_toc">
  1021. <h1>Content 目录</h1>
  1022. <script>
  1023. function test(){
  1024. showTOC();
  1025. }
  1026. </script>
  1027. <div id="content" onclick="test()">
  1028. <?php echo $_POST["txt_toc"];?>
  1029. </div>
  1030. </div>
  1031. </div>
  1032. </div>
  1033. <!-- content end -->
  1034. <div id='toolbar_mobile'>
  1035. <div>
  1036. <span id="toobar_items">
  1037. <button type="button" onclick="showTOC()">≡</button>
  1038. <div class="btn-group">
  1039. <button id="B_FontReduce" class="btn" type="button" onclick="setPageFontSize(0.9)">A-</button>
  1040. <button id="B_FontGain" class="btn" type="button" onclick="setPageFontSize(1.1)">A+</button>
  1041. </div>
  1042. <span class="dropdown" onmouseover="switchMenu(this,'menuColorMode','MouseOver')" onmouseout="hideMenu()">
  1043. <div><button class="dropbtn" id="color_mode">Color ▾</button></div>
  1044. <div class="dropdown-content" id="menuColorMode">
  1045. <a href="#" onclick="setPageColor(0)">白色</a>
  1046. <a href="#" onclick="setPageColor(1)">黄昏</a>
  1047. <a href="#" onclick="setPageColor(2)">夜间</a>
  1048. </div>
  1049. </span>
  1050. <span class="dropdown" onmouseover="switchMenu(this,'menuViewSet','MouseOver')" onmouseout="hideMenu()">
  1051. <div><button class="dropbtn" id="view_setting">View ▾</button></div>
  1052. <div class="dropdown-content" id="menuViewSet">
  1053. <a><span><input id="B_Org" onclick="setOrgVisibility()" type="checkbox" checked />原型</span></a>
  1054. <a><span><input id="B_Meaning" onclick="setMeaningVisibility()" type="checkbox" checked />意思</span></a>
  1055. <a><span><input id="B_Gramma" onclick="setGrammaVisibility()" type="checkbox" checked />语法</span></a>
  1056. <a><span><input id="B_ParTranEn" onclick="setParTranEnVisibility()" type="checkbox" checked />英译</span></a>
  1057. <a><span><input id="B_ParTranCn" onclick="setParTranCnVisibility()" type="checkbox" checked />中译</span></a>
  1058. <a><span><input id="B_ParTranShowMode" onclick="setParTranShowMode()" type="checkbox" checked />上下对译</span></a>
  1059. </div>
  1060. </span>
  1061. </span>
  1062. </div>
  1063. </div>
  1064. <button type="button" id="btnX"style="float:right; right:5px; top:5px; position:fixed;" onclick="showMenu()">×</button>
  1065. <div class="debug_info"><span id="debug"></span></div>
  1066. <!--tool bar end -->
  1067. <div class="main">
  1068. <!--right side begin-->
  1069. <div class='mainview_mobile' id='body_mainview'>
  1070. <div id="sutta_text">
  1071. <!--经文起始-->
  1072. <?php echo $_POST["txt_sutta"];?>
  1073. <!--经文结束-->
  1074. </div>
  1075. </div>
  1076. <!--right side end-->
  1077. </div>
  1078. </body>
  1079. </html>