summaryrefslogtreecommitdiffstats
path: root/ui/small-black/iepngfix.htc
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2018-06-01 21:18:57 +0200
committerMatěj Cepl <mcepl@cepl.eu>2018-06-01 21:18:57 +0200
commitf9f49d3b3996f96e7d04abc78467aa82fe4ead26 (patch)
tree95e2199cd4dfc6d85b7b7c674af99bb794a63512 /ui/small-black/iepngfix.htc
parent2e2587717e60d658cc32fd2b108474711b7aa1d2 (diff)
downloadPyCon18-m2crypto-f9f49d3b3996f96e7d04abc78467aa82fe4ead26.tar.gz
Final version of reStructuredText.
Diffstat (limited to 'ui/small-black/iepngfix.htc')
-rw-r--r--ui/small-black/iepngfix.htc42
1 files changed, 0 insertions, 42 deletions
diff --git a/ui/small-black/iepngfix.htc b/ui/small-black/iepngfix.htc
deleted file mode 100644
index fa9f996..0000000
--- a/ui/small-black/iepngfix.htc
+++ /dev/null
@@ -1,42 +0,0 @@
-<public:component>
-<public:attach event="onpropertychange" onevent="doFix()" />
-
-<script>
-
-// IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull http://www.twinhelix.com
-// Free usage permitted as long as this notice remains intact.
-
-// This must be a path to a blank image. That's all the configuration you need here.
-var blankImg = 'ui/small-black/blank.gif';
-
-var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
-
-function filt(s, m) {
- if (filters[f]) {
- filters[f].enabled = s ? true : false;
- if (s) with (filters[f]) { src = s; sizingMethod = m }
- } else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
-}
-
-function doFix() {
- if ((parseFloat(navigator.userAgent.match(/MSIE (\S+)/)[1]) < 5.5) ||
- (event && !/(background|src)/.test(event.propertyName))) return;
-
- if (tagName == 'IMG') {
- if ((/\.png$/i).test(src)) {
- filt(src, 'image'); // was 'scale'
- src = blankImg;
- } else if (src.indexOf(blankImg) < 0) filt();
- } else if (style.backgroundImage) {
- if (style.backgroundImage.match(/^url[("']+(.*\.png)[)"']+$/i)) {
- var s = RegExp.$1;
- style.backgroundImage = '';
- filt(s, 'crop');
- } else filt();
- }
-}
-
-doFix();
-
-</script>
-</public:component> \ No newline at end of file