Added new screenshots for 0.50/Meego Harmattan
authorLuciano Montanaro <mikelima@cirulla.net>
Fri, 13 Jul 2012 15:40:00 +0000 (17:40 +0200)
committerLuciano Montanaro <mikelima@cirulla.net>
Fri, 13 Jul 2012 15:40:00 +0000 (17:40 +0200)
www/harmattan-screenshot-stationlist.png [new file with mode: 0644]
www/harmattan-screenshot-stationview.png [new file with mode: 0644]
www/screenshot-generator.js

diff --git a/www/harmattan-screenshot-stationlist.png b/www/harmattan-screenshot-stationlist.png
new file mode 100644 (file)
index 0000000..c4abf61
Binary files /dev/null and b/www/harmattan-screenshot-stationlist.png differ
diff --git a/www/harmattan-screenshot-stationview.png b/www/harmattan-screenshot-stationview.png
new file mode 100644 (file)
index 0000000..432c337
Binary files /dev/null and b/www/harmattan-screenshot-stationview.png differ
index 7aec65e..d04231f 100644 (file)
@@ -1,4 +1,8 @@
 var screenshots = {
+       "@1" : "Version 0.5.0 for Meego Harmattan N9/N950",
+       "harmattan-screenshot-stationlist.png" : "The Station List View",
+       "harmattan-screenshot-stationview.png" : "The Station Departures View",
+       "@2" : "Version 0.4.3 for Maemo 5 N900",
        "screenshot-stationlist.png" : "The Station List View",
        "screenshot-stationview.png" : "The Station Departures View",
        "screenshot-stationlist-menu.png" : "The Station List Menu",
@@ -56,10 +60,23 @@ function generate_div(value, index, array)
        screenshots.appendChild(screenshotDiv);
 }
 
+function generate_section(value, index, array)
+{
+       var screenshots = document.getElementById('screenshot-list');
+       var sectionElement = document.createElement('h3');
+       var captionElement = document.createTextNode(value);
+       
+       sectionElement.appendChild(captionElement);
+       screenshots.appendChild(sectionElement);
+}
 function build_screenshot_list()
 {
-       for (var key in screenshots)
-               generate_div(screenshots[key], key, screenshots);
+       for (var key in screenshots) {
+               if (key.match(/^@.*/)) 
+                       generate_section(screenshots[key], key, screenshots);
+               else
+                       generate_div(screenshots[key], key, screenshots);
+       }
 
        var element = document.getElementById('picture-display-picture');
        if (element.addEventListener) {