Archived
1
0

try fixing banners

This commit is contained in:
Jeff Becker 2016-01-20 11:52:04 -05:00
parent 3274536134
commit 9f84ab4ca9
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
5 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,6 @@ function nntpchan_inject_banners(elem, prefix) {
var banner = prefix + "static/banner_"+n+".jpg"; var banner = prefix + "static/banner_"+n+".jpg";
var e = document.createElement("img"); var e = document.createElement("img");
e.src = banner; e.src = banner;
e.setAttribute("class", "nntpchan_banner"); e.id = "nntpchan_banner";
elem.appendChild(e); elem.appendChild(e);
} }

View File

@ -321,3 +321,8 @@ textarea#reply-text {
hr { hr {
padding-bottom: 20px; padding-bottom: 20px;
} }
#nntpchan_banner {
align: center;
}

View File

@ -31,6 +31,7 @@
</div> </div>
<hr /> <hr />
<div onload="nntpchan_inject_banners(this, '{{board.Prefix}}');"> <div onload="nntpchan_inject_banners(this, '{{board.Prefix}}');">
[banner]
</div> </div>
<div id="threads_container"> <div id="threads_container">
{{#board.Threads}} {{#board.Threads}}

View File

@ -31,6 +31,7 @@
<h4>We've Had {{totalposts}} Posts Since August 01 2015 </h4> <h4>We've Had {{totalposts}} Posts Since August 01 2015 </h4>
</div> </div>
<div onload="nntpchan_inject_banners(this, '{{prefix}}');"> <div onload="nntpchan_inject_banners(this, '{{prefix}}');">
[banner]
</div> </div>
<div class="index-inner"> <div class="index-inner">
<table> <table>

View File

@ -14,6 +14,7 @@
</head> </head>
<body> <body>
<div onload="nntpchan_inject_banners(this, '{{prefix}}');"> <div onload="nntpchan_inject_banners(this, '{{prefix}}');">
[banner]
</div> </div>
<div id="ukko_threads"> <div id="ukko_threads">
{{#threads}} {{#threads}}