jQuery.depend

jQuery plugin for resolve the problem browser-dependent. This plugin provides "browser detection", "browser version detection", "platform detection".

View the Project on GitHub garafu/jquery.depend

Features

A jQuery plugin. This plugin provides following features.

This plugin use 'window.navigator.userAgent' string, when detect user's browser and platform.

Usage

'jquery.depend' plugin provide resolution of browser dependency problem, browser detection, and platform detection. The following sample code is part of this plugin features.

var message = $.depend({
                    on: $.browser.is('msie'),
                    exe: function () {
                        return 'Your browser is MSIE.'
                    }
                }, {
                    exe: function () {
                        return 'Your browser is not MSIE.'
                    }
                });

window.alert(message);

Demonstration

jQuery.depend DEMO

API Documentation

API Documentation - jQuery.depend/wiki