enjoy your embedded mode

git-svn-id: http://yolanda.mister-muffin.de/svn@348 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-05-11 21:58:03 +00:00
parent 0f896875c4
commit 90762a2326
4 changed files with 102 additions and 90 deletions

View file

@ -1,21 +1,35 @@
body
{
font-family: sans-serif;
font-size: 8pt;
font-weight: bold;
overflow: visible;
margin: 0px;
padding: 0px;
}
div.watch-browserplugin, div.watch-cortadoapplet
form
{
float: left;
text-align: left;
width: 50%;
height: 100%;
width: 100%;
}
div.embedded-backlink
button
{
float: right;
text-align: right;
width: 50%;
/* crude center hack */
position: absolute;
top: 50%;
left: 50%;
width: 15em;
height: 15em;
}
button[name="playback"]
{
/* crude center hack */
margin-left: -15em;
margin-top: -7.5em;
}
button[name="download"]
{
/* crude center hack */
margin-left: 0em;
margin-top: -7.5em;
}

View file

@ -178,7 +178,7 @@ form ol
#preview form button
{
/* crude center hack (second part in bridget.css) */
/* crude center hack */
position: absolute;
top: 50%;
left: 50%;
@ -188,14 +188,14 @@ form ol
#preview form button[name="playback"]
{
/* crude center hack (second part in fake6.css) */
/* crude center hack */
margin-left: -15em;
margin-top: -7.5em;
}
#preview form button[name="download"]
{
/* crude center hack (second part in fake6.css) */
/* crude center hack */
margin-left: 0em;
margin-top: -7.5em;
}

View file

@ -32,7 +32,30 @@
<xsl:template match="/">
<html>
<body>
<head>
<link
rel="stylesheet"
type="text/css"
media="screen"
href="/style/embedded.css"
/>
</head>
<body onload="hide_movie()">
<xsl:call-template name="video-script" />
<xsl:call-template name="video-object" />
</body>
</html>
</xsl:template>
<xsl:template name="video-script">
<script type="text/javascript">
@ -71,22 +94,10 @@ kudos to toby white who details the solution on http://scispace.net/tow21/weblog
<xsl:text disable-output-escaping="yes">></xsl:text>
</script>
<!-- <xsl:call-template name="video-script" />-->
<xsl:call-template name="video-object" />
</body>
</html>
</xsl:template>
<xsl:template name="video-object">
<fieldset id="video">
<legend>
<!-- <xsl:value-of select="$lang_strings[@id='fieldset_video']" />-->
</legend>
<object id="video" type="application/ogg">
<xsl:attribute name="width">
@ -99,24 +110,11 @@ kudos to toby white who details the solution on http://scispace.net/tow21/weblog
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
</xsl:attribute>
<fieldset class="messagebox" id="error">
<span class="message">
<!-- <xsl:value-of select="$lang_strings[@id='error_no_ogg_plugin']" />-->
</span>
</fieldset>
<xsl:call-template name="pluginhelp" />
enjoy your NOT OGG
</object>
</fieldset>
<fieldset id="preview" style="display: none;">
<legend>
<!-- <xsl:value-of select="$lang_strings[@id='fieldset_preview']" />-->
</legend>
<div id="preview">
<img>
<xsl:attribute name="src">
@ -166,7 +164,7 @@ kudos to toby white who details the solution on http://scispace.net/tow21/weblog
</button>
</form>
</fieldset>
</div>
</xsl:template>

View file

@ -421,10 +421,10 @@ filesize
<xsl:value-of select="$lang_strings[@id='protip_embed']" />
<br />
<code>
&lt;object data="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'embed=true')" />"
&lt;object data="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'xslt=xhtml-embed')" />"
type="application/xml"
width=<xsl:value-of select="//video/@width + 24" />
height=<xsl:value-of select="//video/@height + 48" />
width="<xsl:value-of select="//video/@width" />"
height="<xsl:value-of select="//video/@height + 16" />"
/&gt;
</code>
</fieldset>