Skip to content

Commit

Permalink
Added '0' unit before everything. Minor changes to js formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
cesutherland committed Jul 7, 2011
1 parent e30746a commit ddd3e5b
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions dev/parse.php
Expand Up @@ -13,12 +13,12 @@
$lines = preg_split('/(\r\n)|(\n)/', $contents, -1, PREG_SPLIT_NO_EMPTY);

// Data Structures for JS
$totals = array();
$totals = array(array(0, 0));
$practices = array_fill(0, $types, array());
$descriptions = array();
$dates = array();
$descriptions = array('');
$dates = array('');

$count = 0;
$count = 1;
$cummulative = 0;
foreach ($lines as $line) {

Expand Down Expand Up @@ -62,12 +62,10 @@
echo ';';
echo "\n";

/*
Personal Practice,
On Ensemble Practice,
Group Time Practice,
Live / Performance Practice
*/
echo 'var dates = ';
print_r(json_encode($dates));
echo ';';
echo "\n";

echo 'var practices = [';
echo '{"label":"Personal Practice","data":'.json_encode($practices[0]).'},';
Expand All @@ -76,19 +74,4 @@
echo '{"label":"Live Performance","data":'.json_encode($practices[3]).'}';
echo '];';

echo 'var dates = ';
print_r(json_encode($dates));
echo ';';












?>

0 comments on commit ddd3e5b

Please sign in to comment.