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

Version Path
sports_db-0.2.2 app/assets/javascripts/plugins/detect.js
sports_db-0.2.1 app/assets/javascripts/plugins/detect.js
sports_db-0.2 app/assets/javascripts/plugins/detect.js
sports_db-0.0.13 app/assets/javascripts/plugins/detect.js
sports_db-0.1.3 app/assets/javascripts/plugins/detect.js
sports_db-0.1.2 app/assets/javascripts/plugins/detect.js
sports_db-0.1.1 app/assets/javascripts/plugins/detect.js
sports_db-0.1.0 app/assets/javascripts/plugins/detect.js
sports_db-0.0.9 app/assets/javascripts/plugins/detect.js
sports_db-0.0.8 app/assets/javascripts/plugins/detect.js
sports_db-0.0.7 app/assets/javascripts/plugins/detect.js
sports_db-0.0.6 app/assets/javascripts/plugins/detect.js
sports_db-0.0.5 app/assets/javascripts/plugins/detect.js
sports_db-0.0.4 app/assets/javascripts/plugins/detect.js