Get rid of onload HTML thing

This commit is contained in:
Neale Pickett 2010-05-17 22:46:58 -06:00
parent a7974758f0
commit 935b9b1fb9
3 changed files with 4 additions and 2 deletions

View File

@ -157,6 +157,9 @@ def main():
if opts.html:
hdr = ('<script type="application/javascript" src="plot.js"></script>'
'<script type="application/javascript" src="myplot.js"></script>'
'<script type="application=javascript">'
'window.onload = function () { draw("history"); };'
'</script>'
'<meta http-equiv="refresh" content="60" />')
body = chart.make_table()
body += '\n<canvas id="history"></canvas>'

View File

@ -19,7 +19,6 @@ def substitute(title, body, base=base, hdr='', body_class='', onload='', links='
body_class=body_class,
base=base,
links=links,
onload=onload,
body=body)
def serve(title, body, **kwargs):

View File

@ -8,7 +8,7 @@
<link rel="stylesheet" href="${base}ctf.css" type="text/css" />
$hdr
</head>
<body class="$body_class" onload="$onload">
<body class="$body_class">
<h1>$title</h1>
<div id="navigation">
<ul>