From 2012.igem.org
(Difference between revisions)
|
|
Line 6: |
Line 6: |
| <script type="text/javascript" src="toolscripts?action=raw"></script> | | <script type="text/javascript" src="toolscripts?action=raw"></script> |
| <script type="text/javascript"> | | <script type="text/javascript"> |
- | (function() {
| |
- | var ua = navigator.userAgent,
| |
- | iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
| |
- | typeOfCanvas = typeof HTMLCanvasElement,
| |
- | nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
| |
- | //I'm setting this based on the fact that ExCanvas provides text support for IE
| |
- | //and that as of today iPhone/iPad current text support is lame
| |
- | labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML';
| |
- | nativeTextSupport = labelType == 'Native';
| |
- | useGradients = nativeCanvasSupport;
| |
- | animate = !(iStuff || !nativeCanvasSupport);
| |
- | })();
| |
- |
| |
| var Log = { | | var Log = { |
| elem: false, | | elem: false, |
Revision as of 14:21, 4 September 2012