Replace logo figures
[proteocache.git] / webapp / view / fragments / logos.jsp
index 3f825cb..c4c7ea9 100644 (file)
@@ -1,35 +1,25 @@
 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
 
-<spring:url value="/images/proteocache.png" var="logo" />
-<spring:url value="/images/uod_logo_transparent.svg" var="university" />
+<spring:url value="/images/proteocache05d.svg" var="logoSVG" />
+<spring:url value="/images/proteocache05d.png" var="logoPNG" />
+<spring:url value="/images/uod_logo_transparent.svg" var="universitySVG" />
 <spring:url value="/images/uod_logo_transparent.png" var="universityPNG" />
+<spring:url value="/images/bg_logo_transparent.svg" var="bartongroupSVG" />
+<spring:url value="/images/bg_logo_transparent.png" var="bartongroupPNG" />
+<script>
+function checkSVG(svg,png,title) {
+       if (Modernizr.svg) {
+               document.write('<img class=\"displayed\" src=\"' + svg + '\" alt=\"'+ title + '\"/>');
+       } else {
+               document.write('<img class=\"displayed\" src=\"' + png + '\" alt=\"'+ title + '\"/>');
+       }
+}
+</script>
 
 <table class="table">
        <tr>
-               <td>
-               <a href="http://www.dundee.ac.uk">
-               <script>
-                       document.write("<img class=\"displayed\" ");
-                       if (Modernizr.svg) {
-                               document.write("src=\"${university}\"");
-                       } else {
-                               document.write("src=\"${universityPNG}\"");
-                       }
-                       document.write(" alt=\"University of Dundee\"/>");
-               </script>
-               </a>
-               </td>
-               <td><img class="displayed" src="${logo}" alt="ProteoCache 0.5" title="ProteoCache framework, version 0.5"/></td>
-               <td>
-               <script>
-                       document.write("<img class=\"displayed\" ");
-                       if (Modernizr.svg) {
-                               document.write("src=\"${university}\"");
-                       } else {
-                               document.write("src=\"${universityPNG}\"");
-                       }
-                       document.write(" alt=\"University of Dundee\"/>");
-               </script>
-               </td>
+               <td><a href="http://www.compbio.dundee.ac.uk/"><script>checkSVG('${bartongroupSVG}', '${bartongroupPNG}', 'Barton Group Logo');</script></a></td>
+               <td><script>checkSVG('${logoSVG}', '${logoPNG}', 'ProteoCache Logo');</script>  </td>
+               <td><a href="http://www.dundee.ac.uk"><script>checkSVG('${universitySVG}', '${universityPNG}', 'University of Dundee Logo');</script></a></td>
        </tr>
 </table>