# HG changeset patch # User Nicholas Jillings # Date 1456250241 0 # Node ID 124e6c702845abbbceba3b21d9182a4d5ed675db # Parent d2afd2ee86843bd9ac710589982d8a59bf54f7d7# Parent 07c997c0e22a98ee8793294ead4671d83191a2c1 Merge diff -r d2afd2ee8684 -r 124e6c702845 analysis/analysis.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analysis/analysis.js Tue Feb 23 17:57:21 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 d2afd2ee8684 -r 124e6c702845 analysis/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analysis/index.html Tue Feb 23 17:57:21 2016 +0000 @@ -0,0 +1,12 @@ + + + + + + + +

Web Audio Evaluation Toolbox: Analysis

+
+
+ \ No newline at end of file