]>
Commit | Line | Data |
---|---|---|
1 | <!-- Written by Mike Frysinger <vapier@gmail.com>. Released into the public domain. Suck it. --> | |
2 | <!doctype html> | |
3 | <html> | |
4 | ||
5 | <head> | |
6 | <title>Media Player Client</title> | |
7 | <script src='js/tcp-client.js'></script> | |
8 | <script src='js/mpc.js'></script> | |
9 | <script src='main.js'></script> | |
10 | <style> | |
11 | table { | |
12 | margin: 0px; | |
13 | padding: 0px; | |
14 | border-collapse: collapse; | |
15 | } | |
16 | body { | |
17 | margin: 0px; | |
18 | padding: 0px; | |
19 | } | |
20 | td { | |
21 | white-space: nowrap; | |
22 | } | |
23 | div#status { | |
24 | white-space: nowrap; | |
25 | } | |
26 | ||
27 | table.tabs td { | |
28 | padding-left: 1em; | |
29 | border: black solid 1px; | |
30 | border-top: 0px; | |
31 | font-size: smaller; | |
32 | font-family: sans-serif; | |
33 | background-color: #d0d0d0; | |
34 | } | |
35 | table.tabs td.selected { | |
36 | background-color: white; | |
37 | } | |
38 | ||
39 | /* Get the tabs to float at the bottom */ | |
40 | html, body { | |
41 | height: 100%; | |
42 | } | |
43 | div#body { | |
44 | min-height: 100%; | |
45 | } | |
46 | div.main { | |
47 | overflow: auto; | |
48 | padding-bottom: 1.3em; | |
49 | } | |
50 | div#footer { | |
51 | position: relative; | |
52 | margin-top: -1.3em; | |
53 | height: 1.3em; | |
54 | clear: both; | |
55 | } | |
56 | </style> | |
57 | </head> | |
58 | ||
59 | <body> | |
60 | ||
61 | <div id='body'> | |
62 | ||
63 | <div class='main' id='main.controls'> | |
64 | <table> | |
65 | <tr> | |
66 | <td> | |
67 | <input type='button' id='previous' value='⇦'><input type='button' id='stop' value='◻'><input type='button' id='pause' value='◫'><input type='button' id='play' value='▷'><input type='button' id='next' value='⇨'> | |
68 | </td> | |
69 | <td style='whitespace:collapse'> | |
70 | <input type='button' id='repeat' value='∞'><input type='button' id='random' value='®'><input type='button' id='single' value='§'><input type='button' id='consume' value='©'> | |
71 | </td> | |
72 | </tr> | |
73 | <tr> | |
74 | <td> | |
75 | <input type='range' id='setvol' min='0' max='100' value='0'> | |
76 | </td> | |
77 | <td> | |
78 | <input type='range' id='seekcur' min='0' max='100' value='0'> | |
79 | </td> | |
80 | </tr> | |
81 | <tr> | |
82 | <td colspan=2> | |
83 | <span id='status'>Loading...</span> | |
84 | </td> | |
85 | </tr> | |
86 | </table> | |
87 | </div> | |
88 | ||
89 | <div class='main' id='main.options' style='display: none'> | |
90 | <table> | |
91 | <tr> | |
92 | <td>Host:</td> | |
93 | <td><input type='text' id='host' value='192.168.0.2'></td> | |
94 | </tr> | |
95 | <tr> | |
96 | <td>Port:</td> | |
97 | <td><input type='number' id='port' value='6600'></td> | |
98 | </tr> | |
99 | <tr> | |
100 | <td colspan=2> | |
101 | <input type='button' id='connect' value='connect'> | |
102 | | |
103 | Sync Settings:<input type='checkbox' id='sync' checked></td> | |
104 | </tr> | |
105 | </table> | |
106 | </div> | |
107 | ||
108 | <div class='main' id='main.metadata' style='display: none'> | |
109 | <div id='metadata'></div> | |
110 | </div> | |
111 | ||
112 | </div> | |
113 | ||
114 | <div id='footer'> | |
115 | <table class='tabs'> | |
116 | <tr> | |
117 | <td id='tab.controls' class='selected'>Controls</td> | |
118 | <td id='tab.metadata'>Metadata</td> | |
119 | <td id='tab.options'>Options</td> | |
120 | </tr> | |
121 | </table> | |
122 | </div> | |
123 | ||
124 | </body> | |
125 | </html> |