[svn r7413] Fix up redirects to use meta refresh. Add note that "toggle background"

requires a password.
This commit is contained in:
olly
2006-06-22 18:22:50 +02:00
parent 4f1de43684
commit e18881eda3
4 changed files with 45 additions and 2433 deletions

View File

@@ -400,6 +400,7 @@ for maparea in mapcodes:
if maparea != "all":
htmlfile.write("<h3 id=\"idsubmap%s\">%s area detail</h3>\n" % (maparea, maps[maparea][DESC]))
htmlfile.write("<button onclick=\"if (bg%s) img%s.src = '%s'; else img%s.src = '../noinfo/%s'; bg%s = !bg%s;\">Toggle Background</button>\n" % (maparea, maparea, filename, maparea, filename, maparea, maparea))
htmlfile.write("<small>Note: this requires a login to work!</small>\n")
htmlfile.write("<p><img src=\"%s\" usemap=\"#map%s\" ismap=\"ismap\" name=\"img%s\"" % (filename, maparea, maparea))
htmlfile.write(" width=\"%d\" height=\"%d\" /></p>\n" % imgs[maparea].size)