Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Imran Hussain
sucs-site
Commits
8551bd06
Commit
8551bd06
authored
9 years ago
by
Imran Hussain
Browse files
Options
Downloads
Patches
Plain Diff
Kill IE7 support
parent
8258b55d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/js/pngfix.js
+0
-39
0 additions, 39 deletions
htdocs/js/pngfix.js
templates/head.tpl
+0
-6
0 additions, 6 deletions
templates/head.tpl
with
0 additions
and
45 deletions
htdocs/js/pngfix.js
deleted
100644 → 0
+
0
−
39
View file @
8258b55d
/*
Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.
Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
*/
var
arVersion
=
navigator
.
appVersion
.
split
(
"
MSIE
"
)
var
version
=
parseFloat
(
arVersion
[
1
])
if
((
version
>=
5.5
)
&&
(
document
.
body
.
filters
))
{
for
(
var
i
=
0
;
i
<
document
.
images
.
length
;
i
++
)
{
var
img
=
document
.
images
[
i
]
var
imgName
=
img
.
src
.
toUpperCase
()
if
(
imgName
.
substring
(
imgName
.
length
-
3
,
imgName
.
length
)
==
"
PNG
"
)
{
var
imgID
=
(
img
.
id
)
?
"
id='
"
+
img
.
id
+
"
'
"
:
""
var
imgClass
=
(
img
.
className
)
?
"
class='
"
+
img
.
className
+
"
'
"
:
""
var
imgTitle
=
(
img
.
title
)
?
"
title='
"
+
img
.
title
+
"
'
"
:
"
title='
"
+
img
.
alt
+
"
'
"
var
imgStyle
=
"
display:inline-block;
"
+
img
.
style
.
cssText
if
(
img
.
align
==
"
left
"
)
imgStyle
=
"
float:left;
"
+
imgStyle
if
(
img
.
align
==
"
right
"
)
imgStyle
=
"
float:right;
"
+
imgStyle
if
(
img
.
parentElement
.
href
)
imgStyle
=
"
cursor:hand;
"
+
imgStyle
var
strNewHTML
=
"
<span
"
+
imgID
+
imgClass
+
imgTitle
+
"
style=
\"
"
+
"
width:
"
+
img
.
width
+
"
px; height:
"
+
img
.
height
+
"
px;
"
+
imgStyle
+
"
;
"
+
"
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
"
+
"
(src=
\
'
"
+
img
.
src
+
"
\
', sizingMethod='scale');
\"
></span>
"
img
.
outerHTML
=
strNewHTML
i
=
i
-
1
}
}
}
This diff is collapsed.
Click to expand it.
templates/head.tpl
+
0
−
6
View file @
8551bd06
...
...
@@ -50,12 +50,6 @@
<link rel="stylesheet" type="text/css" href="
{
$baseurl
}
/css/ielt8.css" media="screen"/>
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="
{
$baseurl
}
/css/ielt7.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="
{
$baseurl
}
/css/boxie.css" media="screen"/>
<script defer type="text/javascript" language="JavaScript" src="
{
$baseurl
}
/js/pngfix.js"></script>
<![endif]-->
</head>
<body>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment