nicholas@2384: // Script to load the relevant JS files if the system supports it nicholas@2384: nicholas@2384: window.onload = function() { nicholas@2384: // First check if the Web Audio API is supported nicholas@2384: if (window.AudioContext == undefined && window.webkitAudioContext == undefined) { nicholas@2384: // Display unsuported error message nicholas@2384: var body = document.getElementsByTagName("body")[0]; nicholas@2384: body.innerHTML = "
Your browser does not support the HTML5 Web Audio API. Please use one of the following supported browsers instead.
"; nicholas@2384: var table = document.createElement("table"); nicholas@2384: table.border = "0"; nicholas@2384: table.innerHTML = "