implement dark styling for digraphs
[sheet.git] / nethack.plp
index b73a765fe4eb451226617ec2dec234293012be87..8b48c853c07927eef9e6727c9f12358d081cddfb 100644 (file)
@@ -42,33 +42,7 @@ $header{content_type} = $ctype;
        print "\n<style> .no, .alias {opacity:.5} </style>"
                if $showkeys and $get{keys} eq 'ghost';
 :>
-
-<script><!--
-function setmode(classname) {
-       // set style for each #rows>li>ul>li to display:none unless it matches classname
-       var showclass = classname ? ' '+classname+'(?!\\w)' : '^$';
-       var parentskip = /^keys/;
-       var row = document.getElementById('rows').firstChild;
-       do {
-               if (row.tagName == 'LI' && row.firstChild.tagName == 'UL'
-               && !row.firstChild.className.match(parentskip)) {
-                       var el = row.firstChild.firstChild;
-                       if (el) do {
-                               if (el.tagName == 'LI') {
-                                       el.style.display = el.className.match(showclass) ? 'block' : 'none';
-                               }
-                       } while (el = el.nextSibling);
-               }
-       } while (row = row.nextSibling);
-
-       // update H2 to reflect the first part of a currently active (but hidden) H3
-       var h3s = document.getElementsByTagName('H3');
-       for (var i = 0; i < h3s.length; i++) {
-               if (h3s[i].parentNode.style.display != 'block') continue;
-               document.getElementsByTagName('H2')[0].innerHTML = h3s[i].firstChild.data;
-       }
-} // setmode
-//--></script>
+<script type="text/javascript" src="/keys.js"></script>
 
 <body id="nethack">
 
@@ -80,15 +54,17 @@ function setmode(classname) {
 
 <li class="row">
        <ul class="keys omni">
-       <li class="mo" onclick="setmode()"><b>Esc</b>
-               <!-- not as static anymore, but never bothered; just see ^[ -->
+       <li class="me" onclick="setmode()"><b>Esc</b>
+               <!-- static reset button, even though it's not (officially) in the game -->
        </ul>
 </li>
 
 <:
 our %sign = (
        arg    => $ascii ? '.' : '·',  # described as 'dot'
-       argi   => $ascii ? ':' : ':',
+       args   => $ascii ? ':' : '⁚',
+       argi   => $ascii ? "'" : '′',
+       argm   => $ascii ? '|' : '↕',
        motion => $ascii ? '|' : '↕',
        alias  => $ascii ? 'see: ' : '»',
        up     => $ascii ? 'up'    : '▲',
@@ -113,8 +89,6 @@ $keys->print_rows($get{static});
 <div class="help">
        <div class="left">
                <dl class="legend legend-types">
-               <dt class="ci">
-                       <dd>
                <dt class="pm">direction
                        <dd>Direction to move to or target a command (<:= $sign{motion} :>).
                <dt class="po">move
@@ -127,8 +101,6 @@ $keys->print_rows($get{static});
                        <dd>Display invertory menu.
                <dt class="mv">menu
                        <dd>Enters some other menu.
-               <dt class="me">
-                       <dd>
                </dl>
        </div>
 
@@ -136,10 +108,10 @@ $keys->print_rows($get{static});
                <dl class="legend legend-options">
                <dt>key<:= $sign{arg} :>
                        <dd>Commands with a dot need at least one argument afterwards.
-               <dt>key<:= $sign{motion} :>
-                       <dd>Requires a direction afterwards.
                <dt>key<:= $sign{argi} :>
                        <dd>Asks for an inventory item.
+               <dt>key<:= $sign{argm} :>
+                       <dd>Requires a direction afterwards.
                </dl>
 
                <ul class="legend legend-set">
@@ -158,10 +130,10 @@ $keys->print_rows($get{static});
 </div>
 
 <p class="footer">
-       <a href="http://sheet.shiar.nl/nethack">sheet.shiar.nl<strong>/nethack</strong></a>
-       <a href="git://dev.shiar.net/vi-cheat"><:= "v$VERSION" :></a>
-       created by Shiar <:= $sign{sep} :>
-       <a title="Licensed under the GNU Affero General Public License, version 3"
+       <a href="http://sheet.shiar.nl/" rel="home">sheet.shiar.nl</a>/nethack
+       <a href="git://dev.shiar.nl/sheet" rel="vcs-git" title="Git repository"><:= "v$VERSION" :></a>
+       created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
+       <a title="Licensed under the GNU Affero General Public License, version 3" rel="copyright"
           href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPLv3</a> <:= $sign{sep} :>
        last update <:
                use Time::Format qw(time_format);