embedded mode now works even without javascript and has useful tips for

those without ogg theora plugin (namely to download VLC and/or go to 
wikipedia)


git-svn-id: http://yolanda.mister-muffin.de/svn@349 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-05-12 04:09:27 +00:00
parent 90762a2326
commit 773a4ba449
2 changed files with 34 additions and 10 deletions

View file

@ -1,7 +1,20 @@
@import "colors/tango.css";
body body
{ {
margin: 0px; font-family: sans-serif;
padding: 0px; font-size: 10pt;
margin: 0px;
padding: 0px;
text-align: center;
}
fieldset
{
border-style: solid;
border-width: 1px;
margin: 0px;
padding: 1em;
} }
form form

View file

@ -17,7 +17,6 @@
omit-xml-declaration="no" omit-xml-declaration="no"
/> />
<!--
<xsl:variable name="lang"> <xsl:variable name="lang">
<xsl:choose> <xsl:choose>
<xsl:when test="document(concat('../lang/', //@lang, '.xml'))"> <xsl:when test="document(concat('../lang/', //@lang, '.xml'))">
@ -28,7 +27,6 @@
</xsl:variable> </xsl:variable>
<xsl:variable name="lang_strings" select="document(concat('../lang/', $lang, '.xml'))//strings/string" /> <xsl:variable name="lang_strings" select="document(concat('../lang/', $lang, '.xml'))//strings/string" />
-->
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
@ -110,11 +108,24 @@
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" /> <xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
</xsl:attribute> </xsl:attribute>
enjoy your NOT OGG <fieldset class="messagebox" id="error">
<span class="message">Your browser does not support <em>Ogg Theora</em> video playback.</span>
</fieldset>
<p>
To view this video, install
<a href="http://www.videolan.org/vlc/">VLC</a>,
<a href="http://www.mplayerhq.hu/design7/dload.html">mplayer</a> or
<a href="http://wiki.xiph.org/index.php/TheoraSoftwarePlayers">another player</a> capable of playing
<a href="http://theora.org/faq/#what">Ogg Theora</a>
videos.
</p>
<p>
For installation instructions, see the <a href="http://en.wikipedia.org/wiki/Wikipedia:Media_help_(Ogg)">Wikipedia Media Help</a>.
</p>
</object> </object>
<div id="preview"> <div id="preview" style="display: none;">
<img> <img>
<xsl:attribute name="src"> <xsl:attribute name="src">
@ -141,11 +152,11 @@
onclick="show_movie()" onclick="show_movie()"
> >
<xsl:attribute name="value"> <xsl:attribute name="value">
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />--> <xsl:value-of select="$lang_strings[@id='video_playback']" />
</xsl:attribute> </xsl:attribute>
<img src="/images/tango/128x128/actions/player_play.png"> <img src="/images/tango/128x128/actions/player_play.png">
<xsl:attribute name="alt"> <xsl:attribute name="alt">
<!-- <xsl:value-of select="$lang_strings[@id='video_playback']" />--> <xsl:value-of select="$lang_strings[@id='video_playback']" />
</xsl:attribute> </xsl:attribute>
</img> </img>
</button> </button>
@ -154,11 +165,11 @@
type="submit" type="submit"
> >
<xsl:attribute name="value"> <xsl:attribute name="value">
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />--> <xsl:value-of select="$lang_strings[@id='video_download']" />
</xsl:attribute> </xsl:attribute>
<img src="/images/tango/128x128/actions/document-save.png"> <img src="/images/tango/128x128/actions/document-save.png">
<xsl:attribute name="alt"> <xsl:attribute name="alt">
<!-- <xsl:value-of select="$lang_strings[@id='video_download']" />--> <xsl:value-of select="$lang_strings[@id='video_download']" />
</xsl:attribute> </xsl:attribute>
</img> </img>
</button> </button>