|
|
|
@ -21,7 +21,7 @@ class View {
|
|
|
|
|
); */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
drawCommentTittles(comments) {
|
|
|
|
|
drawCommenttitles(comments) {
|
|
|
|
|
let aside = document.getElementsByTagName("aside")[0];
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < comments.length; i++) {
|
|
|
|
@ -49,11 +49,11 @@ class View {
|
|
|
|
|
|
|
|
|
|
comment.appendChild(time);
|
|
|
|
|
|
|
|
|
|
let commentTittle = document.createElement("div");
|
|
|
|
|
commentTittle.setAttribute("class", "commentText");
|
|
|
|
|
commentTittle.innerHTML = comments[i].tittle;
|
|
|
|
|
let commenttitle = document.createElement("div");
|
|
|
|
|
commenttitle.setAttribute("class", "commentText");
|
|
|
|
|
commenttitle.innerHTML = comments[i].title;
|
|
|
|
|
|
|
|
|
|
comment.appendChild(commentTittle);
|
|
|
|
|
comment.appendChild(commenttitle);
|
|
|
|
|
|
|
|
|
|
aside.appendChild(comment);
|
|
|
|
|
|
|
|
|
|