Sha256: 6c4296df578442d1bbab9faca5efa2404bf04c9fd1008287f8fa72bf05191193
Contents?: true
Size: 525 Bytes
Versions: 17
Compression:
Stored size: 525 Bytes
Contents
// Rather than analyze user agents strings, the client places query params in the url: // - client // - version (ex: 1.2) (function($){ var q = $.deserialize(window.location.search.substring(1)); $.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
17 entries across 17 versions & 1 rubygems