termcol: hover title with decimal r,g,b values
[sheet.git] / mplayer.plp
1 <(common.inc.plp)><:
2         our $VERSION = 'v1.0';
3
4         use Shiar_Sheet::KeySigns qw(%sign);
5
6         $header{content_type} = "text/html; charset=$sign{charset}";
7
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9  "http://www.w3.org/TR/html4/loose.dtd">
10 <html lang="en">
11
12 <head>
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mplayer cheat sheet</title>
15 <meta name="description" content="Keyboard cheat sheet for the MPlayer media player, overviewing the default controls.">
16 <meta name="keywords" content="mplayer, video, media, sheet, cheat, reference, overview, control, shortkey, keyboard">
17 <:= stylesheet(qw'light dark circus mono red terse') :>
18 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
19 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
20         our $showkeys = exists $get{keys} && $get{keys} ne '0';
21         print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
22                 unless $showkeys;
23         print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24                 if $showkeys and $get{keys} eq 'ghost';
25 :>
26 <link rel="icon" type="image/png" href="/clip.png">
27 <script type="text/javascript" src="/keys.js"></script>
28
29 <body id="mplayer">
30
31 <h1>MPlayer cheat sheet</h1>
32
33 <h2>index (default)</h2>
34
35 <ul id="rows">
36
37 <li class="row">
38         <ul class="keys omni">
39         <li class="mo chr27" onclick="setmode()"><b>Esc</b> q
40                 <!-- not as static anymore, but never bothered; just see ^[ -->
41         </ul>
42 </li>
43
44 <:
45 use Shiar_Sheet::Keyboard;
46 my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'});
47 $keys->map($get{map}) or undef $get{map};
48 $keys->print_rows($get{rows}, [1,0]);
49 :>
50 </ul>
51
52 <hr>
53
54 <div class="help">
55         <div class="left">
56                 <dl class="legend legend-types">
57                 <dt class="ci">osd
58                         <dd>Print information or change display.
59                 <dt class="pm">subtitles
60                         <dd>Alter subtitle selection and settings.
61                 <dt class="co">video
62                         <dd>Video output adjustment.
63                 <dt class="mi">audio
64                         <dd>Sound (track) configuration.
65                 <dt class="mo">playback
66                         <dd>Playback control.
67                 <dt class="me">general
68                         <dd>Other MPlayer features.
69                 </dl>
70         </div>
71
72         <div class="right">
73                 <dl class="legend legend-options">
74                 <dt>key<:= $sign{arg} :>
75                         <dd>Commands with a dot need an argument afterwards.
76                 <dt class="ext">optional
77                         <dd>Some features depend on setup and/or parameters.
78                 </dl>
79
80                 <ul class="legend legend-set">
81                 <li>keyboard <strong>map</strong> is
82                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
83                 <li><strong>ascii</strong> mode is
84                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
85                                 $sign{-ascii} ? 'on' : 'off' :></em>
86                 <li><strong>keys</strong> are
87                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
88                                 !exists $get{keys} && ' by default' :>
89                 <li>default <strong>style</strong> is
90                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
91                 </ul>
92         </div>
93 </div>
94
95 <p class="footer">
96         <a href="/" rel="home">sheet.shiar.nl</a>/mplayer.<a href="/source/mplayer.plp"
97          rel="code" title="Written in Perl">plp</a>
98         <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mplayer.plp"
99          rel="vcs-git" title="Git repository"><:= $VERSION :></a>
100         created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
101         <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
102          title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
103 </p>
104
105 </html>