Archived
1
0

fix banner placements

This commit is contained in:
Jeff Becker 2016-01-20 12:13:14 -05:00
parent 06d4535eaa
commit 329eca6af3
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
4 changed files with 10 additions and 14 deletions

View File

@ -23,14 +23,13 @@
<!-- begin navbar --> <!-- begin navbar -->
{{{board.Navbar}}} {{{board.Navbar}}}
<!-- end navbar --> <!-- end navbar -->
<div id="nntpchan_banner">
</div>
<!-- postform --> <!-- postform -->
<div id="postform_container"> <div id="postform_container">
{{{form}}} {{{form}}}
</div> </div>
<hr /> <hr />
<div id="nntpchan_banner">
</div>
<div id="threads_container"> <div id="threads_container">
{{#board.Threads}} {{#board.Threads}}
<div class="thread" id="thread_{{OP.PostHash}}"> <div class="thread" id="thread_{{OP.PostHash}}">
@ -45,10 +44,10 @@
{{/board.Threads}} {{/board.Threads}}
</div> </div>
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"> <script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner"); var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{board.Prefix}}"); nntpchan_inject_banners(e, "{{board.Prefix}}");
}
</script> </script>
</body> </body>
</html> </html>

View File

@ -74,10 +74,8 @@
</div> </div>
</center> </center>
<script src="{{prefix}}static/nntpchan.js" type="text/javascript"> <script src="{{prefix}}static/nntpchan.js" type="text/javascript">
document.onload = function() {
var e = document.getElementById("nntpchan_banner"); var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{prefix}}"); nntpchan_inject_banners(e, "{{prefix}}");
}
</script> </script>
</body> </body>

View File

@ -24,14 +24,13 @@
<!-- begin navbar --> <!-- begin navbar -->
{{{thread.Navbar}}} {{{thread.Navbar}}}
<!-- end navbar --> <!-- end navbar -->
<div id="nntpchan_banner">
</div>
<!-- postform --> <!-- postform -->
<div id="postform_container"> <div id="postform_container">
{{{form}}} {{{form}}}
</div> </div>
<hr /> <hr />
<div id="nntpchan_banner">
</div>
<div class="thread" id="thread_{{thread.OP.PostHash}}"> <div class="thread" id="thread_{{thread.OP.PostHash}}">
<div class="thread_header"> <div class="thread_header">
</div> </div>
@ -43,10 +42,10 @@
</div> </div>
<br/> <br/>
<script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript"> <script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript">
document.onload = function() {
var e = document.getElementById("nntpchan_banner"); var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{thread.Prefix}}"); nntpchan_inject_banners(e, "{{thread.Prefix}}");
}
</script> </script>
</body> </body>

View File

@ -33,10 +33,10 @@
{{/threads}} {{/threads}}
</div> </div>
<script type="text/javascript" src="{{prefix}}static/nntpchan.js"> <script type="text/javascript" src="{{prefix}}static/nntpchan.js">
document.onload = function() {
var e = document.getElementById("nntpchan_banner"); var e = document.getElementById("nntpchan_banner");
nntpchan_inject_banners(e, "{{prefix}}"); nntpchan_inject_banners(e, "{{prefix}}");
}
</script> </script>
</body> </body>
</html> </html>