1. Minor changes to front-end text for temporal vis per Katy's requests.
This commit is contained in:
parent
c52e8362bc
commit
a2069d1575
4 changed files with 22 additions and 10 deletions
|
@ -103,4 +103,10 @@ if (typeof String.prototype.trim !== 'function') {
|
|||
String.prototype.trim = function() {
|
||||
return this.replace(/^\s+|\s+$/g, '');
|
||||
}
|
||||
}
|
||||
|
||||
function toTitleCase(str) {
|
||||
return str.replace(/\w\S*/g, function(txt) {
|
||||
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue