Author: mamsellem
Date: Tue Dec 17 00:19:46 2013
New Revision: 1551414
URL: http://svn.apache.org/r1551414
Log:
IN PROGRESS - FLEX-33907 Showcase section in web site
Added links props
Added Dojo
Added:
flex/site/trunk/content/images/showcase/full/Dojo/
flex/site/trunk/content/images/showcase/full/Dojo/1.png (with props)
flex/site/trunk/content/images/showcase/full/Dojo/2.png (with props)
flex/site/trunk/content/images/showcase/full/Dojo/3.png (with props)
flex/site/trunk/content/images/showcase/prev/Dojo/
flex/site/trunk/content/images/showcase/prev/Dojo/1.png (with props)
flex/site/trunk/content/images/showcase/prev/Dojo/2.png (with props)
flex/site/trunk/content/images/showcase/prev/Dojo/3.png (with props)
Modified:
flex/site/trunk/content/js/showcase.js
Added: flex/site/trunk/content/images/showcase/full/Dojo/1.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/full/Dojo/1.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/full/Dojo/1.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/images/showcase/full/Dojo/2.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/full/Dojo/2.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/full/Dojo/2.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/images/showcase/full/Dojo/3.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/full/Dojo/3.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/full/Dojo/3.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/images/showcase/prev/Dojo/1.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/prev/Dojo/1.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/prev/Dojo/1.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/images/showcase/prev/Dojo/2.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/prev/Dojo/2.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/prev/Dojo/2.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: flex/site/trunk/content/images/showcase/prev/Dojo/3.png
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/images/showcase/prev/Dojo/3.png?rev=1551414&view=auto
==============================================================================
Binary file - no diff available.
Propchange: flex/site/trunk/content/images/showcase/prev/Dojo/3.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: flex/site/trunk/content/js/showcase.js
URL:
http://svn.apache.org/viewvc/flex/site/trunk/content/js/showcase.js?rev=1551414&r1=1551413&r2=1551414&view=diff
==============================================================================
--- flex/site/trunk/content/js/showcase.js (original)
+++ flex/site/trunk/content/js/showcase.js Tue Dec 17 00:19:46 2013
@@ -4,6 +4,7 @@
* author: string
* description: app description
* [ website: url ]
+* links : [( "linkTyp", "url " ) + ]
* [ videos: url ]
* imgDir: subdirectory for images
* images: Array of file names
@@ -26,30 +27,35 @@
*/
function addShowcaseEntry( props) {
+ var i;
// TITLE
var entry = '<div class="headline"><h4>'+props.title+'</h4></div>' +
' <ul class="arrow_list">' +
'<li> Summary: '+props.description+' </li>' +
'<li>Author: '+props.author+' </li>' ;
+
if (props.website) {
entry += '<li> Web site: <A href="'+ props.website+'"
target="_blank">' + props.website + '</A></li>';
}
- if (props.video) {
- entry += '<li> Video: <A href="' + props.video + '"
target="_blank">' + props.video + '</A></li>';
+ var links = props.links;
+ if (links){
+ for (i=0; i < links.length; i+= 2){
+ entry += '<li> '+links[i]+': <A href="' + links[i+1] + '"
target="_blank">' + links[i+1] + '</A></li>';
+ }
}
entry += '</ul>' ;
// image gallery
var imgs = props.images;
- var i;
+
var img;
var imgPath;
if (imgs){
for (i = 0; i < imgs.length; i++) {
img = imgs[i];
imgPath = props.imgDir + '/' + img ;
- entry += '<a class="gallery" rel="grp1"
href="images/showcase/full/'+ imgPath + '" title="' + img + '">'
+ entry += '<a class="gallery" rel="'+ props.imgDir +'"
href="images/showcase/full/'+ imgPath + '" title="' + img + '">'
+ '<img src="images/showcase/prev/' + imgPath + '"/>';
}
}
@@ -83,19 +89,18 @@ $(document).ready(function () {
description: "",
author: "",
website: "",
- video: "",
imgDir: "",
images: [ ]
});
addShowcaseEntry({
title: "My Dojo for Dota 2",
- description: "",
+ description: "My Dojo for Dota 2 is a mobile application that tracks
personal statistics from the online video game Dota 2. " +
+ "It shows the results of matches in a easy to understand interface
with extended information of each player. ",
author: "",
- website: "",
- video: "",
- imgDir: "",
- images: [ ]
+ links: [ "iTunes",
"https://itunes.apple.com/us/app/my-dojo-for-dota-2/id689886683?ls=1&mt=8"] ,
+ imgDir: "Dojo",
+ images: [ "1.png", "2.png", "3.png"]
});
addShowcaseEntry({
@@ -103,7 +108,6 @@ $(document).ready(function () {
description: "",
author: "",
website: "",
- video: "",
imgDir: "",
images: [ ]
});
@@ -118,6 +122,15 @@ $(document).ready(function () {
images: [ "TrafficLIVE-data-visualisation.png" ]
});
+ addShowcaseEntry({
+ title: "VeraType",
+ description: "",
+ author: "",
+ website: "",
+ imgDir: "",
+ images: [ ]
+ });
+
/* Template for new entry
addShowcaseEntry({
title: "",