s4

changeset 341:bad68ea6c30a

Add more accesskeys
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 24 Oct 2016 09:41:10 +0859
parents a06cd57df83a
children 385b3174d265
files examples/common/default/home.m4.html examples/common/default/html.m4.html s4-blog.sh s4-funcs.sh
diffstat 4 files changed, 27 insertions(+), 24 deletions(-) [+]
line diff
     1.1 --- a/examples/common/default/home.m4.html	Mon Oct 24 09:11:28 2016 +0859
     1.2 +++ b/examples/common/default/home.m4.html	Mon Oct 24 09:41:10 2016 +0859
     1.3 @@ -6,12 +6,13 @@
     1.4  </div>
     1.5  
     1.6  <div class="foldtabs">
     1.7 -<input type="radio" id="sd" name="foldtabs" accesskey="a"><label for="sd">日記(_NBLOG_)</label>
     1.8 +<input type="radio" id="sd" name="foldtabs"><label
     1.9 + accesskey="a" title="A" for="sd">日記(_NBLOG_)</label>
    1.10  <div><!-- in home.m4 -->_BLOGS_</div><!-- in home.m4 -->
    1.11  
    1.12  
    1.13 -<input type="radio" id="grp" name="foldtabs" accesskey="s"><label
    1.14 - for="grp">参加中グループ</label>
    1.15 +<input type="radio" id="grp" name="foldtabs"><label
    1.16 + accesskey="s" title="S" for="grp">参加中グループ</label>
    1.17  <div> <!-- div.fold hides this div (in home.m4.html) -->
    1.18  <div class="dumptable">
    1.19  _GROUPS_
    1.20 @@ -20,6 +21,6 @@
    1.21  
    1.22  _HOMETAIL_
    1.23  
    1.24 -<input type="radio" id="close" name="foldtabs" accesskey="x"><label
    1.25 -for="close">×</label>
    1.26 +<input type="radio" id="close" name="foldtabs"><label
    1.27 + accesskey="x" title="X" for="close">×</label>
    1.28  </div> <!--  end of fold (in home.m4.html) -->
     2.1 --- a/examples/common/default/html.m4.html	Mon Oct 24 09:11:28 2016 +0859
     2.2 +++ b/examples/common/default/html.m4.html	Mon Oct 24 09:41:10 2016 +0859
     2.3 @@ -11,12 +11,12 @@
     2.4  <body class="_BODYCLASS_">
     2.5  <div class="topmenu">
     2.6  <ul>
     2.7 - <li><a href="?home">ホーム</a></li>
     2.8 + <li><a href="?home" accesskey="1">ホーム</a></li>
     2.9   <!-- <li><a href="?blog">話題作成</a></li> -->
    2.10 - <li><a href="?mems">参加者一覧</a></li>
    2.11 - <li><a href="?grps">グループ一覧</a></li>
    2.12 - <li><a href="?invite">招待</a></li>
    2.13 - <li><a href="?login">再ログイン</a></li>
    2.14 + <li><a href="?mems" accesskey="2">参加者一覧</a></li>
    2.15 + <li><a href="?grps" accesskey="3">グループ一覧</a></li>
    2.16 + <li><a href="?invite" accesskey="4">招待</a></li>
    2.17 + <li><a href="?login" accesskey="5">再ログイン</a></li>
    2.18   <!-- <li><a href="?userconf">userconf</a></li> -->
    2.19  </ul>
    2.20  </div>
     3.1 --- a/s4-blog.sh	Mon Oct 24 09:11:28 2016 +0859
     3.2 +++ b/s4-blog.sh	Mon Oct 24 09:41:10 2016 +0859
     3.3 @@ -112,12 +112,12 @@
     3.4  <table class="bloghead">
     3.5  EOF
     3.6  
     3.7 -  href="<a href=\"?editheading+$rowid\"> 編集 </a>"
     3.8 +  href="<a href=\"?editheading+$rowid\" accesskey=\"e\" title=\"E\"> 編集 </a>"
     3.9    if $iswritable; then
    3.10 -    href2="<a href=\"?lshandout+$rowid\"> 提出状況 </a>"
    3.11 -    href3="(<a href=\"?gethandout+$rowid\">ファイル取得</a>)"
    3.12 +    href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>"
    3.13 +    href3="(<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"F\">ファイル取得</a>)"
    3.14    fi
    3.15 -  href4='<a href="#bottom"> 末尾へ</a>'
    3.16 +  href4='<a href="#bottom" accesskey="b" title="B"> 末尾へ</a>'
    3.17  
    3.18    query<<-EOF |
    3.19  	SELECT coalesce((SELECT "yes" FROM blog
    3.20 @@ -265,8 +265,8 @@
    3.21    done
    3.22  
    3.23    textform='<div class="fold">
    3.24 -<input type="checkbox" id="cmt" checked><label for="cmt"
    3.25 ->コメントする</label><div>
    3.26 +<input type="checkbox" id="cmt" checked><label
    3.27 + accesskey="c" title="C" for="cmt">コメントする</label><div>
    3.28  <table class="b">
    3.29  <tr><td><textarea name="text" cols="72" rows="4"></textarea></td></tr>
    3.30  <tr><td>添付ファイル:
    3.31 @@ -278,8 +278,8 @@
    3.32    cat<<-EOF
    3.33  	</table> <!-- end of s4-blog:blog_showentry() main table -->
    3.34  	<p class="update_link"><a
    3.35 -	 href="?reload/$rowid">再読込</a> / <a
    3.36 -	 href="#title">先頭へ</a></p>
    3.37 +	 href="?reload/$rowid" accesskey="r" title="R">再読込</a> / <a
    3.38 +	 href="#title" accesskey="t" title="T">先頭へ</a></p>
    3.39  	EOF
    3.40    query<<-EOF
    3.41  	WITH mrt AS (
    3.42 @@ -645,7 +645,8 @@
    3.43      subtitle="`gecos $owner` さんの話題"
    3.44    else
    3.45      grprowid=`query "select rowid from grp where gname=\"$owner\";"`
    3.46 -    subtitle="グループ <a href=\"?grp+$grprowid\">$owner</a> での話題
    3.47 +    subtitle="グループ
    3.48 +     <a href=\"?grp+$grprowid\" accesskey=\"h\" title=\"H\">$owner</a> での話題
    3.49      	`query \"SELECT printf('(チーム:%s)', val)\
    3.50  		 FROM blog_s
    3.51  		 WHERE id=(SELECT id FROM blog WHERE rowid=$rowid)
     4.1 --- a/s4-funcs.sh	Mon Oct 24 09:11:28 2016 +0859
     4.2 +++ b/s4-funcs.sh	Mon Oct 24 09:41:10 2016 +0859
     4.3 @@ -1597,8 +1597,9 @@
     4.4    cond="gname in (select gname from grp_mem where user='$uname')"
     4.5    search_form_args=""
     4.6    if [ x"$user" = x"$uname" ]; then
     4.7 -    conflink="<a href=\"?userconf\">プロフィールの編集</a> /
     4.8 -	<a href=\"?blog\">新規話題の作成</a>"
     4.9 +    conflink="<a href=\"?userconf\" accesskey=\"e\"
    4.10 +	 title=\"E\">プロフィールの編集</a> /
    4.11 +	<a href=\"?blog\" accesskey=\"n\" title=\"N\">新規話題の作成</a>"
    4.12      # Display folders
    4.13      sql="select count(id) from article_m where id
    4.14  		 in (select id from article where author='$user')
    4.15 @@ -1607,8 +1608,8 @@
    4.16      nfile=`query "$sql"`
    4.17      # err nfile=$nfile
    4.18      if [ $nfile -gt 0 ]; then
    4.19 -      conflink="$conflink /
    4.20 -	<a href=\"?lsmyfile\">過去の提出ファイル</a>"
    4.21 +      conflink="$conflink / <a href=\"?lsmyfile\" accesskey=\"f\"
    4.22 +       title=\"F\">過去の提出ファイル</a>"
    4.23      fi
    4.24    else
    4.25      search_form_args="author=$uname"
    4.26 @@ -1688,7 +1689,7 @@
    4.27  
    4.28    cat<<-EOF
    4.29  	`cgi_radio foldtabs yes 'id="mre" accesskey="d"'`<label
    4.30 -	 for="mre">最近の書き込み先</label>
    4.31 +	 for="mre" title="D">最近の書き込み先</label>
    4.32  	<div class="lcto">
    4.33  	`DT_VIEW=replyblog dumptable html blog`
    4.34  	</div>