community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1672908 - in /comdev/projects.apache.org/site: datatables.html index.html js/projects.js projects.html releases.html
Date Sat, 11 Apr 2015 17:45:06 GMT
Author: hboutemy
Date: Sat Apr 11 17:45:06 2015
New Revision: 1672908

URL: http://svn.apache.org/r1672908
Log:
added progress status

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

Modified: comdev/projects.apache.org/site/datatables.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/datatables.html?rev=1672908&r1=1672907&r2=1672908&view=diff
==============================================================================
--- comdev/projects.apache.org/site/datatables.html (original)
+++ comdev/projects.apache.org/site/datatables.html Sat Apr 11 17:45:06 2015
@@ -44,6 +44,7 @@
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>
    </p>
+   <p id="progress" style="text-align: center;"></p>
    <noscript>
       <h2>Notice!</h2>
       <p>

Modified: comdev/projects.apache.org/site/index.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/index.html?rev=1672908&r1=1672907&r2=1672908&view=diff
==============================================================================
--- comdev/projects.apache.org/site/index.html (original)
+++ comdev/projects.apache.org/site/index.html Sat Apr 11 17:45:06 2015
@@ -32,6 +32,7 @@
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>
    </p>
+   <p id="progress" style="text-align: center;"></p>
    <noscript>
       <h2>Notice!</h2>
       <p>

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1672908&r1=1672907&r2=1672908&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat Apr 11 17:45:06 2015
@@ -54,9 +54,15 @@ function GetAsyncJSON(theUrl, xstate, ca
     }
 }
 
+var fetchCount = 0;
 // Fetch an array of URLs, each with their own callback plus a final callback
 // Used to fetch everything before rendering a page that relies on multiple JSON sources.
 function GetAsyncJSONArray(urls, finalCallback) {
+    var obj = document.getElementById('progress');
+    if (fetchCount == 0 ) {
+	fetchCount = urls.length
+    }
+
     if (urls.length > 0) {
 	var a = urls.shift();
 	var URL = a[0]
@@ -67,6 +73,9 @@ function GetAsyncJSONArray(urls, finalCa
 	} else {
 	    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 	}
+
+	if (obj) { obj.innerHTML = "loading data: " + ( fetchCount - urls.length ) + " / " + fetchCount
}
+
 	xmlHttp.open("GET", URL, true);
 	xmlHttp.send(null);
 	xmlHttp.onreadystatechange = function(state) {
@@ -83,6 +92,7 @@ function GetAsyncJSONArray(urls, finalCa
 	}
     }
     else {
+	if (obj) { obj.innerHTML = "building page content..." }
 	finalCallback();
     }
 }

Modified: comdev/projects.apache.org/site/projects.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/projects.html?rev=1672908&r1=1672907&r2=1672908&view=diff
==============================================================================
--- comdev/projects.apache.org/site/projects.html (original)
+++ comdev/projects.apache.org/site/projects.html Sat Apr 11 17:45:06 2015
@@ -41,6 +41,7 @@
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>
    </p>
+   <p id="progress" style="text-align: center;"></p>
    <noscript>
       <h2>Notice!</h2>
       <p>

Modified: comdev/projects.apache.org/site/releases.html
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/releases.html?rev=1672908&r1=1672907&r2=1672908&view=diff
==============================================================================
--- comdev/projects.apache.org/site/releases.html (original)
+++ comdev/projects.apache.org/site/releases.html Sat Apr 11 17:45:06 2015
@@ -34,6 +34,7 @@
       Loading data, please wait...<br/>
       <img src="/images/loader.gif"/>
    </p>
+   <p id="progress" style="text-align: center;"></p>
    <noscript>
       <h2>Notice!</h2>
       <p>



Mime
View raw message