Last active
December 10, 2020 01:38
-
-
Save laechan/7028524ea42568c00319af1398d07b0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<Meta Http-Equiv="Content-Type" Content="text/html; Charset=utf-8"> | |
<body bgcolor="#93DD93"> | |
<script> | |
// Laechan 2020/11/20 | |
var lives={ | |
"台中東區樂成宮":"https://www.youtube.com/watch?v=WHeYEZIUbZQ", | |
"台中東區南天宮":"https://www.youtube.com/watch?v=AXltKrfXZ8Y", | |
"台中惠來福德祠":"https://www.youtube.com/watch?v=S0ANyPKIDvA", | |
"台中西屯福壽宮":"https://www.youtube.com/watch?v=w4ZCXBeeR5M", | |
"台中南屯萬和宮":"https://www.youtube.com/watch?v=2YNwW6wTjUQ", | |
"台中北屯三官堂":"https://www.youtube.com/watch?v=lYRoUK2JXcQ", | |
"台中北屯松竹寺":"https://www.youtube.com/watch?v=liO_qliT67w", | |
"台中潭子潭水亭":"https://www.youtube.com/watch?v=qf7sexx45EQ", | |
"台中大雅永興宮":"https://www.youtube.com/watch?v=hKi_hgev6jc", | |
"台中豐原鎮天宮":"https://www.youtube.com/watch?v=4WlD39NKD9Y", | |
"台中大甲鎮瀾宮":"https://www.youtube.com/watch?v=2e4PJSiXfPE", | |
"台中清水紫雲巖":"https://www.youtube.com/watch?v=GgAGNJhaxDo", | |
}; | |
keys_lives=Object.keys(lives); | |
MEDIA_WIDTH=380; | |
MEDIA_HEIGHT=240; | |
str="<table>"; | |
for(i=0;i<keys_lives.length;i++) | |
{ | |
if(i%3==0) | |
str+="<tr>"; | |
url=lives[keys_lives[i]]; | |
str+="<th valign=top width="+MEDIA_WIDTH+" height="+MEDIA_HEIGHT+">"+keys_lives[i]; | |
urls=url.split("watch?v="); | |
url=urls[0]+"embed/"+urls[1]+"?rel=0&autoplay=1&controls=0&mute=1&vq=medium"; | |
str+="<BR><iframe width="+(MEDIA_WIDTH-20)+" height="+ | |
(MEDIA_HEIGHT-20)+" src='"+url+"' frameborder=0 allow='"+ | |
"accelerometer; clipboard-write; encrypted-media; "+ | |
"gyroscope; picture-in-picture' allowfullscreen></iframe>"; | |
str+"</th>"; | |
if(i%3==2) | |
str+="</tr>"; | |
} | |
if(i%3!=2) | |
str+="</tr>"; | |
str+="</table>"; | |
document.write(str); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment