# HG changeset patch # User Nicholas Jillings # Date 1456250183 0 # Node ID 0038731dc1fec8cf969eef805de268ff8e19a787 # Parent 82286ff865b7b77803640d8cf5ae138499d26c91 Initial start to analysis pages diff -r 82286ff865b7 -r 0038731dc1fe analysis/analysis.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analysis/analysis.js Tue Feb 23 17:56:23 2016 +0000 @@ -0,0 +1,29 @@ +/* +* Analysis script for WAET +*/ + +var chartContext; +window.onload = function() { + // Load the Visualization API and the corechart package. + google.charts.load('current', {'packages':['corechart']}); + chartContext = new Chart(); +} + +function Chart() { + this.data = null; + + this.getValueData = function() { + var XMLHttp = new XMLHttpRequest(); + XMLHttp.parent = this; + XMLHttp.open("GET","comment_parser.php?format=JSON",true); + XMLHttp.onload = function() { + // Now we have the JSON data, extract + this.parent.data = JSON.parse(this.responseText); + } + XMLHttp.send(); + } + + this.drawMean = function() { + // First we must get the value data + } +} \ No newline at end of file diff -r 82286ff865b7 -r 0038731dc1fe analysis/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analysis/index.html Tue Feb 23 17:56:23 2016 +0000 @@ -0,0 +1,12 @@ + + + + + + + +

Web Audio Evaluation Toolbox: Analysis

+
+
+ \ No newline at end of file