Difference between revisions of "IsTouch"

From JSXGraph Wiki
Jump to: navigation, search
(Created page with "<jsxgraph width="200" height="200"> var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-4,4,4,-4], keepaspectratio:true}); board.create('text', [0, 0, JXG.isAndroid() || J...")
 
Line 1: Line 1:
 
<jsxgraph width="200" height="200">
 
<jsxgraph width="200" height="200">
 
var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-4,4,4,-4], keepaspectratio:true});
 
var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-4,4,4,-4], keepaspectratio:true});
board.create('text', [0, 0, JXG.isAndroid() || JXG.isApple()]);
+
board.create('text', [-2, 0, 'Is Touch? ' + (JXG.isAndroid() || JXG.isApple()).toString()]);
 
</jsxgraph>
 
</jsxgraph>

Revision as of 22:57, 26 October 2012