about summary refs log tree commit diff stats
path: root/static/talks/fp-js/ui/default/iepngfix.htc
diff options
context:
space:
mode:
authorAlan Pearce2020-04-05 12:23:07 +0200
committerAlan Pearce2020-04-05 12:23:07 +0200
commit1ecfd131cfa4f1cd67ec3a7d396992f0b5e54582 (patch)
treeb9f1b70e54002597af22efc5a44e3a1df71e94b9 /static/talks/fp-js/ui/default/iepngfix.htc
parentb9b3c6e0a8a272f8bab072ca6d51677cae5cfb25 (diff)
downloadwebsite-1ecfd131cfa4f1cd67ec3a7d396992f0b5e54582.tar.lz
website-1ecfd131cfa4f1cd67ec3a7d396992f0b5e54582.tar.zst
website-1ecfd131cfa4f1cd67ec3a7d396992f0b5e54582.zip
Remove presentation slides
Diffstat (limited to 'static/talks/fp-js/ui/default/iepngfix.htc')
-rw-r--r--static/talks/fp-js/ui/default/iepngfix.htc42
1 files changed, 0 insertions, 42 deletions
diff --git a/static/talks/fp-js/ui/default/iepngfix.htc b/static/talks/fp-js/ui/default/iepngfix.htc
deleted file mode 100644
index bba2db7..0000000
--- a/static/talks/fp-js/ui/default/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/default/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