chiark / gitweb /
For printable trading plan: formatting runes for htmldoc
[ypp-sc-tools.db-live.git] / yarrg / example-plan.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3     This HTML is generated by the YARRG website, which is
4     Copyright 2009 Ian Jackson, Clare Boothby, Steve Early.
5
6     The YARRG website is Free Software and licenced according to the
7     GNU Affero General Public Licence (v3 or later).  See the link at
8     the bottom of this page for full licence and copyright
9     information.
10
11     Many YARRG web pages also display data from the YARRG database,
12     which contains mostly contributions from YARRG users and is not
13     covered by the AGPL.
14 -->
15
16
17
18
19 <html lang="en"><head><title>Trades for route - YARRG</title>
20 <style type="text/css">
21 body {
22   color: #000000;
23   background: #ffffff;
24 }
25 tr.datarow0 { background: #e3e3e3; }
26 tr.datarow1 { background: #ffffff; }
27 </style>
28
29 </head><body>
30
31 QUERY HERE
32
33
34 commit 8198bdb1afdf8ebedb130006e3af2af6b11045ab
35 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
36 Date:   Thu Sep 24 19:01:44 2009 +0100
37
38     Use full URLs for query sites
39
40 commit 207dec6556d4642ce7223e243f08af3bbe8fd157
41 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
42 Date:   Thu Sep 24 19:00:12 2009 +0100
43
44     YARRG website is fine
45
46 commit 19c49821438f668c75868ca696bd0b06c6a47d2a
47 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
48 Date:   Thu Sep 24 18:58:48 2009 +0100
49
50     Document that we actually upload to the main PCTB db
51
52 commit 68843821b559b609abb26e50ed20171b108fb60c
53 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
54 Date:   Wed Sep 23 20:58:09 2009 +0100
55
56     Switch to main PCTB server now we are approved
57
58 commit 016f2797ee2dfea8948bbb1247eaa9fc5234a35a
59 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
60 Date:   Thu Sep 24 00:09:43 2009 +0100
61
62     Dump bogus XML in _commodmap.xml if we can't parse it
63
64 commit 938b4dd547bfc4d9538a5714b6f21ab3da50d8d1
65 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
66 Date:   Wed Sep 23 23:55:45 2009 +0100
67
68     Better HTTP User-Agent strings (rot13 the library, say who we are)
69
70 commit c810347487961a59b3d8dfb2fed123f49dc22ed4
71 Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
72 Date:   Wed Sep 23 15:12:46 2009 +0100
73
74     Do not allow caller to specify arbitrary content-types
75
76 commit a9a88c14c5a5bd057932f76ad721b5f0fc845c20
77 Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
78 Date:   Tue Sep 22 15:25:57 2009 +0100
79
80     Minor html style changes
81
82
83 commit 8198bdb1afdf8ebedb130006e3af2af6b11045ab
84 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
85 Date:   Thu Sep 24 19:01:44 2009 +0100
86
87     Use full URLs for query sites
88
89 commit 207dec6556d4642ce7223e243f08af3bbe8fd157
90 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
91 Date:   Thu Sep 24 19:00:12 2009 +0100
92
93     YARRG website is fine
94
95 commit 19c49821438f668c75868ca696bd0b06c6a47d2a
96 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
97 Date:   Thu Sep 24 18:58:48 2009 +0100
98
99     Document that we actually upload to the main PCTB db
100
101 commit 68843821b559b609abb26e50ed20171b108fb60c
102 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
103 Date:   Wed Sep 23 20:58:09 2009 +0100
104
105     Switch to main PCTB server now we are approved
106
107 commit 016f2797ee2dfea8948bbb1247eaa9fc5234a35a
108 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
109 Date:   Thu Sep 24 00:09:43 2009 +0100
110
111     Dump bogus XML in _commodmap.xml if we can't parse it
112
113 commit 938b4dd547bfc4d9538a5714b6f21ab3da50d8d1
114 Author: Ian Jackson <ian@liberator.relativity.greenend.org.uk>
115 Date:   Wed Sep 23 23:55:45 2009 +0100
116
117     Better HTTP User-Agent strings (rot13 the library, say who we are)
118
119 commit c810347487961a59b3d8dfb2fed123f49dc22ed4
120 Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
121 Date:   Wed Sep 23 15:12:46 2009 +0100
122
123     Do not allow caller to specify arbitrary content-types
124
125 commit a9a88c14c5a5bd057932f76ad721b5f0fc845c20
126 Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
127 Date:   Tue Sep 22 15:25:57 2009 +0100
128
129     Minor html style changes
130
131
132 <h1>Voyage trading plan</h1>
133 <table rules=groups>
134 <tr bgcolor="#808080"><td colspan=6>
135 <tr><td colspan=4>
136 <strong>Start at Eta Island</strong>
137 <td colspan=2>(Data age: <span id="da_0">2 days</span>)
138 <tr bgcolor="#e0e0e0" class="datarow0">
139 <td rowspan=2>Collect
140 <td rowspan=2>Wood
141 <td>Finagle&#39;s Distilling Stall
142 <td rowspan=2 align=right>22 poe ea.
143 <td rowspan=2 align=right>276 unit(s)
144 <td rowspan=2 align=right>6072 total
145 <tr bgcolor="#e0e0e0">
146 <td>Samjones&#39;s Ironworking Stall
147 <tr class="datarow1">
148 <td rowspan=3>Collect
149 <td rowspan=3>Wood
150 <td>Acute Irony
151 <td rowspan=3 align=right>23 poe ea.
152 <td rowspan=3 align=right>647 unit(s)
153 <td rowspan=3 align=right>14881 total
154 <tr class="datarow1">
155 <td>Fumundacheez&#39;s Ironworking Stall
156 <tr class="datarow1">
157 <td>Tesla Foils
158 <tr>
159 <td colspan=1>
160 <td colspan=2>In hold 161525kg, 230750 l.
161
162 <td colspan=2 align=right>Outlay
163 <td align=right>20953 total
164 <tr bgcolor="#808080"><td colspan=6>
165 <tr><td colspan=4>
166 <strong>Sail to Jorvik Island</strong>
167 - 5 leagues,
168  22991poe at risk
169  </td>
170 <td colspan=2>(Data age: <span id="da_1">2 days</span>)
171 <tr class="datarow0">
172 <td rowspan=4>Deliver
173 <td rowspan=4>Wood
174 <td>Biker&#39;s Distilling Stall
175 <td rowspan=4 align=right>25 poe ea.
176 <td rowspan=4 align=right>839 unit(s)
177 <td rowspan=4 align=right>20975 total
178 <tr class="datarow0">
179 <td>Canterbury Ales
180 <tr class="datarow0">
181 <td>Darkseid&#39;s Ironworking Stall
182 <tr class="datarow0">
183 <td>Spearhalk&#39;s Distilling Stall
184 <tr class="datarow1">
185 <td rowspan=2>Deliver
186 <td rowspan=2>Wood
187 <td>Affjordable Furnishing
188 <td rowspan=2 align=right>24 poe ea.
189 <td rowspan=2 align=right>84 unit(s)
190 <td rowspan=2 align=right>2016 total
191 <tr class="datarow1">
192 <td>Helsingkor
193 <tr>
194 <td colspan=1>
195 <td colspan=2>
196 <td colspan=2 align=right>Proceeds
197 <td align=right>22991 total
198 <tr bgcolor="#808080"><td colspan=6>
199 <tr class="datarow0">
200 <td rowspan=1>Collect
201 <td rowspan=1>Iron
202 <td>Helsingkor
203 <td rowspan=1 align=right>14 poe ea.
204 <td rowspan=1 align=right>21 unit(s)
205 <td rowspan=1 align=right>294 total
206 <tr class="datarow1">
207 <td rowspan=1>Collect
208 <td rowspan=1>Rambutan
209 <td>Yggdrasil
210 <td rowspan=1 align=right>51 poe ea.
211 <td rowspan=1 align=right>2 unit(s)
212 <td rowspan=1 align=right>102 total
213 <tr>
214 <td colspan=1>
215 <td colspan=2>
216 <td colspan=2 align=right>(Arbitrage) outlay
217 <td align=right>396 total
218 <tr bgcolor="#808080"><td colspan=6>
219 <tr class="datarow0">
220 <td rowspan=1>Deliver
221 <td rowspan=1>Iron
222 <td>Jergs&#39;s Ironworking Stall
223 <td rowspan=1 align=right>15 poe ea.
224 <td rowspan=1 align=right>21 unit(s)
225 <td rowspan=1 align=right>315 total
226 <tr class="datarow1">
227 <td rowspan=1>Deliver
228 <td rowspan=1>Rambutan
229 <td>Merchant of Vanir
230 <td rowspan=1 align=right>59 poe ea.
231 <td rowspan=1 align=right>2 unit(s)
232 <td rowspan=1 align=right>118 total
233 <tr>
234 <td colspan=1>
235 <td colspan=2>
236 <td colspan=2 align=right>(Arbitrage) proceeds
237 <td align=right>433 total
238 <tr bgcolor="#808080"><td colspan=6><tr>
239 <td colspan=3>Total distance: 5 leagues.
240 <td colspan=2 align=right>Overall net cash flow
241 <td align=right><strong>2075 gain</strong>
242 </table>
243
244 <script type="text/javascript">
245 <!--
246
247   function da_Refresh() {
248     var now= Date.now();
249     debug('updating now='+now);
250     for (var ageid in da_ages) {
251       var oldage= da_ages[ageid];
252       var el= document.getElementById(ageid);
253       var age= oldage + (now - da_pageload) / 1000;
254       var newhtml=         age < 60 ?             'less than a minute'                    :
255         age < 60*2 ?           '1 minute'                              :
256         age < 3600*2 ?         Math.floor (age/60) +' minutes'        :
257         age < 86400*2 ?        Math.floor (age/3600) + ' hours'       :
258                                 Math.floor (age/86400) + ' days';
259 ;
260       el.innerHTML= newhtml;
261     }
262   }
263   da_ages= {"da_1":173565,"da_0":173605};
264   window.setInterval(da_Refresh, 10000);
265   register_onload(da_Refresh);
266
267 // -->
268 </script>
269
270
271
272
273 </form>
274
275
276 <p>
277
278
279
280 <script type="text/javascript">
281 <!--
282
283 function debug (m) {
284 }
285
286 // -->
287 </script>
288
289
290 <hr>
291 <address>
292 YARRG is Yet Another Revenue Research Gatherer, a project of the
293 crew Special Circumstances on the Midnight Ocean
294 and of the Sinister Greenend Organisation.
295 <p>
296
297 YARRG is Free Software.
298 You may share and modify the code and the
299 website, according to the terms of the GNU General Public Licence and
300 the GNU Affero General Public Licence respectively (v3 or later).
301 Note that there is <strong>NO WARRANTY</strong>.
302 Please see the <a href="devel">YARRG Development webpage</a> for
303 details of how to obtain the client and server code and full details
304 of the licences.
305
306 <p>
307 YARRG is Copyright 2009 Ian Jackson, Clare Boothby, Steve Early.
308 Yohoho and Puzzle Pirates are trademarks of Three Rings and are used
309 without permission.  YARRG is not endorsed or sponsored by Three
310 Rings.
311
312 </address>
313
314
315