Archived
1
0
This commit is contained in:
Jeff Becker
2016-12-31 08:36:28 -05:00
parent e35adda727
commit 536b1161c9
9 changed files with 103 additions and 43 deletions

View File

@@ -0,0 +1,24 @@
/**
* @brief initialize a board page
*/
function neochan_board_init(root, board) {
var thread_init = function (j) {
var elem = document.createElement("div");
for(var idx = 0; idx < j.length; idx ++) {
var post = j[idx];
neochan_post_fadein(elem, post);
}
return elem;
}
// inject threads
onready(function() {
for (var idx = 0; idx < board.posts.length; idx ++) {
var posts = board.posts[idx];
var elem = thread_init(posts);
root.appendChild(elem);
}
});
}