IsTouch: Difference between revisions
From JSXGraph Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<jsxgraph width=" | <jsxgraph width="500" height="500"> | ||
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', [- | var t = board.create('text', [-3.8, 3.6, 'Is Touch? ' + (JXG.isAndroid() || JXG.isApple()).toString()]); | ||
for (var i in window.Event) { | |||
t.rendNode.innerHTML += ', ' + i; | |||
} | |||
</jsxgraph> | </jsxgraph> |