Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
jQuery 1.9 compatibility issue fixed
Browse files Browse the repository at this point in the history
jQuery 1.9 compatibility issue fixed + optimized the images
  • Loading branch information
nmsdvid committed Mar 23, 2013
1 parent 5dfbf17 commit 6f2f4f6
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 12 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<body onload="prettyPrint()">
<div class="container">

<h3 class="center alt">IE Alert! plugin v2.0</h3>
<h3 class="center alt">IE Alert! plugin v2.1</h3>

<hr />
<h2 id="toc" class="alt">Table of Contents</h2>
Expand Down
Binary file modified theplugin/.DS_Store
Binary file not shown.
39 changes: 30 additions & 9 deletions theplugin/iealert.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/*
* IE Alert! jQuery plugin
* Version 2
* Version 2.1
* Author: David Nemes | @nmsdvid
* http://nmsdvid.com/iealert/
*/

(function ($) {
function initialize($obj, support, title, text, upgradeTitle, upgradeLink, overlayClose, closeBtn) {


var panel = "<div class='ie-l-t-c'></div>"
+ "<div class='ie-t'></div>"
+ "<div class='ie-r-t-c'></div>"
Expand Down Expand Up @@ -68,27 +70,27 @@
});
}

if ($.browser.msie && parseInt($.browser.version, 10) === 6) {
if (ie === 6) {
iepanel.addClass("ie6-style");
overlay.css("background", "#d6d6d6");
$obj.css("margin", "0");
}
}

if (support === "ie9") { // the modal box will appear on IE9, IE8, IE7, IE6
if ($.browser.msie && parseInt($.browser.version, 10) < 10) {
if (ie < 10) {
active();
}
} else if (support === "ie8") { // the modal box will appear on IE8, IE7, IE6
if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
if (ie < 9) {
active();
}
} else if (support === "ie7") { // the modal box will appear on IE7, IE6
if ($.browser.msie && parseInt($.browser.version, 10) < 8) {
if (ie < 8) {
active();
}
} else if (support === "ie6") { // the modal box will appear only on IE6
if ($.browser.msie && parseInt($.browser.version, 10) < 7) {
} else if (support === "ie6") { // the modal box will appear only on IE6 and below
if (ie < 7) {
active();
}
}
Expand All @@ -111,10 +113,29 @@
var option = $.extend(defaults, options);

return this.each(function () {
if ($.browser.msie) {

ie = (function(){

var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');

while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);

return v > 4 ? v : undef;

}());

// If browser is Internet Explorer
if (ie >= 5) {
var $this = $(this);
initialize($this, option.support, option.title, option.text, option.upgradeTitle, option.upgradeLink, option.overlayClose, option.closeBtn);
} // If browser is Internet Explorer
}

});

};
Expand Down
5 changes: 3 additions & 2 deletions theplugin/iealert.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified theplugin/iealert/6_bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_l_b_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_l_t_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_r_b_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_r_t_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_r_t_c_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/6_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/iesprites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/u-center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/u-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified theplugin/iealert/u-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6f2f4f6

Please sign in to comment.