outeredge/outdated-browser

There is no license information available for the latest version (1.0.4) of this package.

Outdated Browser Notice by outer/edge

Installs: 1 060

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

1.0.4 2016-12-13 15:17 UTC

This package is auto-updated.

Last update: 2024-10-14 20:10:54 UTC


README

<script src="outdated-browser.js"></script>

Automatically initializes on script load

Options

Options can be passed into the script tag as data-attributes

  • data-browsers - comma separated browser names (versions optional)
  • data-classname - string for wrapping div
  • data-html - html for the notice
  • data-parent - parent selector

Browsers

  • Chrome
  • Firefox
  • Safari
  • IE
  • Edge
  • Opera
  • Blink

Examples

<script src="outdated-browser.js" data-browsers="IE6,IE7,IE8"></script>
<script src="outdated-browser.js" data-browsers="Chrome48"></script>
<script src="outdated-browser.js" data-classname="my-custom-class"></script>
<script src="outdated-browser.js" data-html="Oops, you should upgrade your browser"></script>
<script src="outdated-browser.js" data-parent=".element.selector"></script>
<script src="outdated-browser.js" data-parent="#elementid"></script>