Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/examples/common/default/home.m4.html Sun Oct 23 23:31:46 2016 +0859 +++ b/examples/common/default/home.m4.html Mon Oct 24 09:11:28 2016 +0859 @@ -6,11 +6,11 @@ </div> <div class="foldtabs"> -<input type="radio" id="sd" name="foldtabs"><label for="sd">日記(_NBLOG_)</label> +<input type="radio" id="sd" name="foldtabs" accesskey="a"><label for="sd">日記(_NBLOG_)</label> <div><!-- in home.m4 -->_BLOGS_</div><!-- in home.m4 --> -<input type="radio" id="grp" name="foldtabs"><label +<input type="radio" id="grp" name="foldtabs" accesskey="s"><label for="grp">参加中グループ</label> <div> <!-- div.fold hides this div (in home.m4.html) --> <div class="dumptable"> @@ -20,6 +20,6 @@ _HOMETAIL_ -<input type="radio" id="close" name="foldtabs"><label +<input type="radio" id="close" name="foldtabs" accesskey="x"><label for="close">×</label> </div> <!-- end of fold (in home.m4.html) -->
--- a/s4-funcs.sh Sun Oct 23 23:31:46 2016 +0859 +++ b/s4-funcs.sh Mon Oct 24 09:11:28 2016 +0859 @@ -1506,7 +1506,7 @@ <div class="fr"> <form action="$myname">$auth <input type="text" name="kwd" value="" title="$help" - placeholder=" $placeholder " width="10"> + placeholder=" $placeholder " width="10" accesskey="k"> <input type="hidden" name="stage" value="searchart"> </form> </div> @@ -1653,7 +1653,7 @@ shortval=${dumpcollen:+"substr(val, 0, $dumpcollen)"} shortval=${shortval:-val} - # The m.aid in the next line is suspicious. But works fine in SQLite3... + # The m.aid in the next line is suspicious. But works fine in SQLite3... DT_SQL="SELECT b.rowid || '#' || m.aid LINK, ctime, (SELECT $shortval FROM blog_s WHERE key='title' AND id=b.id) title, @@ -1687,7 +1687,7 @@ EOF cat<<-EOF - `cgi_radio foldtabs yes id="mre"`<label + `cgi_radio foldtabs yes 'id="mre" accesskey="d"'`<label for="mre">最近の書き込み先</label> <div class="lcto"> `DT_VIEW=replyblog dumptable html blog` @@ -1715,7 +1715,7 @@ err newcount=$cont if [ $cont -gt 0 ]; then #echo "全体の新着記事${cont}傑" | html h2 - cgi_radio foldtabs yes 'id="new10"' + cgi_radio foldtabs yes 'id="new10" accesskey="f"' echo "<label for=\"new10\">新着${cont}傑</label><div>" cat<<-EOF | html form 'action="?home"' `cgi_checkbox readchk yes 'id="read"'`<label