From 2aff6746f30c132cb2a704bb0f6792b18b2f75dd Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Thu, 1 Jun 2006 15:38:27 +0000 Subject: [PATCH] plus rien a faire la (oubli de [6492]) --- .gitattributes | 1 - dist/win_png.html | 50 ----------------------------------------------- 2 files changed, 51 deletions(-) delete mode 100755 dist/win_png.html diff --git a/.gitattributes b/.gitattributes index c9ec086e59..53e772dd29 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,7 +11,6 @@ dist/inc-rubriques.html -text dist/puce.gif -text dist/puce_rtl.gif -text dist/style_prive.html -text -dist/win_png.html -text dist/win_width.htc -text ecrire/action/autoriser.php -text ecrire/action/ical.php -text diff --git a/dist/win_png.html b/dist/win_png.html deleted file mode 100755 index 5a1c2c8295..0000000000 --- a/dist/win_png.html +++ /dev/null @@ -1,50 +0,0 @@ -#CACHE{3600*24} -#HTTP_HEADER{Content-Type:text/x-component; charset=iso-8859-15} -#HTTP_HEADER{Vary: Accept-Encoding} -<public:component> -<public:attach event="onpropertychange" onevent="propertyChanged()" /> -<script> - -var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32"; -var realSrc; -var blankSrc = "[(#CHEMIN{rien.gif}|url_absolue)]"; - -if (supported) fixImage(); - -function propertyChanged() { - if (!supported) return; - - var pName = event.propertyName; - if (pName != "src") return; - // if not set to blank - if ( ! new RegExp(blankSrc).test(src)) - fixImage(); -}; - -function fixImage() { - // get src - var src = element.src; - - // check for real change - if (src == realSrc) { - element.src = blankSrc; - return; - } - - if ( ! new RegExp(blankSrc).test(src)) { - // backup old src - realSrc = src; - } - - // test for png - if ( /\.png$/.test( realSrc.toLowerCase() ) ) { - // set blank image - element.src = blankSrc; - // set filter - element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + - src + "',sizingMethod='image')"; - } -} - -</script> -</public:component> \ No newline at end of file -- GitLab