Created
May 1, 2012 15:27
-
-
Save jeffgca/2568826 to your computer and use it in GitHub Desktop.
no mozilla for u
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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