-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.i
47 lines (47 loc) · 2.39 KB
/
html.i
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
<!DOCTYPE html>
<html lang="th">
<title>ฟังเรื่องตามลำดับจากพระคริสตธรรมคัมภีร์</title>
<meta name="description" content="ฟังเรื่องตามลำดับจากพระคริสตธรรมคัมภีร์ Audio Northern Thai Bible stories">
<meta name="copyright" content="OMF International">
<meta name="reply-to" content="stories@godat.work">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="app.webmanifest">
<link rel="icon" type="image/png" sizes="192x192" href="android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="theme-color" content="#ffffff">
<style>
body{height:100vh; width:100vw; margin:0; padding:0; font-family:"Garuda",serif; font-size:12pt; color:#000; background-color:#fff;}
h3{margin:.4em; line-height:1.1;}
span{color:#555;}
input{margin:0; width:100vw; padding:.4em; font-size:14pt; outline:none; color:#000; background-color:#ddd;}
a:link,a:visited,a:hover,a:active,a:focus{display:block; width:100vw; color:#000; text-decoration:none; margin:0; padding:10px; border:solid 1px #888; line-height:1;}
a:hover,a:active,a:focus{background-color:#ddd;}
i{color:#555; padding-left:1.4em;}
@media (prefers-color-scheme:dark){html{filter:invert();}}
</style>
<h3>เรื่องตามลำดับ<br><span>ฟังพระคำของพระเจ้า</span></h3>
<input type="search" id="search" value="" placeholder=" 🔍 ค้นหา หัวข้อ/เลขที่" autocomplete autofocus>
<script>
const search=document.getElementById('search');
search.addEventListener('keyup', function(e){
filter(search.value.toLowerCase());
if(e.key === 'Enter') location.href=first;
});
function filter(query){
const ts=document.getElementsByTagName('a');
fst=true;
for(let i=0; i < ts.length; i++){
if(ts[i].textContent.toLowerCase().includes(query)){
ts[i].style.display='block';
if(fst){
fst=false;
first=ts[i].href;
}
}else ts[i].style.display='none';
}
}
</script>