From 96a15f6505fcc7077cfa380f4caa0974d78c3f1b Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 28 Jun 2011 00:48:53 +0530 Subject: [PATCH] remove console.logs --- radia.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/radia.js b/radia.js index 69f698b..b8ddce2 100644 --- a/radia.js +++ b/radia.js @@ -1,4 +1,8 @@ // var R; +function supportsSvg() { + return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0") +} + function getNode(nodeKey) { var ret = false; @@ -14,6 +18,10 @@ function getNode(nodeKey) { } $(function() { + if (!supportsSvg) { + $('body').text("Sorry, your browser does not support Scalable Vector Graphics (SVG), which were used to make this page. Please use Firefox 4.0+ or Google Chrome if you wish to see this page. Thanks! Sorry for the trouble..."); + return; + } $(window).resize(function() { var svgAspect = 1220 / 560; var windowWidth = $(window).width(); @@ -62,7 +70,7 @@ $(function() { var nodes = LINES[id]; // console.log(nodes); for (var i=0; i