* remove vendor-specific styles and replace with generics where necessary
 * remove browser hacks as far as possible (Presto/Trident)
 * remove FontAwesome reference
 * minor cleanup
This commit is contained in:
Sarjuuk
2025-06-26 18:59:03 +02:00
parent 8403f9ffd9
commit a7cf96307c
13 changed files with 67 additions and 497 deletions

View File

@@ -1,8 +1,6 @@
.book {
width:28em;
border:2px solid #404040;
-webkit-border-radius:2px;
-moz-border-radius:2px;
border-radius:2px;
}

View File

@@ -47,10 +47,7 @@
.profiler-home input[type="text"].oops {
color: #ff0000;
-moz-box-shadow: 0 0 10px #ff0000;
-webkit-box-shadow: 0 0 10px #ff0000;
-o-box-shadow: 0 0 10px #ff0000;
box-shadow: 0 0 10px #ff0000;
}
.profiler-home input[type="radio"] {
@@ -65,10 +62,7 @@
padding: 0 2px 2px 2px;
position: absolute;
font-size: 12px;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
-webkit-box-shadow: 0 1px 3px #111;
-o-box-shadow: 0 1px 3px #111;
box-shadow: 0 1px 3px #111;
}
.profiler-autocomplete span {
@@ -224,9 +218,6 @@ a.profiler-header-editlink {
border: 1px solid #101010;
background: url(../images/icons/ajax.gif) no-repeat 8px #141414;
position: relative;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -326,25 +317,17 @@ a.profiler-header-editlink {
.profiler-infobox-gear .progressbar {
width: 20px;
margin: 0 auto 1px;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.profiler-infobox-gear .progressbar div {
height: 100%;
border-top-width: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.profiler-infobox-gear .progressbar-first,
.profiler-infobox-gear .progressbar-first div {
-webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
@@ -355,8 +338,6 @@ a.profiler-header-editlink {
.profiler-infobox-gear .progressbar-last,
.profiler-infobox-gear .progressbar-last div {
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
}
@@ -409,9 +390,6 @@ a.profiler-header-editlink {
height: 408px;
position: relative;
margin-bottom: 10px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -474,9 +452,6 @@ a.profiler-header-editlink {
background-color: #141414;
border: 1px solid #101010;
padding: 0 10px 10px 10px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -538,9 +513,6 @@ a.profiler-header-editlink {
border-top: 1px solid #3aca01;
border-bottom: 1px solid #2b9401;
background-color: #207001;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -548,9 +520,6 @@ a.profiler-header-editlink {
border-top: 1px solid #3472bf;
border-bottom: 1px solid #235a9d;
background-color: #174a89;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -558,9 +527,6 @@ a.profiler-header-editlink {
border-top: 1px solid #e60f00;
border-bottom: 1px solid #b10c00;
background-color: #930900;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -568,9 +534,6 @@ a.profiler-header-editlink {
border-top: 1px solid #e6e200;
border-bottom: 1px solid #b1ae00;
background-color: #939000;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -578,9 +541,6 @@ a.profiler-header-editlink {
border-top: 1px solid #30cfeb;
border-bottom: 1px solid #30aac0;
background-color: #3095a7;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -602,9 +562,6 @@ a.profiler-pets-button {
border: 1px solid #202020;
text-decoration: none;
color: white;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -706,9 +663,6 @@ h2 .disclosure-on,h2 .disclosure-off {
background-color: #141414;
border: 1px solid #101010;
margin-bottom: 10px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}

View File

@@ -70,16 +70,12 @@ img.content-image.content-image-shadowed {
}
a:hover img.content-image {
-webkit-filter:brightness(1.35);
filter:brightness(1.35);
}
img.border {
border: 2px solid #404040;
background-color: #080808;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
@@ -137,8 +133,6 @@ h5 a.icontiny span { text-decoration:none !important; }
padding: 15px;
margin:15px 0;
font-style: normal;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
display:table;
border-collapse:separate;
@@ -249,8 +243,6 @@ div.audiomarkup
.quote-body
{
padding:10px 15px 0 15px;
-moz-border-radius:0 0 10px 0;
-webkit-border-radius:0 0 10px 0;
border-radius:0 0 10px 0;
}
@@ -310,8 +302,6 @@ div.audiomarkup
/* background:#1e1e1e url(../images/blog/whpost-bg.png) left top no-repeat; */
position:relative;
color:#ccc;
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius:10px;
border:solid 2px #bbb;
margin:15px;
@@ -382,7 +372,7 @@ div.secheader
margin:15px 0;
padding:5px 0 6px 8px;
clear:both;
-moz-box-shadow:0 1px 13px #000,0 0 3px #000 inset;
box-shadow:0 1px 13px #000,0 0 3px #000 inset;
font-size:22px;
}
@@ -509,9 +499,6 @@ a.premium-user-badge {
text-align: center;
background: #141414;
border: 1px solid #101010;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -527,9 +514,6 @@ div.announcement-pagetop div.announcement-inner {
div.announcement-pagetop div.announcement-inner, div.announcement-contenttop div.announcement-inner {
background-color: #141414;
border: 1px solid #101010;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -566,10 +550,6 @@ div.announcement li {
/* jQuery replacement */
.announcement {
-webkit-transition: .5s ease;
-moz-transition: .5s ease;
-o-transition: .5s ease;
-ms-transition: .5s ease;
transition: .5s ease;
}
@@ -581,9 +561,6 @@ div.announcement li {
color: #dddddd;
line-height: 1.5em !important;
padding: 0 10px 10px 0;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -928,9 +905,6 @@ a.dialog-right {
border: 1px solid #363636;
background-color: #1A2924;
width: 300px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -939,9 +913,6 @@ a.dialog-right {
background-color: #141414;
float: left;
border: 1px solid #363636;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
#statweight-help { position: relative }
@@ -1535,9 +1506,6 @@ span.icon-instance8 {
.icontab-box td {
background-color: #141414;
padding: 0 6px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -1835,20 +1803,10 @@ span.icon-instance8 {
display:-ms-flexbox;
display:-webkit-flex;
display:flex;
-webkit-flex-direction:row;
-ms-flex-direction:row;
flex-direction:row;
-webkit-flex-wrap:wrap;
-ms-flex-wrap:wrap;
flex-wrap:wrap;
-webkit-justify-content:flex-start;
-ms-flex-pack:start;
justify-content:flex-start;
-webkit-align-content:flex-start;
-ms-flex-line-pack:start;
align-content:flex-start;
-webkit-align-items:stretch;
-ms-flex-align:stretch;
align-items:stretch;
}
@@ -1993,30 +1951,6 @@ td.checked .listview-cb:hover {
padding-right:10px !important;
}
.listview-sort-options .sortasc:after, .listview-sort-options .sortdesc:after {
display:inline-block;
font:normal normal normal 14px/1 FontAwesome;
font-size:inherit;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
}
.listview-sort-options .sortasc:after, .listview-sort-options .sortdesc:after {
color:#9d9d9d;
margin-left:5px;
}
.listview-sort-options .sortasc:after {
content:"\f0d8";
position:relative;
top:-2px;
}
.listview-sort-options .sortdesc:after {
content:"\f0d7";
}
.icon-cell {
padding:10px 0;
position:relative;
@@ -2142,9 +2076,6 @@ td.checked .listview-cb:hover {
white-space: nowrap;
color: #FFD100;
font-size: 12px;
-webkit-box-shadow: 1px 1px 5px black;
-moz-box-shadow: 1px 1px 5px black;
box-shadow: 1px 1px 5px black;
}
@@ -2331,9 +2262,6 @@ div.live-search-icon-quest-horde {
font-size: 11px;
margin: -4px 0 0 15px;
white-space: nowrap;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
@@ -2419,9 +2347,6 @@ z-index: 100000002;
.menu .menu-outer {
float: left;
border: 1px solid #181818;
-webkit-box-shadow: 1px 1px 5px black;
-moz-box-shadow: 1px 1px 5px black;
box-shadow: 1px 1px 5px black;
}
@@ -2778,9 +2703,6 @@ a.modelviewer-close {
border: 1px solid #484848;
height: 30px;
overflow: hidden;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
@@ -2812,9 +2734,6 @@ a.modelviewer-close {
padding-left: 3px;
margin: 0;
width: 250px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -2853,9 +2772,6 @@ a.modelviewer-close {
background-color: #242424;
padding: 10px;
min-height: 550px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
@@ -2915,9 +2831,6 @@ td.screenshot-cell img {
border: 2px solid #404040;
background-color: #080808;
margin-bottom: 3px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
@@ -3363,8 +3276,6 @@ td.screenshot-cell:hover img {
word-break: break-all;
word-wrap: break-word;
white-space:pre-wrap;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -3399,9 +3310,6 @@ td.screenshot-cell:hover img {
border: 1px solid #080808;
border-collapse: separate;
line-height: normal;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -3425,9 +3333,6 @@ td.screenshot-cell:hover img {
padding: 8px;
font-size: 11px;
text-align: center;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
@@ -3718,9 +3623,6 @@ a.button-bigblue b {
padding: 6px 10px;
margin: 0 5px 10px 0;
white-space: nowrap;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
@@ -3777,9 +3679,6 @@ a.button-bigblue b {
margin: 0 0 10px 10px;
background-color: #141414;
border: 1px solid #404040;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
padding-bottom: 12px;
}
@@ -3941,9 +3840,6 @@ a.button-bigblue b {
text-decoration: none !important;
position: relative;
margin: 2px 1px 4px 1px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -3989,9 +3885,6 @@ a.progressbar:hover del {
border-top: 1px solid #b82e21;
border-bottom: 1px solid #9c2319;
background-color: #861c10;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -3999,9 +3892,6 @@ a.progressbar:hover del {
border-top: 1px solid #c9662b;
border-bottom: 1px solid #b05421;
background-color: #994515;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4009,9 +3899,6 @@ a.progressbar:hover del {
border-top: 1px solid #d59b31;
border-bottom: 1px solid #bf8626;
background-color: #aa7419;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4019,9 +3906,6 @@ a.progressbar:hover del {
border-top: 1px solid #d2b130;
border-bottom: 1px solid #bb9b25;
background-color: #a68818;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4029,9 +3913,6 @@ a.progressbar:hover del {
border-top: 1px solid #a4a201;
border-bottom: 1px solid #8d8b01;
background-color: #777601;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4039,9 +3920,6 @@ a.progressbar:hover del {
border-top: 1px solid #74a001;
border-bottom: 1px solid #638701;
background-color: #527001;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4049,9 +3927,6 @@ a.progressbar:hover del {
border-top: 1px solid #30a601;
border-bottom: 1px solid #288b01;
background-color: #217201;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4059,9 +3934,6 @@ a.progressbar:hover del {
border-top: 1px solid #0aa087;
border-bottom: 1px solid #068870;
background-color: #007564;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4069,9 +3941,6 @@ a.progressbar:hover del {
border-top: 1px solid #2b98c9;
border-bottom: 1px solid #2082af;
background-color: #157099;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4079,9 +3948,6 @@ a.progressbar:hover del {
border-top: 1px solid #7a7a7a;
border-bottom: 1px solid #686868;
background-color: #575757;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4089,9 +3955,6 @@ a.progressbar:hover del {
border-top: 1px solid #3aca01;
border-bottom: 1px solid #2b9401;
background-color: #207001;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4099,9 +3962,6 @@ a.progressbar:hover del {
border-top: 1px solid #e6e200;
border-bottom: 1px solid #b1ae00;
background-color: #939000;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
@@ -4109,9 +3969,6 @@ a.progressbar:hover del {
border-top: 1px solid #e60f00;
border-bottom: 1px solid #b10c00;
background-color: #930900;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

View File

@@ -179,8 +179,6 @@ a span.moneyitem, a span.moneysocketmeta, a span.moneysocketred, a span.moneysoc
font-size: 11px;
text-align: center;
padding: 6px 8px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
background: rgba(0, 0, 0, 0.8);
text-align: left;
@@ -192,8 +190,6 @@ a span.moneyitem, a span.moneysocketmeta, a span.moneysocketred, a span.moneysoc
z-index: 1000;
cursor: pointer;
border: 2px solid #666;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 15px;
background:url(../images/ui/blk.png) repeat;

View File

@@ -91,41 +91,29 @@
.vote-column .upvote {
margin-top: 10px !important;
filter:alpha(opacity=60);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
opacity:.6;
}
.vote-column .upvote:hover {
filter:alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity:1;
}
.vote-column .upvote[data-hasvoted=true] {
background-position: 0 -16px;
filter:alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity:1;
}
.vote-column .downvote {
background-position: 0 -48px;
filter:alpha(opacity=60);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
opacity:.6;
}
.vote-column .downvote:hover {
filter:alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity:1;
}
.vote-column .downvote[data-hasvoted=true] {
background-position: 0 -32px;
filter:alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity:1;
}
@@ -192,8 +180,6 @@
background: #444;
border: 1px solid #555;
padding: 4px 8px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
text-transform: capitalize;
}
@@ -426,13 +412,6 @@
.stars b.half {background-position:0 -16px !important}
.stars.rated b.half {background-position:0 -48px !important}
.ie6 .stars {_margin-bottom:-2px;zoom:100%}
.ie6 .stars * {zoom:100%}
.ie7 .stars {_margin-bottom:-2px;zoom:100%}
.ie7 .stars * {zoom:100%}
.ie8 .stars {_margin-bottom:-2px;zoom:100%}
.ie8 .stars * {zoom:100%}
.guide-sticky {
background: url(../images/icons/sticky.gif) left center no-repeat;
padding-left: 21px;
@@ -512,67 +491,6 @@
margin-left: 20px !important;
}
/*
Note: For IE6, only include things that break/distort the site in a major way, as we're not supposed to support IE6 anymore.
*/
/*******/
/* IE6 */
/*******/
html.ie6 .layout {
width: 1240px;
}
html.ie6 .toptabs dt {
width: 1px;
}
html.ie6 .menu .menu-outer,
html.ie6 .home-featuredbox-links a {
background: url(../images/deprecated/pixel.gif) no-repeat;
}
html.ie6 .menu a {
position: relative;
}
/*******/
/* IE7 */
/*******/
/* html.ie7 ... */
/*******/
/* IE8 */
/*******/
/* html.ie8 ... */
/*************/
/* IE6 + IE7 */
/*************/
/* html.ie67 ... */
/*******************/
/* IE6 + IE7 + IE8 */
/*******************/
/* html.ie678 ... */
html.ie678 .line var {
margin-left: 0;
}
.line {
position: absolute;
display: block;
@@ -588,20 +506,12 @@ html.ie678 .line var {
border: 1px solid #181818;
border-left: none;
border-right: none;
-o-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
-o-box-shadow: 0px 0px 3px black;
/*-moz-box-shadow: 0px 0px 3px black;*/
-webkit-box-shadow: 0px 0px 3px black;
transform-origin: 0 0;
box-shadow: 0px 0px 3px black;
}
.line.flipped {
-o-transform: scaleY(-1);
-moz-transform: scaleY(-1);
-webkit-transform: scaleY(-1);
-ms-filter: "FlipV";
filter: FlipV;
transform: scaleY(-1);
}
.mapper .line var { background: #C8B94C; }
@@ -615,8 +525,6 @@ html.ie678 .line var {
z-index: 1000;
cursor: pointer;
border:2px solid #666;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
padding:15px 15px 10px 15px;
background:url(../images/ui/blk.png) repeat;
@@ -893,4 +801,4 @@ div.screenshotviewer-caption {
}
.options-menu-widget.open {
color:#fff;
}
}

View File

@@ -45,8 +45,6 @@
outline:0;
border:1px solid #adadad;
background:white url(../images/ui/form/input-textbox-bg.gif) repeat-x;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
}
@@ -96,8 +94,6 @@
background-color:white!important;
opacity:.075!important;
filter:alpha(opacity=7.5)!important;
-webkit-border-radius:6px;
-moz-border-radius:6px;
border-radius:6px;
}

View File

@@ -893,12 +893,9 @@ function Profiler() {
_divMessage.style.display = '';
_divMessage.style.backgroundImage = 'none';
}
// can't have javascript:; hrefs all over the place with an onbeforeunload on IE
if (!$WH.Browser.ie) {
window.onbeforeunload = (saved ? null : function (e) {
return LANG.message_savebeforeexit;
});
}
window.onbeforeunload = (saved ? null : function (e) {
return LANG.message_savebeforeexit;
});
}
function _updateDefaultIcon() {
@@ -4067,7 +4064,7 @@ function ProfilerInventory(_parent) {
_gemColor,
_mvInited,
_shiftClick = ($WH.Browser.opera),
_shiftClick = false,
_cursorPos = { x: 0, y: 0 },
_container,
@@ -5522,7 +5519,7 @@ function ProfilerInventory(_parent) {
else {
Icon.setTexture(icon, 1, g_items[itemId].icon.toLowerCase());
a.onclick = ($WH.Browser.opera || $WH.OS.mac ? function (e) {
a.onclick = ($WH.OS.mac ? function (e) {
e = $WH.$E(e);
if (e.shiftKey || e.ctrlKey) {
return false;
@@ -5994,7 +5991,7 @@ function ProfilerInventory(_parent) {
var a = Icon.getLink(d.childNodes[i]);
a.oncontextmenu = $WH.rf;
a.onclick = ($WH.Browser.opera || $WH.OS.mac ? function (e) {
a.onclick = ($WH.OS.mac ? function (e) {
e = $WH.$E(e);
if (e.shiftKey || e.ctrlKey) {
return false;
@@ -6094,7 +6091,7 @@ function ProfilerInventory(_parent) {
buildData = _talents.getTalentBuilds();
a.oncontextmenu = $WH.rf;
a.onclick = ($WH.Browser.opera || $WH.OS.mac ? function (e) {
a.onclick = ($WH.OS.mac ? function (e) {
e = $WH.$E(e);
if (e.shiftKey || e.ctrlKey) {
return false ;
@@ -8584,7 +8581,7 @@ Listview.templates.inventory = {
a = Icon.getLink(icon);
a.oncontextmenu = $WH.rf;
a.onclick = ($WH.Browser.opera || $WH.OS.mac ? function (e) {
a.onclick = ($WH.OS.mac ? function (e) {
e = $WH.$E(e);
if (e.shiftKey || e.ctrlKey) {
return false;
@@ -8608,7 +8605,7 @@ Listview.templates.inventory = {
a = $WH.ce('a');
a.oncontextmenu = $WH.rf;
a.onclick = ($WH.Browser.opera || $WH.OS.mac ? function(e) {
a.onclick = ($WH.OS.mac ? function(e) {
e = $WH.$E(e);
if (e.shiftKey || e.ctrlKey) {
return false;

View File

@@ -1026,7 +1026,7 @@ Summary.prototype = {
if (this.autoSave) {
this.saveComparison(0);
}
else if (this.editable && !$WH.Browser.ie) {
else if (this.editable) {
window.onbeforeunload = function(e) { return LANG.message_savebeforeexit };
}
},
@@ -2217,10 +2217,6 @@ Summary.prototype = {
links = [$WH.ge('su_addscale')],
popup = null;
if ($WH.Browser.ie && e && !popupId && $WH.in_array(links, e._target) != -1) {
return;
}
if (link) {
link = $WH.ge(link);
}

View File

@@ -17,20 +17,7 @@ $WH.$E = function (e) {
e._button = e.which;
}
else {
e._button = e.button;
// IE8 doesnt have a button set, so add 1 to at least register as a left click
if ($WH.Browser.ie6789 && e._button) { // 5.0
// if ($WH.Browser.ie) { // 3.x
if (e._button & 4) {
e._button = 2; // Middle
}
else if (e._button & 2) {
e._button = 3; // Right
}
}
else {
e._button = e.button + 1;
}
e._button = e.button + 1;
}
e._target = e.target ? e.target : e.srcElement;
@@ -85,37 +72,8 @@ if (!String.prototype.removeAllWhitespace) {
String.prototype.removeAllWhitespace = function () { return this.replace("/s+/g", ""); }
}
// aowow - note: will be WH.stringCompare in newer versions
$WH.strcmp = function(a, b) {
if (a == b) {
return 0;
}
if (a == null) {
return -1;
}
if (b == null) {
return 1;
}
// Natural sorting for strings starting with a number
var
_a = parseFloat(a),
_b = parseFloat(b);
if (!isNaN(_a) && !isNaN(_b) && _a != _b) {
return _a < _b ? -1 : 1;
}
// String comparison done with a native JS function that supports accents and non-latin characters
if (typeof a == 'string' && typeof b == 'string') {
return a.localeCompare(b);
}
// Other
return a < b ? -1 : 1;
}
$WH.stringCompare = function (a, b) {
if (a == b)
return 0;
if (a == null)
@@ -123,16 +81,20 @@ $WH.stringCompare = function (a, b) {
if (b == null)
return 1;
var fa = parseFloat(a);
var fb = parseFloat(b);
if (!isNaN(fa) && !isNaN(fb) && fa != fb)
return fa < fb ? -1 : 1;
// Natural sorting for strings starting with a number
var
_a = parseFloat(a),
_b = parseFloat(b);
if (!isNaN(_a) && !isNaN(_b) && _a != _b)
return _a < _b ? -1 : 1;
// String comparison done with a native JS function that supports accents and non-latin characters
if (typeof a == 'string' && typeof b == 'string')
return a.localeCompare(b);
// Other
return a < b ? -1 : 1;
};
}
$WH.trim = function(str) {
return str.replace(/(^\s*|\s*$)/g, '');
@@ -505,12 +467,7 @@ $WH.sp = function(z) {
z = event;
}
if ($WH.Browser.ie6789) {
z.cancelBubble = true
}
else {
z.stopPropagation();
}
z.stopPropagation();
}
// Set cookie
@@ -579,10 +536,8 @@ $WH.gc = function(z) {
// Prevent element from being selected/dragged (IE only)
$WH.ns = function(a) {
if ($WH.Browser.ie6789) {
a.onfocus = $WH.tb;
a.onmousedown = a.onselectstart = a.ondragstart = $WH.rf;
}
// a.onfocus = $WH.tb;
// a.onmousedown = a.onselectstart = a.ondragstart = $WH.rf;
}
// Empty object
@@ -643,14 +598,6 @@ $WH.Browser = {
firefox: navigator.userAgent.indexOf('Firefox') != -1,
chrome: navigator.userAgent.indexOf('Chrome') != -1
};
$WH.Browser.ie9 = $WH.Browser.ie && navigator.userAgent.indexOf('MSIE 9.0') != -1;
$WH.Browser.ie8 = $WH.Browser.ie && navigator.userAgent.indexOf('MSIE 8.0') != -1 && !$WH.Browser.ie9;
$WH.Browser.ie7 = $WH.Browser.ie && navigator.userAgent.indexOf('MSIE 7.0') != -1 && !$WH.Browser.ie8;
$WH.Browser.ie6 = $WH.Browser.ie && navigator.userAgent.indexOf('MSIE 6.0') != -1 && !$WH.Browser.ie7;
$WH.Browser.ie67 = $WH.Browser.ie6 || $WH.Browser.ie7;
$WH.Browser.ie678 = $WH.Browser.ie67 || $WH.Browser.ie8;
$WH.Browser.ie6789 = $WH.Browser.ie678 || $WH.Browser.ie9;
navigator.userAgent.match(/Gecko\/([0-9]+)/);
$WH.Browser.geckoVersion = parseInt(RegExp.$1) | 0;

View File

@@ -207,12 +207,7 @@ function g_getTextContent(el) {
txt += el.childNodes[i].nodeValue;
}
else if (el.childNodes[i].nodeName == 'BR') {
if ($WH.Browser.ie67) {
txt += '\r';
}
else {
txt += '\n';
}
txt += '\n';
}
txt += g_getTextContent(el.childNodes[i]);
}
@@ -487,9 +482,6 @@ var PageTemplate = new function()
function addBrowserClasses()
{
// This is done before the <body> tag is loaded, so class names are added to the <html> tag instead
if($WH.Browser.ie6) $(document.documentElement).addClass('ie6 ie67 ie678');
if($WH.Browser.ie7) $(document.documentElement).addClass('ie7 ie67 ie678');
if($WH.Browser.ie8) $(document.documentElement).addClass('ie8 ie678');
}
function initFavorites()
@@ -1675,10 +1667,6 @@ function g_addPages(d, opt) {
pageIcon.href = 'javascript:;';
$WH.ns(pageIcon);
if ($WH.Browser.ie) {
$WH.ae(pageIcon, $WH.ct(' '));
}
pageIcon.onclick = function() {
var n = prompt($WH.sprintf(LANG.prompt_gotopage, 1, opt.nPages), opt.page);
if (n != null) {
@@ -1728,11 +1716,6 @@ function g_disclose(el, _this) {
*/
function g_setupChangeWarning(form, elements, warningMessage) {
/* Still skip IE since it triggers this when anchor links are clicked. */
if ($WH.Browser.ie) {
return;
}
if (!form) {
return;
}
@@ -2379,14 +2362,6 @@ var ScreenshotViewer = new function() {
Lightbox.setSize(lbWidth + 20, imgHeight + 52 + captionExtraHeight);
if ($WH.Browser.ie6) {
screen.style.width = lbWidth + 'px';
if (screenshots.length > 1) {
aPrev.style.height = aNext.style.height = imgHeight + 'px'
} else {
aCover.style.height = imgHeight + 'px'
}
}
if (captionExtraHeight) {
imgDiv.firstChild.width = imgWidth;
imgDiv.firstChild.height = imgHeight;
@@ -2424,9 +2399,6 @@ var ScreenshotViewer = new function() {
'<img src="' + url + '"'
+ ' width="' + imgWidth + '"'
+ ' height="' + imgHeight + '"';
if ($WH.Browser.ie6) {
html += ' galleryimg="no"';
}
html += '>';
imgDiv.innerHTML = html;
@@ -2674,17 +2646,7 @@ var ScreenshotViewer = new function() {
// $WH.ae(b, $WH.ct(LANG.close));
// $WH.ae(foo, b);
$WH.ae(aCover, foo);
if ($WH.Browser.ie6) {
$WH.ns(aPrev);
$WH.ns(aNext);
aPrev.onmouseover = aNext.onmouseover = aCover.onmouseover = function() {
this.firstChild.style.display = 'block';
};
aPrev.onmouseout = aNext.onmouseout = aCover.onmouseout = function() {
this.firstChild.style.display = '';
};
}
$WH.ae(screen, aPrev);
$WH.ae(screen, aNext);
$WH.ae(screen, aCover);
@@ -3640,21 +3602,13 @@ var
if (j > 0 && !field.noInputBr) {
$WH.ae(td, $WH.ce('br'));
}
if ($WH.Browser.ie6 && field.type == 'radio') {
l = $WH.ce("<label for='' + uniqueId + '' onselectstart='return false' />");
f = $WH.ce("<input type='' + field.type + '' name='' + field.id + '' />");
}
else {
l = $WH.ce('label');
l.setAttribute('for', uniqueId);
l.onmousedown = $WH.rf;
f = $WH.ce('input');
f.setAttribute('type', field.type);
f.name = field.id;
}
f.value = options[j];
f.id = uniqueId;
l = $WH.ce('label');
l.setAttribute('for', uniqueId);
l.onmousedown = $WH.rf;
f = $WH.ce('input', { name: field.id, value: options[j], id: uniqueId });
f.setAttribute('type', field.type);
if (field.disabled) {
f.disabled = true;
@@ -4495,7 +4449,7 @@ var Favorites = new function() {
g_favorites.push({ id: type, entities: [] });
g_favorites.sort(function(a, b) { return $WH.stringCompare(LANG.types[a.id], LANG.types[b.id]) });
g_favorites.sort(function(a, b) { return $WH.strcmp(LANG.types[a.id], LANG.types[b.id]) });
for (i = 0; j = g_favorites[i]; i++)
if (j.id == type)
@@ -6527,46 +6481,22 @@ Listview.prototype = {
// Numerical
var filterFuncs = {
1: function(x, y) {
return x > y;
},
2: function(x, y) {
return x == y;
},
3: function(x, y) {
return x < y;
},
4: function(x, y) {
return x >= y;
},
5: function(x, y) {
return x <= y;
},
6: function(x, y, z) {
return y <= x && x <= z;
}
1: function(x, y) { return x > y; },
2: function(x, y) { return x == y; },
3: function(x, y) { return x < y; },
4: function(x, y) { return x >= y; },
5: function(x, y) { return x <= y; },
6: function(x, y, z) { return y <= x && x <= z; }
};
// Range
var filterFuncs2 = {
1: function(min, max, y) {
return max > y;
},
2: function(min, max, y) {
return min <= y && y <= max;
},
3: function(min, max, y) {
return min < y;
},
4: function(min, max, y) {
return max >= y;
},
5: function(min, max, y) {
return min <= y;
},
6: function(min, max, y, z) {
return y <= max && min <= z;
}
1: function(min, max, y) { return max > y; },
2: function(min, max, y) { return min <= y && y <= max; },
3: function(min, max, y) { return min < y; },
4: function(min, max, y) { return max >= y; },
5: function(min, max, y) { return min <= y; },
6: function(min, max, y, z) { return y <= max && min <= z; }
};
var nRowsVisible = 0;
@@ -7538,7 +7468,7 @@ Listview.headerOver = function(a, col, e) {
buffer += '<br /><span class="q2">' + LANG.tooltip_lvheader1 + '</span>';
if (this.filtrable && (col.filtrable == null || col.filtrable)) {
buffer += '<br /><span class="q2">' + ($WH.Browser.opera ? LANG.tooltip_lvheader3 : LANG.tooltip_lvheader2) + '</span>';
buffer += '<br /><span class="q2">' + LANG.tooltip_lvheader2 + '</span>';
}
$WH.Tooltip.show(a, buffer, 0, 0, 'q');
@@ -12077,13 +12007,18 @@ Listview.templates = {
nItemsPerPage: 150,
cellMinWidth: 85,
poundable: 1,
sortOptions: [{
id: 'name',
name: LANG.name,
sortFunc: function(f, c) {
return $WH.stringCompare(f.name, c.name)
sortOptions: [
{
id: 'id',
name: "ID",
sortFunc: function(a, b) { return $WH.strcmp(a.id, b.id); }
},
{
id: 'name',
name: LANG.name,
sortFunc: function(a, b) { return $WH.strcmp(a.name, b.name); }
}
}],
],
columns: [],
value: 'name',
compute: function(_icon, td, tr) {
@@ -12212,7 +12147,7 @@ Listview.templates = {
$WH.ae(td, cell);
},
sortFunc: function(a, b) {
return $WH.stringCompare(a.name, b.name);
return $WH.strcmp(a.name, b.name);
},
getItemLink: function(icon) {
return "?icon=" + icon.id;
@@ -12248,7 +12183,7 @@ Listview.templates = {
return user.username;
},
sortFunc: function(a, b) {
return $WH.stringCompare(a.username, b.username);
return $WH.strcmp(a.username, b.username);
},
getItemLink: function(user) {
return '?user=' + user.username;
@@ -18278,8 +18213,7 @@ function GetStars(stars, ratable, userRating, guideId)
/* This is kinda lame but oh well */
var contents = '<span>';
// var wbr = $.browser.msie ? '' : '&#8203;'; // aowow - jQuery v1.9 deprecated
var wbr = $WH.Browser.ie ? '' : '&#8203;';
var wbr = '&#8203;';
var tmp = stars;
for(var i = 1; i <= STARS_MAX; ++i)
{
@@ -19225,9 +19159,7 @@ var Lightbox = new function() {
}
this.setSize = function(w, h, auto) {
if (!$WH.Browser.ie) {
inner.style.visibility = 'hidden';
}
inner.style.visibility = 'hidden';
if (!auto) {
inner.style.width = w + 'px';

View File

@@ -29,10 +29,6 @@ function pc_init() {
pc_classIcons[classId] = icon;
if ($WH.Browser.ie6) {
link.onfocus = tb;
}
link.onclick = pc_classClick.bind(link, classId);
link.onmouseover = pc_classOver.bind(link, classId);
link.onmouseout = $WH.Tooltip.hide;

View File

@@ -26,10 +26,6 @@ function tc_init() {
tc_classIcons[classId] = icon;
if ($WH.Browser.ie6) {
link.onfocus = tb;
}
link.onclick = tc_classClick.bind(link, classId);
link.onmouseover = tc_classOver.bind(link, classId);
link.onmouseout = $WH.Tooltip.hide;

View File

@@ -51,8 +51,6 @@ form.search input {
background:white url(../../images/ui/form/input-textbox-bg.gif) repeat-x;
outline:0;
height: 18px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
}
@@ -95,4 +93,3 @@ form.search a:hover {
color:#F6E6B3;
text-decoration:underline;
}