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();
|
var st = get_storage();
|
||||||
enable_theme(st.nntpchan_prefix, st.nntpchan_theme);
|
enable_theme(st.nntpchan_prefix, st.nntpchan_theme);
|
||||||
}
|
}
|
||||||
|
@ -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 -->
|
||||||
|
@ -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 -->
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user