mleung / ie_no_more
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
0909196
commit 0909196d458a21b1b141b90d3b5e985ed9ce885f
tree 6dedfe8e25c3fcf346d6a9f4d401cde591093261
parent a345313a2d6686742f4c6f8abcb3d81a79abaabb
tree 6dedfe8e25c3fcf346d6a9f4d401cde591093261
parent a345313a2d6686742f4c6f8abcb3d81a79abaabb
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri May 29 12:02:08 -0700 2009 | |
| |
README | ||
| |
Rakefile | Fri May 29 12:02:08 -0700 2009 | |
| |
app/ | ||
| |
config/ | Sat May 30 19:02:13 -0700 2009 | |
| |
init.rb | ||
| |
install.rb | Sat May 30 21:36:18 -0700 2009 | |
| |
lib/ | Sat May 30 19:42:15 -0700 2009 | |
| |
tasks/ | Fri May 29 12:02:08 -0700 2009 | |
| |
test/ | Fri May 29 12:02:08 -0700 2009 | |
| |
uninstall.rb | Fri May 29 12:02:08 -0700 2009 |
README
ie_no_more
========
We hate IE6. I'm sure you do as well. This plugin was born of that hate. So ie_no_more is really
our attempt at making the world a better place.
We're altruistic philanthropic idealists, if you will.
Example
=======
Throw this in your application layout, and do your part making IE6 go the way of velcro.
<%= smack_down_ie6 %>
You can also conditionally hide or show parts of your app if it is IE:
<% hide_if_ie6 do %>
# Non specific ie code
<% end %>
<% show_if_ie6 do %>
# Specific ie code
<% end %>
JavaScript
=========
Since the close button uses ajax, you'll have to throw this in the head of your layout:
<%= javascript_include_tag "ie_no_more.js" %>
The file is automatically copied to your public/javascripts directory when this plugin is installed.
This works with both jquery and prototype.
Message
========
If you'd like to customize the output message, just go into app/views/ie_no_more
and go to town on the _ie_upgrade_message partial.
Styles
=======
You can customize the display of the output message using CSS. Just throw the
styles in your style sheet. Here are some examples:
#ie-no-more-container {
background: #FFFFCC;
border: 1px solid #FF9933;
width: 90%;
margin-left: 2%;
margin-right: 2%;
padding: 20px;
}
#ie-no-more-close-button {
float: right;
}
Copyright (c) 2009 Michael Leung, released under the MIT license

