rputs " <title>$title - Koakuma</title>"
rputs " <link rel=\"stylesheet\" href=\"$css\">"
set msie " src=\"$koakuma_png\""
+ set msie2 ""
if { [info exists "env(HTTP_USER_AGENT)"] } {
if { [regexp {MSIE 6} "$env(HTTP_USER_AGENT)"] } {
set msie " style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$koakuma_png', sizingMethod='scale');\" src=\"/static/transparent.gif\""
+ set msie2 " style=\"margin-top: 20px;\""
}
}
rputs " </head>"
rputs " <a href=\"$env(SCRIPT_NAME)\">Root</a>"
rputs " <div id=\"clearfix\"></div>"
if { "$has_toc" == "1" } {
- rputs " <div id=\"toc\">"
+ rputs " <div id=\"doc\">"
+ } else {
+ rputs " <div id=\"doc-notoc\">"
+ }
+ if { "$has_toc" == "1" } {
+ rputs " <div id=\"toc\"$msie2>"
rputs " <div id=\"toctitle\">TOC</div>"
foreach sect $toc {
if { "[string range "[regsub -all { } "$sect" "-"]" 0 0]" == "-" } {
}
rputs " </div>"
}
- if { "$has_toc" == "1" } {
- rputs " <div id=\"doc\">"
- } else {
- rputs " <div id=\"doc-notoc\">"
- }
- rputs " <h1>$title</h1>"
+ rputs " <div id=\"docinside\">"
+ rputs " <h1>$title</h1>"
}
proc end_html {has_toc} {
global KOAKUMA_VERSION toc
+ rputs " </div>"
rputs " </div>"
rputs " <div id=\"clearfix\"></div>"
rputs " <hr>"