2.0.6 • Published 6 years ago

ie-blocker v2.0.6

Weekly downloads
18
License
MIT
Repository
github
Last release
6 years ago

IE-Blocker

A lightweight modal component, which 'politely' suggests your users to stop using outdated IE browsers.

Screenshot

Demos

Please use IE 6-9 to visit the following links:

Live Preview - English Version

实时预览 - 中文版

You will see a modal dialog which asks you to update your browser. This is exactly what IE-Blocker does.

Installation

Install through npm or Bower

// With npm
npm install ie-blocker --save

// With Bower
bower install ie-blocker --save

Usage

Include ie-blocker.css and ie-blocker.en.js in the <head> tag. And wrap them into conditional comments for IE:

<!--[if lte IE 8]>
<link rel="stylesheet" href="ie-blocker/ie-blocker.css">
<script src="ie-blocker/ie-blocker.en.js"></script>
<![endif]-->

Options

  • img-path:

    IE-Blocker uses images to display browsers icons. These images are placed under the img folder within the same directory of ie-blocker.en.js. But you can change it if you want:

     <!--[if lte IE 8]>
     <link rel="stylesheet" href="ie-blocker/ie-blocker.css">
     <script src="ie-blocker/ie-blocker.en.js" img-path="../images/browser_icons/"></script>
     <![endif]-->

    The path in option img-path is relative to ie-blocker.en.js. And please don't forget the '/' in the end of the path.

License

MIT

2.0.6

6 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago