Team:UT-Tokyo/Templates/BeginContent

From 2011.igem.org

(Difference between revisions)
Line 340: Line 340:
UT_Tokyo.isTouch = !!('ontouchstart' in window);
UT_Tokyo.isTouch = !!('ontouchstart' in window);
UT_Tokyo.hasStorage = !!(!!(window.sessionStorage) * !!(sessionStorage.getItem));
UT_Tokyo.hasStorage = !!(!!(window.sessionStorage) * !!(sessionStorage.getItem));
-
UT_Tokyo.hasHistory = !!(!!(window.history) && !!(history.pushState));
+
UT_Tokyo.hasHistory = !!(!!(window.history) * !!(history.pushState));
UT_Tokyo.hasCanvas = !!window.CanvasRenderingContext2D;
UT_Tokyo.hasCanvas = !!window.CanvasRenderingContext2D;
UT_Tokyo.hasWebGL = !!window.WebGLRenderingContext;
UT_Tokyo.hasWebGL = !!window.WebGLRenderingContext;

Revision as of 08:17, 27 August 2011