fix banner inject function
This commit is contained in:
parent
98bb655a3c
commit
0199230489
@ -18,7 +18,7 @@ var banner_count = 3;
|
|||||||
// inject a banner into an element
|
// inject a banner into an element
|
||||||
function nntpchan_inject_banners(elem, prefix) {
|
function nntpchan_inject_banners(elem, prefix) {
|
||||||
var n = Math.floor(Math.random() * banner_count);
|
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");
|
var e = document.createElement("img");
|
||||||
e.src = banner;
|
e.src = banner;
|
||||||
e.setAttribute("class", "nntpchan_banner");
|
e.setAttribute("class", "nntpchan_banner");
|
||||||
|
Reference in New Issue
Block a user