Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikamai/ie-compat
Error: "IE 9- compat toolbelt" (line: 2347, char: 998, script: index.html) ⚠️
https://github.com/mikamai/ie-compat
Last synced: 22 days ago
JSON representation
Error: "IE 9- compat toolbelt" (line: 2347, char: 998, script: index.html) ⚠️
- Host: GitHub
- URL: https://github.com/mikamai/ie-compat
- Owner: mikamai
- License: mit
- Created: 2014-04-17T10:26:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-10T14:01:00.000Z (over 10 years ago)
- Last Synced: 2024-11-20T03:05:01.282Z (about 2 months ago)
- Language: JavaScript
- Homepage: modern.ie#OMGLOL
- Size: 201 KB
- Stars: 1
- Watchers: 23
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# IE::Compat
Sick of reimplementing `console.log` every time you have to support Microsoft Internet Explorer < 10?
## Features
- `console` stubs
- JSON
- CSS3 selectors (via http://selectivizr.com)
- `Function.prototype.bind`
- `Array.prototype.forEach`![⚠️ Done](http://cl.ly/image/272i1m2U0H0j/javascript-error-icon.gif)
## Installation
Add this line to your application's Gemfile:
gem 'ie-compat'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ie-compat
### Opal, Rails, Sprockets, ActiveAdmin
Happy days, got you covered!
(at least if they're required *before* `IE::Compat`)
### Everything Else
The base path of all the provided assets is available here:
```ruby
IE::Compat.assets_path
```## Usage
### Rails
In your application layout add this line:
```erb
<%= ie_compat_tags =>
```That will be translated into something like this:
```html
```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/ie-compat/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request