Archived
1
0

try fixing banners

This commit is contained in:
Jeff Becker 2016-01-20 12:08:01 -05:00
parent 33d95c2ef3
commit 97faee8d1d
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
4 changed files with 27 additions and 25 deletions

View File

@ -17,12 +17,6 @@
<meta name="viewport" content="initial-scale=1" /> <meta name="viewport" content="initial-scale=1" />
<link rel="stylesheet" href="{{board.Prefix}}static/site.css" /> <link rel="stylesheet" href="{{board.Prefix}}static/site.css" />
<link rel="stylesheet" href="{{board.Prefix}}static/user.css" /> <link rel="stylesheet" href="{{board.Prefix}}static/user.css" />
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
<title>{{board.Board}}</title> <title>{{board.Board}}</title>
</head> </head>
<body> <body>
@ -51,5 +45,11 @@
</div> </div>
{{/board.Threads}} {{/board.Threads}}
</div> </div>
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
</body> </body>
</html> </html>

View File

@ -13,12 +13,6 @@
<head> <head>
<link rel="stylesheet" href="{{prefix}}static/site.css" /> <link rel="stylesheet" href="{{prefix}}static/site.css" />
<link rel="stylesheet" href="{{prefix}}static/user.css" /> <link rel="stylesheet" href="{{prefix}}static/user.css" />
<script src="{{prefix}}static/nntpchan.js" type="text/javascript">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
<title> {{frontend}} on nntpchan </title> <title> {{frontend}} on nntpchan </title>
</head> </head>
<body> <body>
@ -80,5 +74,12 @@
</div> </div>
</div> </div>
</center> </center>
<script src="{{prefix}}static/nntpchan.js" type="text/javascript">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
</body> </body>
</html> </html>

View File

@ -17,12 +17,6 @@
<meta name="viewport" content="initial-scale=1" /> <meta name="viewport" content="initial-scale=1" />
<link rel="stylesheet" href="{{thread.Prefix}}static/site.css" /> <link rel="stylesheet" href="{{thread.Prefix}}static/site.css" />
<link rel="stylesheet" href="{{thread.Prefix}}static/user.css" /> <link rel="stylesheet" href="{{thread.Prefix}}static/user.css" />
<script type="text/javascript" src="{{thread.Prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
<title> {{thread.OP.Subject}} </title> <title> {{thread.OP.Subject}} </title>
</head> </head>
<body> <body>
@ -49,5 +43,12 @@
{{/ thread.Replies}} {{/ thread.Replies}}
</div> </div>
<br/> <br/>
<script src="{{prefix}}static/nntpchan.js" type="text/javascript">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
</body> </body>
</html> </html>

View File

@ -10,12 +10,6 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="stylesheet" href="{{prefix}}static/site.css" /> <link rel="stylesheet" href="{{prefix}}static/site.css" />
<link rel="stylesheet" href="{{prefix}}static/user.css" /> <link rel="stylesheet" href="{{prefix}}static/user.css" />
<script type="text/javascript" src="{{prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
</head> </head>
<body> <body>
<div id="nntpchan_banner"> <div id="nntpchan_banner">
@ -38,6 +32,12 @@
{{/Truncate.Replies}} {{/Truncate.Replies}}
</div> </div>
{{/threads}} {{/threads}}
</div> </div>
<script type="text/javascript" src="{{prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script>
</body> </body>
</html> </html>