Difference between revisions of "Widget:WFSP-Dashboard"

From Open Energy Information

(modified turbines reporting last month)
(modified number of reporting within last month)
Line 328: Line 328:
 
             var turbineStatus = itemData[i].turbine_status.toString().replace(/,/g,'<br />');
 
             var turbineStatus = itemData[i].turbine_status.toString().replace(/,/g,'<br />');
 
             var systemStatus = itemData[i].system_status.toString().replace(/,/g,'<br />');
 
             var systemStatus = itemData[i].system_status.toString().replace(/,/g,'<br />');
             var lastReported = new Date((itemData[i].last_reported).concat(" UTC"));
+
             var lastReported = new Date((itemData[i].last_reported).concat(" UTC").replace(/-/g, "/"));
  
 
             var oneMonthAgo = new Date();
 
             var oneMonthAgo = new Date();

Revision as of 13:44, 27 September 2017

This widget helps with Wind for Schools Portal Dashboard content.

{{#Widget:WFSP-Dashboard}}