Template:Team:Waterloo/JS/jgallery
From 2014.igem.org
(Difference between revisions)
Line 52: | Line 52: | ||
J = (J) ? J : ""; | J = (J) ? J : ""; | ||
G = G || {}; | G = G || {}; | ||
- | if | + | if (typeof J == "object") { |
+ | if (J.hasOwnProperty("_tc_id")) { | ||
return J | return J | ||
+ | } | ||
} | } | ||
var L = p(J); | var L = p(J); | ||
Line 759: | Line 761: | ||
function u(G) { | function u(G) { | ||
- | + | if (typeof G == "string") { | |
+ | return failand(G.indexOf(".") != -1, parseFloat(G) === 1); | ||
+ | } | ||
+ | return false; | ||
} | } | ||
function E(G) { | function E(G) { | ||
- | + | if (typeof G === "string") { | |
+ | return G.indexOf("%") != -1 | ||
+ | } | ||
+ | return false; | ||
} | } | ||
Revision as of 09:50, 17 October 2014