undo e5abff67bacc8b74659033eaef7d3d8ad49d68d2: CSS-Rollover für Locations mit Link zu Google Maps

This commit is contained in:
Astro 2010-06-08 18:34:13 +02:00 committed by koeart
parent e021c1b4fb
commit 571edf5c86
2 changed files with 2 additions and 51 deletions

View File

@ -251,23 +251,6 @@ pre {
text-decoration: underline;
}
/* -- Location hints -- */
ul.location-hints {
display: none;
position: fixed;
background-color: white;
margin: 0;
padding: 0.1em 0.3em;
border: 2px solid #ebc63c;
}
ul.location-hints li {
list-style-type: none;
list-style-image: none;
}
dl:hover dd ul.location-hints {
display: inline;
}
/* -- Upcoming -- */
#upcoming {
text-align: left;

View File

@ -5,7 +5,7 @@
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:str="http://exslt.org/strings"
exclude-result-prefixes="xsl atom date str">
exclude-result-prefixes="xsl atom date">
<xsl:template match="pre">
<pre><xsl:apply-templates/></pre>
@ -260,39 +260,7 @@
<xsl:template match="item/event/location">
<dl>
<dt>Ort</dt>
<dd>
<!-- Extra <span/>, damit die location-hints nicht mit ins
Microformat rutschen
-->
<span class="location">
<xsl:apply-templates/>
</span>
<ul class="location-hints">
<xsl:variable name="location">
<xsl:choose>
<!-- Extrem schmutziger Hack:
Google Maps versteht keine Raum-Angaben
-->
<xsl:when test="contains(., 'Raum')">
<xsl:value-of select="substring-before(., 'Raum')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="location-encoded"
select="str:encode-uri($location, true())"/>
<li>
<a href="http://maps.google.com/maps?q={$location-encoded}">Google Maps</a>
</li>
<!-- Hier bitte weitere Anbieter einfügen, wir sind
doch nicht Google-zentrisch. Ich habe nur gerade
keine akzeptablen gefunden. Astro
-->
</ul>
</dd>
<dd class="location"><xsl:apply-templates/></dd>
</dl>
</xsl:template>