added jlist rss ads

This commit is contained in:
albert
2013-01-05 22:51:00 -05:00
parent f44ba8fe9f
commit b43c096116
33 changed files with 312 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
this.initialize_links();
this.initialize_post_sections();
this.initialize_post_image_resize_links();
this.place_jlist_ads();
}
}
@@ -197,6 +198,29 @@
}
});
}
Danbooru.Post.place_jlist_ads = function() {
var jlist = $("#jlist-rss-ads-for-show");
if (jlist.length) {
var image = $("#image");
if (image.length) {
var x = image.offset().left + image.width() + 50;
var y = image.offset().top;
if (x < 950) {
x = 950
}
jlist.css({
position: "absolute",
width: "108px",
left: x + "px",
top: y + "px"
});
} else {
jlist.hide();
}
}
}
})();
$(document).ready(function() {