From a0acba960b7f200beacb7dba0a6171d3d0c67222 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sun, 26 Oct 2025 16:27:51 -0300 Subject: [PATCH] Remove IE6 PNG workaround as it is not required by the 8-bit PNG logo --- assets/js/script.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index bb92fc3..44a22f9 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -62,32 +62,6 @@ if (navigator.userAgent.indexOf('MSIE') > -1) { document.createElement('footer'); } -/* Make the logo transparent on IE6. Doing this on more - images interferes with the auto-sizing CSS expression. */ -function fixPngs() { - /* Check if the icon and logo are loaded, and try - again after a while if they're not present yet. */ - if (!document.images || (document.images.length < 2)) - setTimeout(fixPngs, 500); - - /* Fix icon and logo. */ - for (var i = 0; i < Math.min(2, document.images.length); i++) { - var img = document.images[i]; - var oldpad = img.style.paddingRight; /* padding counts as space for AlphaImageLoader so swap it for margin */ - img.style.paddingRight = 0; - var oldsrc = img.src; - var oldw = img.clientWidth; - var oldh = img.clientHeight; - img.src = '/assets/images/blank.gif'; - img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + oldsrc + "', sizingMethod='scale')"; - img.style.width = oldw + 'px'; - img.style.height = oldh + 'px'; - img.style.marginRight = oldpad; - } -} -if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent)) - fixPngs(); - /* Merge horizontally-neighboring table cells with identical contents. */ addEvent(window, 'load', function() { var tr = document.getElementsByTagName('tr');