Skip to content

Commit a0acba9

Browse files
committed
Remove IE6 PNG workaround as it is not required by the 8-bit PNG logo
1 parent 4d75ab1 commit a0acba9

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

assets/js/script.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -62,32 +62,6 @@ if (navigator.userAgent.indexOf('MSIE') > -1) {
6262
document.createElement('footer');
6363
}
6464

65-
/* Make the logo transparent on IE6. Doing this on more
66-
images interferes with the auto-sizing CSS expression. */
67-
function fixPngs() {
68-
/* Check if the icon and logo are loaded, and try
69-
again after a while if they're not present yet. */
70-
if (!document.images || (document.images.length < 2))
71-
setTimeout(fixPngs, 500);
72-
73-
/* Fix icon and logo. */
74-
for (var i = 0; i < Math.min(2, document.images.length); i++) {
75-
var img = document.images[i];
76-
var oldpad = img.style.paddingRight; /* padding counts as space for AlphaImageLoader so swap it for margin */
77-
img.style.paddingRight = 0;
78-
var oldsrc = img.src;
79-
var oldw = img.clientWidth;
80-
var oldh = img.clientHeight;
81-
img.src = '/assets/images/blank.gif';
82-
img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + oldsrc + "', sizingMethod='scale')";
83-
img.style.width = oldw + 'px';
84-
img.style.height = oldh + 'px';
85-
img.style.marginRight = oldpad;
86-
}
87-
}
88-
if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent))
89-
fixPngs();
90-
9165
/* Merge horizontally-neighboring table cells with identical contents. */
9266
addEvent(window, 'load', function() {
9367
var tr = document.getElementsByTagName('tr');

0 commit comments

Comments
 (0)