You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hb...@apache.org on 2015/05/16 15:56:04 UTC

svn commit: r1679745 - in /comdev/projects.apache.org/site: index.html js/projects.js

Author: hboutemy
Date: Sat May 16 13:56:04 2015
New Revision: 1679745

URL: http://svn.apache.org/r1679745
Log:
display static text when json loads: text is useful

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=1679745&r1=1679744&r2=1679745&view=diff
==============================================================================
--- comdev/projects.apache.org/site/index.html (original)
+++ comdev/projects.apache.org/site/index.html Sat May 16 13:56:04 2015
@@ -28,7 +28,20 @@
 </div>
 
 <div id="contents">
-   <p style="text-align: center;">
+   <h2>Welcome to the Apache Projects Directory</h2>
+   <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>
+      <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>
+      <p style="text-align: center;">
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>
    </p>
@@ -40,6 +53,7 @@
          Please enable it or get a browser that supports it.
       </p>
    </noscript>
+   </div>
 </div>
 <div id="footer">
    Copyright&copy; 2015, the Apache Software Foundation. Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a><br/>

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1679745&r1=1679744&r2=1679745&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat May 16 13:56:04 2015
@@ -891,16 +891,14 @@ function renderFrontPage() {
     }
     var initiatives = cur + numchairs + nsubs + 5; // podlings + tlps + sub-projects + specials
     initiatives -= initiatives % 100; // round down
-    var obj = document.getElementById('contents');
-    obj.innerHTML = "<h2>Welcome to the Apache Projects Directory</h2>"
-	+ "<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>"
-    appendElementWithInnerHTML(obj,'p',"<h3 style='text-align: center;'>There are currently <span style='color: #269;'>" + initiatives + "+</span> open source initatives at the ASF:</h3>"
+    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>");
+    	+ "<p><small>*Infrastructure, Travel Assistance, Security Team, Legal Affairs and Brand Management</small></p>";
 
     var parr = [];
     var cur = 0;