diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-18 16:55:10 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-18 16:56:18 -0700 |
commit | a45dd09fc0aa08fc81b7c62a9ac6aab78487dd8e (patch) | |
tree | 97997c5d651dc4d915684194f783396db1b3d80b /library/simplepie/demo/for_the_demo/sleight.js | |
parent | 472a824a1eaef00759ebbdc506384e8d521e408e (diff) | |
download | volse-hubzilla-a45dd09fc0aa08fc81b7c62a9ac6aab78487dd8e.tar.gz volse-hubzilla-a45dd09fc0aa08fc81b7c62a9ac6aab78487dd8e.tar.bz2 volse-hubzilla-a45dd09fc0aa08fc81b7c62a9ac6aab78487dd8e.zip |
issue #699
Diffstat (limited to 'library/simplepie/demo/for_the_demo/sleight.js')
-rw-r--r-- | library/simplepie/demo/for_the_demo/sleight.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/library/simplepie/demo/for_the_demo/sleight.js b/library/simplepie/demo/for_the_demo/sleight.js deleted file mode 100644 index 4b5058e9a..000000000 --- a/library/simplepie/demo/for_the_demo/sleight.js +++ /dev/null @@ -1,31 +0,0 @@ -/********************************************************** -Sleight -(c) 2001, Aaron Boodman -http://www.youngpup.net -**********************************************************/ - -if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) -{ - document.writeln('<style type="text/css">img { visibility:hidden; } </style>'); - window.attachEvent("onload", fnLoadPngs); -} - -function fnLoadPngs() -{ - var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, ''); - var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5); - - for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) - { - if (itsAllGood && img.src.match(/\.png$/i) != null) - { - var src = img.src; - var div = document.createElement("DIV"); - div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='scale')" - div.style.width = img.width + "px"; - div.style.height = img.height + "px"; - img.replaceNode(div); - } - img.style.visibility = "visible"; - } -} |