6 / browser-deprecator

jQuery plugin that helps you deprecate old browsers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Give browser-deprecator a hash of browsers to check for (with minimum version numbers) and a callback for when the visitor's browser does not meet the criteria.

Screenshot:

Example usage (this will require MSIE >= version 7, Firefox >= version 3.6.6, and will deprecate any version of Opera):

$(function() {
  $.deprecate({
    msie: '7',
    mozilla: '3.6.6',
    opera: false
  });
});

Custom callback example:

function on_deprecated() {
  alert("Your browser is not supported!");
}

$(function() {
  $.deprecate({
    msie: '7',
    mozilla: '3.6.6',
    opera: false
  }, on_deprecated);
});

Download: zip or tar.gz

About

jQuery plugin that helps you deprecate old browsers

License:MIT License


Languages

Language:JavaScript 60.1%Language:CoffeeScript 39.9%