Sha256: 900b730fb418de57acb0c9b228460bbade1a667def42754ae6c6eb843e74cc3a
Contents?: true
Size: 492 Bytes
Versions: 14
Compression:
Stored size: 492 Bytes
Contents
// Rather than analyze user agents strings, the client places query params in the url: // - client // - version (ex: 1.2) (function($){ var q = $.queryStrToObj(); $.assert(q.client, "`client` param is required."); $.assert(q.version, "`version` param is required."); $.client = {}; $.client[q.client] = true; $.client.version_major = q.version.split('.')[0]; $.client.version_minor = q.version.split('.')[1]; $(document.body).addClass(q.client); })(Zepto);
Version data entries
14 entries across 14 versions & 1 rubygems