Wow Phil, race results as art... impressive stuff!
Simon
Milen,
You are also probably new in the Sailwave business...
Some time ago, all cell styles were defined cell by cell, making the
final page code very difficult to read... and to customize.
Now styles for "odd" and "even" lines are in the code. (perhaps
these styles should NOT be used in table headerlines, or define a
style class headerodd and headereven...)
Some pre-defined page styles use it, some don't.
But lines are always marked in the <tr> tag.
For some Web pages, I've to use semi-transparent background images
instead of plain background colors.
With the present code, it's no longer a problem, see variant
attached...
Note that I marked discards, not DNC's as plain light grey cells in
this version.
A comment for the developpers... these grey cells are not nice with
text left-aligned...
Phil
From: Ìèëåí Ïåòðèíñêè
To: sailwave@yahoogroups.com
Sent: Friday, April 18, 2008 3:14 PM
Subject: Re: [sailwave] Tidier HTML
Philippe,
ID attributes should be unique for the document, so you can't use
ids to mark table cells for DNC, DNF, etc., because you can have
multiple DNF, DNC, whatever. Class attributes are the right way to do
this.
Milen Petrinski
Philippe De Troy wrote:
Tony,
CSS uses two sorts of customization, class and id.
class (style defined with a dot) is used by Sailwave
id (style defined by #) is not.
When you display the html page, show the page source
and save the source
Then, using Wordpad,
a.. open the file
b.. under <style>, add a style #DNC { background-color: #808080 }
c.. search and replace <td>DNC by <td id="DNC">DNC
d.. search and replace <td>(DNC) by <td id="DNC">(DNC)
e.. Save
f.. Display the page...
Note for the developpers...
The French software FReg allows to display 1st, 2nd or 3rd
places with colors
example (customiszed gold, silver and yellow)
#1 { background-color: #FFDD00 }
#2 { background-color: #DDDDFF }
#3 { background-color: #66BB66 }
and the code of the page contains something like
<td><span id="1">1<br><i>1.0</i></td>
displaying rank and points, no background if no style is defined
for #1, otherwise the style you defined, here "gold".
If these sleeping styles are in the html code of the page, they
can easily be activated when needed...
More.
When I'm using the same codes on several web sites, and a
dedicated style sheet is used on each site, replace the style
definitions (or add after style defs) the line <link rel="stylesheet"
type="text/css" href="results.css"> (the specific stylesheet for
results is named results.css), all files are displayed in the style of
the Web site...
Phil
From: Huw Pearce
To: sailwave@yahoogroups.com
Sent: Friday, April 18, 2008 12:09 PM
Subject: RE: [sailwave] Tidier HTML
Tony,
You can create your own Templates & Styles, the place to put
them is in the appropriate folders under the Templates & Styles
sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The
reason for doing this is that they will not get overwritten during
upgrades of Sailwave. You could use the Sailwave provided Templates &
Styles as a starting point using a copy moved in the My Styles
Templates folders.
Sailwave 'exports' HTML and this is hard coded in the
application. Also, you can on the second window of publishing select
Editor in the drop down list box of destinations and the output will
be 'opened' in your default HTML editor.
However, I have created a CSV file! To do this on the second
page of the publishing select application from the drop down list of
destination and click the MS Excel button then OK. After a short
pause, well on my ancient 233MHz PII, Excel appears with the
information. I then did a File Save As and selected CSV from the file
format options. I will have to check what happens on a portable I have
which does not have Microsoft Office installed but OpenOffice and see
if it opens in OpenOffice Calc!
I have never created my own templates & styles. I am sure
others will be able to give you more advice.
Hope this is useful pointer.
Kind regards,
Huw
From: sailwave@yahoogroups.com
[mailto:sailwave@yahoogroups.com]On Behalf Of tony_tucker0
Sent: 18 April 2008 10:39
To: sailwave@yahoogroups.com
Subject: [sailwave] Tidier HTML
OK let me first admit I'm a bit of a nerd on tidy html, but
I want our
tables to look as they should, using our css design for the
site. Also
I want to put in some tweaks, e.g. greying cells containing
DNC's.
The html that Sailwave produces isn't quite there, and I
haven't found
an easy way to get from Sailwave to the basic results, for
example in
a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to
simply
···
--- In sailwave@yahoogroups.com, "Philippe De Troy" <philippe@...> wrote:
----- Original Message -----
----- Original Message -----
-----Original Message-----
output simple text results?
thanks
Tony