Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/js/neochan/post.js

24 lines
584 B
JavaScript
Raw Permalink Normal View History

2016-12-31 18:36:28 +05:00
function neochan_post_new(j) {
var post = document.createElement("div");
post.id = j.PostHash;
post.setAttribute("class", "neochan-post-wrapper");
var header = document.createElement("div");
header.setAttribute("class", "neochan-post-header");
post.appendChild(header);
var body = document.createElement("div");
body.setAttribute("class", "neochan-post-body");
neochan_postify(body, j.Message);
return post;
}
function neochan_post_fadein(elem, j) {
var post = neochan_post_new(j);
$(post).fadein();
elem.appendChild(post);
}