diff options
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index e3fa3892..63524a6a 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -46,6 +46,10 @@ export var tools = new function() { /************************************************************************/ + this.upperFirst = function(text) { + return text[0].toUpperCase() + text.slice(1); + }; + this.makeId = function() { let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; let id = ""; |