npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ie7js

v2.1.0

Published

A JavaScript library to make MSIE behave like a standards-compliant browser.

Downloads

18

Readme

Intro

  • This is a JavaScript library to make MSIE behave like a standards-compliant browser.
  • It fixes many CSS issues and makes transparent PNG work correctly under IE5 and IE6.
  • Check out this demo page for more details.

Getting started

  • Get the library via npm: npm install -S ie7js
  • There are 3 scripts: IE7.js, IE8.js and IE9.js. They are backward compatible, which means the functionality that IE7.js and IE8.js has are included in IE9.js .
  • Basically what you need to do is:
    <!--[if lt IE 9]>
    <script type="text/javascript" src="IE9.min.js"></script>
    <![endif]-->
  • IMPORTANT: These CSS hacks take NO effect on inline styles, but support both internal and external stylesheets.

Dependencies

  • There are no other dependencies except for one file blank.gif.
  • Check to see if your build workflow has required it correctly, or manually copy it with IE9.min.js to your asset folder under the same level directory.

PNG

  • The script only fixes images named: *-trans.png
  • If you want the fix to apply to all PNG images then set a global variable as follows:
    var IE7_PNG_SUFFIX = ".png";
  • You must set this variable before including the IE7.js script. Alternatively, you can set the variable inside the IE7.js script element:
    <script src="IE9.min.js">IE7_PNG_SUFFIX=".png";</script>
  • The suffix will ignore query string parameters. For more fine-grained control you can also set IE7_PNG_SUFFIX to a RegExp object. If you want to use an alternative PNG solution then set the suffix to something that cannot possibly match:
    var IE7_PNG_SUFFIX = ":";
  • By default, the PNG will be stretched (this simulates tiling). If you want to turn this off then set the no-repeat property as follows:
    div.example {
      background: url("my-trans.png") no-repeat;
    }
  • Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. Nor can it be positioned using background-position.

Credits and Links

GitHub license

  • This library is credited by Dean Edwards, the copy in this repo is of its last and latest version 2.1(beta4).
  • I put it here in GitHub for the convenience of management by NPM and integration in your own build workflow.
  • Original repo hosted on Google: https://code.google.com/archive/p/ie7-js/
  • Google groups: https://groups.google.com/forum/#!forum/ie7-js
  • Related posts:
    • http://dean.edwards.name/weblog/2008/01/ie7-2/
    • http://dean.edwards.name/weblog/2010/03/ie7js-update/