community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1679797 - in /comdev/projects.apache.org/site: index.html js/projects.js
Date Sat, 16 May 2015 18:17:17 GMT
Author: hboutemy
Date: Sat May 16 18:17:16 2015
New Revision: 1679797

URL: http://svn.apache.org/r1679797
Log:
avoid duplication between .hmtl and .js

Modified:
    comdev/projects.apache.org/site/index.html
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/index.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/index.html?rev=1679797&r1=1679796&r2=1679797&view=diff
==============================================================================
--- comdev/projects.apache.org/site/index.html (original)
+++ comdev/projects.apache.org/site/index.html Sat May 16 18:17:16 2015
@@ -32,15 +32,15 @@
    <p>This site is a catalog of Apache Software Foundation projects.
       It is designed to help you find specific projects that meet your interests and to gain
a broader understanding of
       the wide variety of work currently underway in the Apache community.</p>
-   <div id="details">
-      <h3 style='text-align: center;'>There are currently <span style='color: #269;'>300+</span>
open source initatives at the ASF:</h3>
-      <ul style='width: 300px; margin: 0 auto; font-size: 18px; color: #269; font-weight:
bold;'>
-      <li>~160 top level software projects</li>
-      <li>~100 sub-projects</li>
+   <h3 style='text-align: center;'>There are currently <span style='color: #269;'><span
id="initiatives">300</span>+</span> open source initatives at the ASF:</h3>
+   <ul style='width: 300px; margin: 0 auto; font-size: 18px; color: #269; font-weight:
bold;'>
+      <li><span id="tlps">~160</span> top level software projects</li>
+      <li><span id="subs">~100</span> sub-projects</li>
       <li>5 special committees*</li>
-      <li>~40 incubating podlings</li>
-      </ul>
-      <p><small>*Infrastructure, Travel Assistance, Security Team, Legal Affairs
and Brand Management</small></p>
+      <li><span id="prodlings">~40</span> incubating podlings</li>
+   </ul>
+   <p><small>*Infrastructure, Travel Assistance, Security Team, Legal Affairs
and Brand Management</small></p>
+   <div id="details">
       <p style="text-align: center;">
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1679797&r1=1679796&r2=1679797&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat May 16 18:17:16 2015
@@ -891,14 +891,12 @@ function renderFrontPage() {
     }
     var initiatives = cur + numchairs + nsubs + 5; // podlings + tlps + sub-projects + specials
     initiatives -= initiatives % 100; // round down
+    document.getElementsByName('initiatives').innerHTML = initiatives;
+    document.getElementsByName('tlps').innerHTML = numchairs;
+    document.getElementsByName('subs').innerHTML = nsubs;
+    document.getElementsByName('podling').innerHTML = cur;
     var obj = document.getElementById('details');
-    obj.innerHTML = "<h3 style='text-align: center;'>There are currently <span style='color:
#269;'>" + initiatives + "+</span> open source initatives at the ASF:</h3>"
-	+ "<ul style='width: 300px; margin: 0 auto; font-size: 18px; color: #269; font-weight:
bold;'>"
-    	+ "<li>" + numchairs + " top level software projects</li>"
-    	+ "<li>" + nsubs + " sub-projects</li>"
-    	+ "<li>5 special committees*</li>"
-    	+ "<li>" + cur + " incubating podlings</li></ul>"
-    	+ "<p><small>*Infrastructure, Travel Assistance, Security Team, Legal Affairs
and Brand Management</small></p>";
+    obj.innerHTML = "";
 
     var parr = [];
     var cur = 0;



Mime
View raw message