Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Created May 1, 2012 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffgca/2568826 to your computer and use it in GitHub Desktop.
Save jeffgca/2568826 to your computer and use it in GitHub Desktop.
no mozilla for u
// tonecraft feature detection, from http://labs.dinahmoe.com/ToneCraft/#
try {
context = new webkitAudioContext();
} catch(error) {
warning = document.createElement("div");
warning.className = "warning";
warning.innerHTML = "<p>ToneCraft is a Chrome + <a href=\"http://chromium.googlecode.com/svn/trunk/samples/audio/specification/specification.html\">Web Audio API</a> experiment by <a href=\"http://www.dinahmoe.com\">DinahMoe</a>.</p><br/><p>To get ToneCraft up and running you need to download the <a href=\"http://www.google.com/chrome\">latest version</a> of Google Chrome.</p>";
warning.appendChild(loading);
shade.appendChild(warning);
$(".loading").remove();
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment