Archived
1
0

add onload to body

This commit is contained in:
Jeff Becker 2016-03-07 21:00:54 -05:00
parent 693bcdeffd
commit 6392a606c4
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
4 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,8 @@ function enable_theme(prefix, name) {
} }
} }
document.onload = function() { function main() {
// apply themes
var st = get_storage(); var st = get_storage();
enable_theme(st.nntpchan_prefix, st.nntpchan_theme); enable_theme(st.nntpchan_prefix, st.nntpchan_theme);
} }

View File

@ -20,7 +20,7 @@
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script> <script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
<title>{{board.Board}}</title> <title>{{board.Board}}</title>
</head> </head>
<body> <body onload="main()">
<!-- begin navbar --> <!-- begin navbar -->
{{{board.Navbar}}} {{{board.Navbar}}}
<!-- end navbar --> <!-- end navbar -->

View File

@ -19,8 +19,7 @@
<script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript"></script> <script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript"></script>
<title> {{thread.OP.Subject}} </title> <title> {{thread.OP.Subject}} </title>
</head> </head>
<body> <body onload="main()">
<!-- begin navbar --> <!-- begin navbar -->
{{{thread.Navbar}}} {{{thread.Navbar}}}
<!-- end navbar --> <!-- end navbar -->

View File

@ -12,7 +12,7 @@
<link id="current_theme" rel="stylesheet" href="{{prefix}}static/user.css" /> <link id="current_theme" rel="stylesheet" href="{{prefix}}static/user.css" />
<script type="text/javascript" src="{{prefix}}static/nntpchan.js"></script> <script type="text/javascript" src="{{prefix}}static/nntpchan.js"></script>
</head> </head>
<body> <body onload="main()">
<center> <center>
<div id="nntpchan_banner"> <div id="nntpchan_banner">
</div> </div>