This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function formatReportTitle(objectKeys){ | |
| var formattedReportArray = []; | |
| for (a = 0; a <= objectKeys.length -1; a++){ //loop through array of report types/object keys | |
| var splitString = objectKeys[a].split("_"); //slpit the array by "_" | |
| //loop through each string item | |
| for (var b = 0; b <= splitString.length -1; b++ ){ | |
| splitString[b] = splitString[b].split(''); //splits string into array of letters | |
| splitString[b][0] = splitString[b][0].toUpperCase(); //makes first letter capitalizes | |
| splitString[b]= splitString[b].join(''); //converts array of letter back to word | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class parallax { | |
| private _backgroundElement:string; | |
| private _containerElement:string; | |
| set containerElement(name: string){ | |
| this._containerElement = name; | |
| } | |
| set backgroundElement(name: string){ | |
| this._backgroundElement = name; | |
| } |
OlderNewer