Mercurial > hgrepos > hgweb.cgi > s4
changeset 496:18f7f10566bf
Add link notation: "video=URL"
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 30 Jun 2018 15:46:59 +0900 |
parents | 59cd8278a5b5 |
children | fe66966f1f1f |
files | examples/common/default/default.css s4-funcs.sh |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/common/default/default.css Tue Jun 26 07:55:41 2018 +0900 +++ b/examples/common/default/default.css Sat Jun 30 15:46:59 2018 +0900 @@ -98,6 +98,8 @@ white-space: pre-wrap; } table.bloghead tr.preface td, +table.blog_replies video, +table.blog_replies iframe, table.blog_replies ul, .blog_replies tr ul, .blog_replies td ul { text-align: left; white-space: normal; margin: 1ex 0; }
--- a/s4-funcs.sh Tue Jun 26 07:55:41 2018 +0900 +++ b/s4-funcs.sh Sat Jun 30 15:46:59 2018 +0900 @@ -459,6 +459,7 @@ # s4 specific notation: # ^href=URL # ^iframe=URL + # ^video=URL # [[#NUM]] - Jump to article ID NUM # [[#Keyword] - Jump to keywrod search for "Keyword" # OSM umap Wikistyle Notation: @@ -487,6 +488,7 @@ -e "s|{{\($_hrefptn\)}}|<img src=\"\1\">|g"\ -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \ -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|" \ + -e "s|^video=\($_hrefptn\)|<video controls><source height=\"320\" src=\"\1\"></video>|" \ -e "s,^#### *\(.*\),<h4>\1</h4>," \ -e "s,^### *\(.*\),<h3>\1</h3>," \ -e "s,^## *\(.*\),<h2>\1</h2>," \