diff options
-rw-r--r-- | svg.js | 70 | ||||
-rw-r--r-- | xsl/common.xsl | 1 | ||||
-rw-r--r-- | xsl/layout.xsl | 7 | ||||
-rw-r--r-- | xsl/svg.xsl | 36 |
4 files changed, 0 insertions, 114 deletions
@@ -1,70 +0,0 @@ -function checkBrowser(name) { - return navigator.userAgent.toLowerCase().indexOf(name.toLowerCase())>-1; -} - -window.onload = function() { - if (!(checkBrowser("opera") || checkBrowser("webkit"))) { - var svgs = document.getElementsByClassName("svg"); - for (var i = 0; i < svgs.length; ++i) { - if (svgs[i].localName == "img") { - svgs[i].style.display = "none"; - } else if (svgs[i].localName == "object") { - svgs[i].style.display = "inline"; - } - } - } -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xsl/common.xsl b/xsl/common.xsl index 82bafc8..df348eb 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -7,7 +7,6 @@ xmlns:html="http://www.w3.org/1999/xhtml"> <xsl:include href="navi.xsl" /> - <xsl:include href="svg.xsl" /> <xsl:include href="googlemaps.xsl" /> <xsl:include href="link.xsl" /> diff --git a/xsl/layout.xsl b/xsl/layout.xsl index 72b0181..13b0c38 100644 --- a/xsl/layout.xsl +++ b/xsl/layout.xsl @@ -17,18 +17,11 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="stylesheet" type="text/css" href="style/style.css" /> - <!--<script type="text/javascript" src="svg.js"/>--> </head> <body> <div id="header"> <div id="logo"> <img src="checkmark.png" alt="Checkmark"/> - <!-- - <xsl:call-template name="svg"> - <xsl:with-param name="svg-file" select="'checkmark.svg'" /> - <xsl:with-param name="svg-alt" select="'Checkmark'" /> - </xsl:call-template> - --> </div> <h1>Beratung & Controlling</h1> <h2>Angelika Franzke</h2> diff --git a/xsl/svg.xsl b/xsl/svg.xsl deleted file mode 100644 index 2fc8778..0000000 --- a/xsl/svg.xsl +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0" - xmlns="http://www.w3.org/1999/xhtml" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns:s="https://beratung-franzke.de/web-tpl"> - - - <xsl:template match="s:svg" mode="html"> - <xsl:call-template name="svg"> - <xsl:with-param name="svg-file" select="@src" /> - <xsl:with-param name="svg-alt" select="@alt" /> - </xsl:call-template> - </xsl:template> - - <xsl:template name="svg"> - <xsl:param name="svg-file" /> - <xsl:param name="svg-alt" /> - - <xsl:variable name="png-file" select="concat(substring-before($svg-file, '.svg'), '.png')" /> - - <img src="{$svg-file}" alt="{$svg-alt}" class="svg" /> - - <object data="{$svg-file}" type="image/svg+xml" class="svg" style="display: none"> - <xsl:attribute name="width"> - <xsl:value-of select="ceiling(document(concat('../', $svg-file))/svg:svg/@width)" /> - </xsl:attribute> - <xsl:attribute name="height"> - <xsl:value-of select="ceiling(document(concat('../', $svg-file))/svg:svg/@height)" /> - </xsl:attribute> - <param name="src" value="{$svg-file}" /> - <img src="{$png-file}" alt="{$svg-alt}" /> - </object> - </xsl:template> - -</xsl:stylesheet> |