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(){ diff --git a/views/layout.php b/views/layout.php index 10bf9a2..a791a69 100644 --- a/views/layout.php +++ b/views/layout.php @@ -4,8 +4,8 @@