From faa7b067589caf6e78e93457356efc496b2b25f9 Mon Sep 17 00:00:00 2001 From: olly <olly@survex.com> Date: Sat, 20 Jun 2015 10:30:46 +1200 Subject: [PATCH] Revert commit 2078 - put the javascript back in <head> --- .../make-prospectingguide-new.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py b/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py index 7a81e8bab..bf989cd68 100644 --- a/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py +++ b/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py @@ -439,10 +439,10 @@ else: htmlfile = file("../../handbook/prospecting_guide.html", "w") htmlfile.write("<html><head><meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\"><title>Prospecting Guide</title>\n") -#htmlfile.write("<script lang=\"Javascript\"><!--\n"); -#for maparea in mapcodes: -# htmlfile.write("bg%s = false;\n" % maparea); -#htmlfile.write("//-->\n</script>\n"); +htmlfile.write("<script lang=\"Javascript\"><!--\n"); +for maparea in mapcodes: + htmlfile.write("bg%s = false;\n" % maparea); +htmlfile.write("//-->\n</script>\n"); htmlfile.write(""" <style type="text/css"> .locn { font-size: x-small } @@ -453,11 +453,7 @@ htmlfile.write(""" .notours .bad { background-color: #ffffff; } .notours .awful { background-color: #ffffff; } </style></head>""") -htmlfile.write("<body><h1>Prospecting Guide</h1>"); -htmlfile.write("<script lang=\"Javascript\"><!--\n"); -for maparea in mapcodes: - htmlfile.write("bg%s = false;\n" % maparea); -htmlfile.write("//-->\n</script>\n"); +htmlfile.write("<body><h1>Prospecting Guide</h1>") htmlfile.write("<p><small>Generated " + time.strftime("%Y-%m-%d %H:%M:%S %Z") + " by " + sys.argv[0] + "</small></p>\n") htmlfile.write("<p><b>Notes:</b></p><ul><li>A marking status of \"Retag\" means a tag is in place but it carries a provisional number, or in some cases an incorrect number, and needs replacing with a new tag.</li>\n<li>Kataster status codes indicate the size of a cave, its character and its exploration status, as described <a href=\"../katast.htm\">here</a>.</li><li>For more info on each cave, see the links to detailed description pages.</li></ul>\n")