add onload to body
This commit is contained in:
parent
693bcdeffd
commit
6392a606c4
@ -46,7 +46,8 @@ function enable_theme(prefix, name) {
|
||||
}
|
||||
}
|
||||
|
||||
document.onload = function() {
|
||||
function main() {
|
||||
// apply themes
|
||||
var st = get_storage();
|
||||
enable_theme(st.nntpchan_prefix, st.nntpchan_theme);
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
|
||||
<title>{{board.Board}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="main()">
|
||||
<!-- begin navbar -->
|
||||
{{{board.Navbar}}}
|
||||
<!-- end navbar -->
|
||||
|
@ -19,8 +19,7 @@
|
||||
<script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript"></script>
|
||||
<title> {{thread.OP.Subject}} </title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body onload="main()">
|
||||
<!-- begin navbar -->
|
||||
{{{thread.Navbar}}}
|
||||
<!-- end navbar -->
|
||||
|
@ -12,7 +12,7 @@
|
||||
<link id="current_theme" rel="stylesheet" href="{{prefix}}static/user.css" />
|
||||
<script type="text/javascript" src="{{prefix}}static/nntpchan.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<body onload="main()">
|
||||
<center>
|
||||
<div id="nntpchan_banner">
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user