Archived
1
0

fix banner inject function

This commit is contained in:
Jeff Becker 2016-01-20 11:48:08 -05:00
parent 98bb655a3c
commit 0199230489
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -18,7 +18,7 @@ var banner_count = 3;
// inject a banner into an element
function nntpchan_inject_banners(elem, prefix) {
var n = Math.floor(Math.random() * banner_count);
var banner = prefix + "static/banner_"+n+".jpg";
var banner = prefix + "static/banners/banner_"+n+".jpg";
var e = document.createElement("img");
e.src = banner;
e.setAttribute("class", "nntpchan_banner");