s4

changeset 340:a06cd57df83a

Add accesskey-attribute to frequently used tabls and form.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 24 Oct 2016 09:11:28 +0859
parents 47d83939666b
children bad68ea6c30a
files examples/common/default/home.m4.html s4-funcs.sh
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/examples/common/default/home.m4.html	Sun Oct 23 23:31:46 2016 +0859
     1.2 +++ b/examples/common/default/home.m4.html	Mon Oct 24 09:11:28 2016 +0859
     1.3 @@ -6,11 +6,11 @@
     1.4  </div>
     1.5  
     1.6  <div class="foldtabs">
     1.7 -<input type="radio" id="sd" name="foldtabs"><label for="sd">日記(_NBLOG_)</label>
     1.8 +<input type="radio" id="sd" name="foldtabs" accesskey="a"><label for="sd">日記(_NBLOG_)</label>
     1.9  <div><!-- in home.m4 -->_BLOGS_</div><!-- in home.m4 -->
    1.10  
    1.11  
    1.12 -<input type="radio" id="grp" name="foldtabs"><label
    1.13 +<input type="radio" id="grp" name="foldtabs" accesskey="s"><label
    1.14   for="grp">参加中グループ</label>
    1.15  <div> <!-- div.fold hides this div (in home.m4.html) -->
    1.16  <div class="dumptable">
    1.17 @@ -20,6 +20,6 @@
    1.18  
    1.19  _HOMETAIL_
    1.20  
    1.21 -<input type="radio" id="close" name="foldtabs"><label
    1.22 +<input type="radio" id="close" name="foldtabs" accesskey="x"><label
    1.23  for="close">×</label>
    1.24  </div> <!--  end of fold (in home.m4.html) -->
     2.1 --- a/s4-funcs.sh	Sun Oct 23 23:31:46 2016 +0859
     2.2 +++ b/s4-funcs.sh	Mon Oct 24 09:11:28 2016 +0859
     2.3 @@ -1506,7 +1506,7 @@
     2.4  	<div class="fr">
     2.5  	<form action="$myname">$auth
     2.6  	<input type="text" name="kwd" value="" title="$help"
     2.7 -	 placeholder=" $placeholder " width="10">
     2.8 +	 placeholder=" $placeholder " width="10" accesskey="k">
     2.9  	<input type="hidden" name="stage" value="searchart">
    2.10  	</form>
    2.11  	</div>
    2.12 @@ -1653,7 +1653,7 @@
    2.13    shortval=${dumpcollen:+"substr(val, 0, $dumpcollen)"}
    2.14    shortval=${shortval:-val}
    2.15  
    2.16 -   # The m.aid in the next line is suspicious.  But works fine in SQLite3...
    2.17 +  # The m.aid in the next line is suspicious.  But works fine in SQLite3...
    2.18    DT_SQL="SELECT b.rowid || '#' || m.aid LINK,
    2.19         ctime,
    2.20         (SELECT $shortval FROM blog_s WHERE key='title' AND id=b.id) title,
    2.21 @@ -1687,7 +1687,7 @@
    2.22  EOF
    2.23  
    2.24    cat<<-EOF
    2.25 -	`cgi_radio foldtabs yes id="mre"`<label
    2.26 +	`cgi_radio foldtabs yes 'id="mre" accesskey="d"'`<label
    2.27  	 for="mre">最近の書き込み先</label>
    2.28  	<div class="lcto">
    2.29  	`DT_VIEW=replyblog dumptable html blog`
    2.30 @@ -1715,7 +1715,7 @@
    2.31      err newcount=$cont
    2.32      if [ $cont -gt 0 ]; then
    2.33        #echo "全体の新着記事${cont}傑" | html h2
    2.34 -      cgi_radio foldtabs yes 'id="new10"'
    2.35 +      cgi_radio foldtabs yes 'id="new10" accesskey="f"'
    2.36        echo "<label for=\"new10\">新着${cont}傑</label><div>"
    2.37        cat<<-EOF | html form 'action="?home"'
    2.38  	`cgi_checkbox readchk yes 'id="read"'`<label