diff options
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/script.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/js/script.js b/public/js/script.js index 399af05..ea86931 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -5,6 +5,7 @@ var minutes = zero_pad(Math.floor(seconds / 60) % 60); return (seconds < 0 ? '-' : '+') + hours + ":" + minutes; } + function zero_pad(num) { num = "" + num; if(num.length == 1) { @@ -13,6 +14,10 @@ return num; } + function csv_to_array(val) { + return val.split(/[, ]+/); + } + $(function(){ |