flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject svn commit: r1551399 - in /flex/site/trunk: content/community-showcase.cmsPage content/js/custom.js content/js/showcase.js templates/flex-v2-header.html
Date Mon, 16 Dec 2013 23:28:38 GMT
Author: mamsellem
Date: Mon Dec 16 23:28:38 2013
New Revision: 1551399

URL: http://svn.apache.org/r1551399
Log:
IN PROGRESS - FLEX-33907 Showcase section in web site
balance feature boxes (try #3)
try#2 javascript generated showcase entries

Added:
    flex/site/trunk/content/js/showcase.js
Modified:
    flex/site/trunk/content/community-showcase.cmsPage
    flex/site/trunk/content/js/custom.js
    flex/site/trunk/templates/flex-v2-header.html

Modified: flex/site/trunk/content/community-showcase.cmsPage
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/community-showcase.cmsPage?rev=1551399&r1=1551398&r2=1551399&view=diff
==============================================================================
--- flex/site/trunk/content/community-showcase.cmsPage (original)
+++ flex/site/trunk/content/community-showcase.cmsPage Mon Dec 16 23:28:38 2013
@@ -17,22 +17,6 @@ To speed up the process, you can include
 
  <div id="showcaseContainer">[CONTENT]</div>
 
-    <script type="text/javascript">
-
-             addShowcaseEntry( {
-                 title: 'bCommunities',
-                 description: 'Test descriptui'  ,
-                 author: "john@doe",
-                 website: 'http://www.flex.org'   ,
-                 video: "http://youtube.com"       ,
-                 images: [ "Communications Inbox" , "Directory - Company Level" ]
-             });
-
-         });
-
-
- </script>
-
 <div class="headline"><h4>bCommunities - Secure B2B Collaboration</h4></div>
 <ul class="arrow_list">
 <li> Summary:  We've created bCommunities, a disruptively efficient online platform
that enables businesses to powerfully

Modified: flex/site/trunk/content/js/custom.js
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/js/custom.js?rev=1551399&r1=1551398&r2=1551399&view=diff
==============================================================================
--- flex/site/trunk/content/js/custom.js (original)
+++ flex/site/trunk/content/js/custom.js Mon Dec 16 23:28:38 2013
@@ -108,28 +108,3 @@ jQuery(document).ready(function() {
 /* ------------------ End Document ------------------ */
 });
 
-/*  showcase Javascript helper */
-
-/* helper function to create the showcase
- *  props:
- *  title: app title
- *  author: string
- *  description: app description
- *  website: url
- *  videos: url
- *  images:  Array
- */
-
-alert("showcase.js");
-
-function addShowcaseEntry(props) {
-
-    // TITLE
-    var entry = '<div class="headline"><h4>' + props.title + '</h4></div>'
;
-    var entryDiv = document.createElement("div");
-    alert("Entry=" + entry);
-    entryDiv.innerHTML = entry;
-    var showcaseContainer = document.getElementById("showcaseContainer");
-    showcaseContainer.appendChild(entryDiv);
-
-}

Added: flex/site/trunk/content/js/showcase.js
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/js/showcase.js?rev=1551399&view=auto
==============================================================================
--- flex/site/trunk/content/js/showcase.js (added)
+++ flex/site/trunk/content/js/showcase.js Mon Dec 16 23:28:38 2013
@@ -0,0 +1,74 @@
+/* helper function to create the showcase
+*  props:
+*  title: app title
+*  author: string
+*  description: app description
+*  website: url
+*  videos: url
+*  images:  Array
+* */
+ /*
+  <div class='headline'><h4>%TITLE%</h4></div>
+  <ul class="arrow_list">
+  <li> Summary:  %SUMMARY%  </li>
+  <li>Author:   %AUTHOR% </li>
+  <li> Web site:   <A href="%WEBSITE%" target="_blank">%WEBSITE%</A></li>
+  <li> Videos: <A href="%VIDEO%" target="_blank">%VIDEO%</A>  </li>
+  </ul>
+  <div><a class="gallery" rel="grp1" href="images/showcase/full/bCommunities/Communications
Inbox.jpg" title="Communications Inbox">
+  <img src="images/showcase/prev/bCommunities/Communications Inbox.jpg"/>
+  </a>
+  <a class="gallery" rel="grp1" href="images/showcase/full/bCommunities/Directory - Company
Level.jpg" title="Directory - Company Level"></a>
+  <a class="gallery" rel="grp1" href="images/showcase/full/bCommunities/Project Setup
View.jpg" title="Project Setup View"></a>
+  </div>
+
+  */
+
+alert("showcase2.js");
+
+ function addShowcaseEntry( props) {
+
+     // TITLE
+    var entry = '<div class="headline"><h4>'+props.title+'</h4></div>'
+
+      ' <ul class="arrow_list">' +
+        '<li> Summary:  %SUMMARY%  </li>'  +
+        '<li>Author:   %AUTHOR% </li>' ;
+     if (props.website) {
+         entry += '<li> Web site:   <A href="%WEBSITE%" target="_blank">%WEBSITE%</A></li>';
+     }
+     if (props.video) {
+         entry += '<li> Video:   <A href="%VIDEO%" target="_blank">%VIDEO%</A></li>';
+     }
+     entry += '</ul>'    ;
+
+    // image gallery
+    var imgs = props.images;
+    var i;
+    var img;
+    for (  i = 0 ; i < imgs.length; i++){
+         img = imgs[i];
+        entry += '<a class="gallery" rel="grp1" href="images/showcase/full/bCommunities/'+img
+ '.jpg" title="'+img+'">'
+          +  '<img src="images/showcase/prev/bCommunities/'+img+'.jpg"/>' ;
+    }
+
+    var entryDiv = document.createElement("div");
+     alert("Entry="+entry);
+     entryDiv.innerHTML = entry ;
+    var showcaseContainer = document.getElementById("showcaseContainer");
+    showcaseContainer.appendChild(entryDiv);
+
+}
+
+function addShowCaseEntries() {
+
+    addShowcaseEntry({
+        title: 'bCommunities',
+        description: 'Test descriptui',
+        author: "john@doe",
+        website: 'http://www.flex.org',
+        video: "http://youtube.com",
+        images: [ "Communications Inbox" , "Directory - Company Level" ]
+    });
+
+
+}
\ No newline at end of file

Modified: flex/site/trunk/templates/flex-v2-header.html
URL: http://svn.apache.org/viewvc/flex/site/trunk/templates/flex-v2-header.html?rev=1551399&r1=1551398&r2=1551399&view=diff
==============================================================================
--- flex/site/trunk/templates/flex-v2-header.html (original)
+++ flex/site/trunk/templates/flex-v2-header.html Mon Dec 16 23:28:38 2013
@@ -25,6 +25,7 @@
     <script src="js/fancybox.js"></script>
     <script src="js/isotope.js"></script>
     <script src="js/bootstrap.js"></script>
+    <script src="js/showcase.js"></script>
 
     <!-- Google Analytics -->
     <script type="text/javascript">



Mime
View raw message