add update notice for old users and hide it for all on the current version

This commit is contained in:
Stefan Breunig
2013-02-11 18:17:52 +01:00
parent 5b07537cca
commit 43245bf425
2 changed files with 15 additions and 0 deletions

View File

@ -27,6 +27,7 @@ window.setupLargeImagePreview = function() {
window.setupStyles = function() { window.setupStyles = function() {
$('head').append('<style>' + $('head').append('<style>' +
[ 'body:after { display: none } ',
[ '#largepreview.enl img { border:2px solid '+COLORS[TEAM_ENL]+'; } ', [ '#largepreview.enl img { border:2px solid '+COLORS[TEAM_ENL]+'; } ',
'#largepreview.res img { border:2px solid '+COLORS[TEAM_RES]+'; } ', '#largepreview.res img { border:2px solid '+COLORS[TEAM_RES]+'; } ',
'#largepreview.none img { border:2px solid '+COLORS[TEAM_NONE]+'; } ', '#largepreview.none img { border:2px solid '+COLORS[TEAM_NONE]+'; } ',

View File

@ -1,3 +1,17 @@
/* update notice */
body:after {
background: none repeat scroll 0 0 #FFFFFF;
color: red;
content: "Please update your total conversion script or it will not work properly anymore.";
display: block;
font-weight: bold;
left: 381px;
padding: 2px;
position: absolute;
top: 0;
z-index: 9001;
}
/* general rules ******************************************************/ /* general rules ******************************************************/
html, body, #map { html, body, #map {