From: Luciano Montanaro Date: Fri, 13 Jul 2012 15:40:00 +0000 (+0200) Subject: Added new screenshots for 0.50/Meego Harmattan X-Git-Tag: tags/0.5.0~1 X-Git-Url: http://git.maemo.org/git/?p=quandoparte;a=commitdiff_plain;h=6d96e8c13afebba2e614c2d10e368640e44f9964 Added new screenshots for 0.50/Meego Harmattan --- diff --git a/www/harmattan-screenshot-stationlist.png b/www/harmattan-screenshot-stationlist.png new file mode 100644 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 index 0000000..432c337 Binary files /dev/null and b/www/harmattan-screenshot-stationview.png differ diff --git a/www/screenshot-generator.js b/www/screenshot-generator.js index 7aec65e..d04231f 100644 --- a/www/screenshot-generator.js +++ b/www/screenshot-generator.js @@ -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) {