ANIPLEX / ie-blocker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Download from GitHub

Download from GitHub Release page: Release

Install through npm or Bower

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

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

Usage

Include ie-blocker.cssie-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

About

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


Languages

Language:JavaScript 74.4%Language:CSS 25.6%