diff options
author | Devaev Maxim <[email protected]> | 2020-07-09 11:06:03 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-09 11:06:03 +0300 |
commit | dc5b8c2522aaefe11a5d7ce1f27cadcd5d193d75 (patch) | |
tree | 58d2e85e8705c6f3ea950fc72ba3e490ed37df7e /web/share/js/tools.js | |
parent | 5f1733d0024c70ccaf31964980a6286a7951cbed (diff) |
hw tab in web ui
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 = ""; |