An open API service indexing awesome lists of open source software.

https://github.com/panteng/ie-blocker

A lightweight modal for asking website visitors to stop using outdated IE browsers.
https://github.com/panteng/ie-blocker

cross-browser ie6 ie7 ie8 ie9

Last synced: 24 days ago
JSON representation

A lightweight modal for asking website visitors to stop using outdated IE browsers.

Awesome Lists containing this project

README

        

# IE-Blocker

A lightweight modal for asking website visitors to stop using outdated IE browsers.

![Screenshot](https://raw.githubusercontent.com/panteng/ie-blocker/master/screenshot.png)

## Demos

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

[Live Preview - English Version](https://panteng.github.io/ie-blocker/demos/demo.en.html)

[实时预览 - 中文版](https://panteng.github.io/ie-blocker/demos/demo.zhCN.html)

You will see a modal dialog which asks you to switch to a modern browser.

## 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 `` tag. And wrap them into conditional comments for IE:

## Options

- img-path:

By default, browser icon images are placed under the **img** folder within the same directory of **ie-blocker.en.js**.
You can change the path by adding the `img-path` attribute:

The value of option `img-path` is a relative path to the **ie-blocker.en.js** file. Don't forget the '/' at the end.

## License

MIT