Added new screenshots, link to screenshots
authorLuciano Montanaro <mikelima@cirulla.net>
Sat, 2 Jul 2011 10:11:00 +0000 (12:11 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Sat, 2 Jul 2011 10:11:00 +0000 (12:11 +0200)
www/default.css
www/screenshot-generator.js
www/screenshot-stationlist-menu.png [new file with mode: 0644]
www/screenshot-stationview-menu.png [new file with mode: 0644]

index 3fb2fbc..8d43af2 100644 (file)
@@ -24,21 +24,20 @@ div.bodymatter {
        float: left;
 }
 div.screenshot {
+       display: inline-block;
        margin: 10pt;
        padding: 12pt;
        padding-top: 6pt;
        padding-bottom: 3pt;
        text-align: center;
-       width: 50%;
+       width: 33%;
        border: none;
        background-color: #eee
 }
-
 div.screenshot p {
        font-style: italic;
        text-indent: 0pt;
 }
-
 div.screenshot img {
        width: 100%
 }
index 78c6582..53b4add 100644 (file)
@@ -1,6 +1,8 @@
 var screenshots = {
        "screenshot-stationlist.png" : "The Station List View",
        "screenshot-stationview.png" : "The Station Departures View",
+       "screenshot-stationlist-menu.png" : "The Station List Menu",
+       "screenshot-stationview-menu.png" : "The Station Departures Menu",
 };
 
 function generate_div(value, index, array)
@@ -12,12 +14,16 @@ function generate_div(value, index, array)
        var p1Element = document.createElement('div');
        var p2Element = p1Element.cloneNode(true);
        
+       var aElement = document.createElement('a');
+       aElement.setAttribute('href', index);
+
        var imgElement = document.createElement('img');
        imgElement.setAttribute('src', index);
 
        var captionElement = document.createTextNode(value);
 
-       p1Element.appendChild(imgElement);
+       p1Element.appendChild(aElement);
+       aElement.appendChild(imgElement);
        p2Element.appendChild(captionElement);
 
        screenshotDiv.appendChild(p1Element);
diff --git a/www/screenshot-stationlist-menu.png b/www/screenshot-stationlist-menu.png
new file mode 100644 (file)
index 0000000..0756877
Binary files /dev/null and b/www/screenshot-stationlist-menu.png differ
diff --git a/www/screenshot-stationview-menu.png b/www/screenshot-stationview-menu.png
new file mode 100644 (file)
index 0000000..2195625
Binary files /dev/null and b/www/screenshot-stationview-menu.png differ