IsTouch: Difference between revisions
From JSXGraph Wiki
(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...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
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; | |||
} | |||
t.rendNode.innerHTML += '<br /><br />is ontouchstart in document.documentElement? ' + ('ontouchstart' in document.documentElement); | |||
</jsxgraph> | </jsxgraph> |