You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/09/04 11:26:13 UTC
svn commit: r1866376 -
/comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
Author: sebb
Date: Wed Sep 4 11:26:13 2019
New Revision: 1866376
URL: http://svn.apache.org/viewvc?rev=1866376&view=rev
Log:
Standardise sort order
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js?rev=1866376&r1=1866375&r2=1866376&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js Wed Sep 4 11:26:13 2019
@@ -2137,6 +2137,45 @@ function toggleView(id) {
/******************************************
+ Fetched from source/statistics.js
+******************************************/
+
+
+function StatisticsPage(layout, pdata) {
+ let wrapper = document.getElementById('wrapper');
+ wrapper.style.padding = '8px';
+ wrapper.style.height = 'auto';
+ wrapper.innerHTML = "";
+ for (var i = 0; i < layout.length; i++) {
+ let step = layout[i];
+ if (step.statsgenerator||step.tipgenerator) {
+ let thtml = new HTML('p');
+ let f = Function('a', 'b', "return %s(a,b);".format(step.statsgenerator||step.tipgenerator));
+ data = f(pdata, {});
+ if (typeof data == 'string') thtml.innerHTML += data;
+ else if (typeof data == 'object') thtml.inject(data);
+ thtml.inject(new HTML('hr'));
+ wrapper.inject(thtml);
+ }
+ }
+
+ headers = $(wrapper).find("h4");
+ let toc = "<ul style='background: #3333;'>";
+ for (var i = 0; i < headers.length; i++) {
+ let t = headers[i].innerText.replace(/:.*$/, '');
+ let id = t.replace(/\s+/g, '').toLowerCase();
+ headers[i].setAttribute('id', id);
+ toc += "<li style='display: inline-block; margin-left: 24px;'><a href='#%s'>%s</a></li>".format(id, t);
+ }
+ toc += "</ul>";
+ let twrap = new HTML('div');
+ twrap.innerHTML = toc;
+ wrapper.insertBefore(twrap, wrapper.childNodes[0]);
+
+}
+
+
+/******************************************
Fetched from source/statistics_generator.js
******************************************/
@@ -3111,45 +3150,6 @@ function statistics_releases(data) {
}
/******************************************
- Fetched from source/statistics.js
-******************************************/
-
-
-function StatisticsPage(layout, pdata) {
- let wrapper = document.getElementById('wrapper');
- wrapper.style.padding = '8px';
- wrapper.style.height = 'auto';
- wrapper.innerHTML = "";
- for (var i = 0; i < layout.length; i++) {
- let step = layout[i];
- if (step.statsgenerator||step.tipgenerator) {
- let thtml = new HTML('p');
- let f = Function('a', 'b', "return %s(a,b);".format(step.statsgenerator||step.tipgenerator));
- data = f(pdata, {});
- if (typeof data == 'string') thtml.innerHTML += data;
- else if (typeof data == 'object') thtml.inject(data);
- thtml.inject(new HTML('hr'));
- wrapper.inject(thtml);
- }
- }
-
- headers = $(wrapper).find("h4");
- let toc = "<ul style='background: #3333;'>";
- for (var i = 0; i < headers.length; i++) {
- let t = headers[i].innerText.replace(/:.*$/, '');
- let id = t.replace(/\s+/g, '').toLowerCase();
- headers[i].setAttribute('id', id);
- toc += "<li style='display: inline-block; margin-left: 24px;'><a href='#%s'>%s</a></li>".format(id, t);
- }
- toc += "</ul>";
- let twrap = new HTML('div');
- twrap.innerHTML = toc;
- wrapper.insertBefore(twrap, wrapper.childNodes[0]);
-
-}
-
-
-/******************************************
Fetched from source/stepper.js
******************************************/