Have you got WebGL?

I made this 6 years 12 weeks ago

Here's some js to detect webgl:

var gl;
var canvas;
canvas = document.getElementById("webgl-canvas");
try {
gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
} catch(e) {}

Checking... checking... gimme a minute... checking...

Or, you could just use Modernizr to detect it:

if (Modernizr.webgl){
// do something great here!
} else {
// do something else here!