[Pcsclite-cvs-commit] r3438 - in /website: default.css matrix.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Apr 13 07:35:33 UTC 2009


Author: rousseau
Date: Mon Apr 13 07:35:32 2009
New Revision: 3438

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3438
Log:
display the reader image when the mouse is over the manufacturer name

Modified:
    website/default.css
    website/matrix.py

Modified: website/default.css
URL: http://svn.debian.org/wsvn/pcsclite/website/default.css?rev=3438&op=diff
==============================================================================
--- website/default.css (original)
+++ website/default.css Mon Apr 13 07:35:32 2009
@@ -23,3 +23,5 @@
 span.note{background:pink;}
 span.features{background:yellow;}
 span.url{}
+a img{position:absolute;visibility:hidden}
+a:hover img{visibility:visible}

Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=3438&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Mon Apr 13 07:35:32 2009
@@ -215,6 +215,8 @@
         for f in fields:
             if f == 'iProduct':
                 file.write("<td><a href='%s.html#%s%s'>%s</a></td>" % (readers[r]['section'], readers[r]['idVendor'], readers[r]['idProduct'], readers[r][f]))
+            elif f == 'iManufacturer':
+                file.write('<td><a onmouseover="">%s<img src="%s"></td>' % (readers[r][f], "img/" + readers[r].get('image', "no_image.png")))
             else:
                 file.write("<td>%s</td>" % readers[r][f])
         file.write('</tr>\n')




More information about the Pcsclite-cvs-commit mailing list