-
Notifications
You must be signed in to change notification settings - Fork 0
/
淨土宗念佛_zhuyin.html
188 lines (188 loc) · 5.87 KB
/
淨土宗念佛_zhuyin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="淨土宗念佛">
<meta name="description" content="淨土宗念佛在線修習,提供念佛倒數計數服務。">
<meta http-equiv="content-language" content="zh-TW">
<meta name="google-site-verification" content="V8eLvycwzTe1HcbvKdvVIk2wZUeosaT7HCXcbPB6N0Y" />
<title>淨土宗念佛在線修習(注音符號標注) - 修佛網──佛法在線修習</title>
<style>
@font-face
{
font-family:"GB Pinyinok-C";
src:url("fonts/GB Pinyinok-C.ttf");
font-weight:normal;
font-style:normal;
}
@font-face
{
font-family:"PMingLiU";
src:url("fonts/eduSong_Unicode.ttf");
font-weight:normal;
font-style:normal;
}
@font-face
{
font-family:"edukai-4.0";
src:url("fonts/edukai-4.0.ttf");
font-weight:normal;
font-style:normal;
}
p
{
font-family:"PMingLiU";
font-size:20px;
}
h1
{
font-family:"PMingLiU";
font-size:40px;
}
h2
{
font-family:"PMingLiU";
font-size:20px;
}
button
{
font-family:"PMingLiU";
font-size:30px;;
}
rt
{
font-family:"edukai-4.0";
}
ruby
{
font-family:"PMingLiU";
}
</style>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F0QTMNSQ6P"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-F0QTMNSQ6P');
</script>
</head>
<body style="background-image: url(imgs/背景.jpg);background-repeat:repeat;position:relative;text-align:center;overflow:hidden">
<div id="top_content">
<h1><ruby>南<rt>ㄋㄚˊ</rt></ruby><ruby>無<rt>ㄇㄛˊ</rt></ruby><ruby>阿<rt>ㄜ</rt></ruby><ruby>彌<rt>ㄇㄧˊ</rt></ruby><ruby>陀<rt>ㄊㄨㄛˊ</rt></ruby><ruby>佛<rt>ㄈㄛˊ</rt></ruby> <ruby>|<rt>|</rt></ruby> <ruby>南<rt>ㄋㄚˊ</rt></ruby><ruby>無<rt>ㄇㄛˊ</rt></ruby><ruby>觀<rt>ㄍㄨㄢ</rt></ruby><ruby>世<rt>ㄕˋ</rt></ruby><ruby>音<rt>ㄧㄣ</rt></ruby><ruby>菩<rt>ㄆㄨˊ</rt></ruby><ruby>薩<rt>ㄙㄚˋ</rt></ruby></h1>
<h2><a href="/" target="_blank">前往網站首頁</a></h2>
<button id="minus_500" onclick="add(-500);">-500</button>
<input type="text" id="times" value="1000" style="text-align:center" oninput="value=value.replace(/[^\d]/g,'')">
<button id="add_500" onclick="add(500);">+500</button>
</div>
<button id="read" onclick="count_down();">念誦一遍</br>(空格、回車或↓)</button>
<audio id="countdown_audio" preload="auto" src="audios/countdown.mp3"></audio>
<audio id="finish_chan_audio" preload="auto" src="audios/finish_chan.mp3"></audio>
<audio id="finish_audio" preload="auto" src="audios/finish.mp3"></audio>
<script>
function setCookie(cname,cvalue,exdays)
{
var d=new Date();
d.setTime(d.getTime()+(exdays*24*60*60*1000));
var expires="expires="+d.toGMTString();
document.cookie=cname+"="+cvalue+"; "+expires;
}
function getCookie(cname)
{
var name=cname+"=";
var ca=document.cookie.split(';');
for(var i=0;i<ca.length;++i)
{
var c=ca[i].trim();
if(0==c.indexOf(name))
{
return c.substring(name.length,c.length);
}
}
return null;
}
function isNaN(n)
{
return n!==n;
}
var read_button=document.getElementById('read');
var audio=document.getElementById('countdown_audio');
audio.load();
audio=document.getElementById('finish_chan_audio');
audio.load();
audio=document.getElementById('finish_audio');
audio.load();
var times=document.getElementById('times');
var times_cookie=getCookie('times');
var read_disabled=false;
if(null!=times_cookie)
{
times.value=times_cookie;
}
function add(n)
{
var times_value=isNaN(parseInt(times.value))?0:parseInt(times.value);
times.value=Math.max(0,times_value+n);
document.getElementById('minus_500').blur();
document.getElementById('add_500').blur();
}
function audio_ended()
{
audio.load();
}
function button_enable()
{
setCookie('times',times.value,0.5);
read_button.removeAttribute('disabled');
read_disabled=false;
}
function count_down()
{
if(read_disabled)
{
return;
}
read_disabled=true;
times.blur();
var times_value=isNaN(parseInt(times.value))?0:parseInt(times.value);
if(0>=times.value)
{
audio=document.getElementById('finish_audio');
times.value=0;
}
else if(1==times.value)
{
audio=document.getElementById('finish_chan_audio');
times.value-=1;
}
else
{
audio=document.getElementById('countdown_audio');
times.value-=1;
}
audio.addEventListener('ended',audio_ended);
read_button.disabled='disabled';
audio.play();
setTimeout(button_enable,audio.duration*1000+200);
}
function keydown_function()
{
if(event.keyCode==13||event.keyCode==32||event.keyCode==40)
{
read_button.onclick();
}
}
document.onkeydown=function(){keydown_function()}
function get_height()
{
return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
}
function get_width()
{
return document.getElementById('top_content').getClientRects()['0']['width'];
}
read_button.style.width=get_width()+'px';
read_button.style.height=(get_height()-document.getElementById('top_content').getClientRects()['0']['height'])+'px';
</script>
</body>
</html>