diff --git a/dashboard_static/js/code.js b/dashboard_static/js/code.js index 6f5074e..2fea0fc 100644 --- a/dashboard_static/js/code.js +++ b/dashboard_static/js/code.js @@ -25,30 +25,30 @@ function getCSSVariable(name) { function tweetCell(tweet, parent) { var cell = document.createElement("div"); cell.innerHTML = - '
'+ - '' + - '
' + - '
'+ - ''+tweet.user.name+' '+ - '@'+tweet.user.screen_name+''+ - '
'+ - ''+tweet.text+''+ - '
'+ - '
'+ - 'favorite'+ - ''+tweet.favorite_count+''+ - '
'+ - '
'+ - 'repeat'+ - ''+tweet.retweet_count+''+ - '
'+ - '
'+ - 'chat_bubble'+ - ''+tweet.reply_count+''+ - '
'+ - '
'+ - '
'+ - '
'; + `
+ +
+
+ ${tweet.user.name} + @${tweet.user.screen_name} +
+ ${tweet.text} +
+
+ favorite + ${tweet.favorite_count} +
+
+ repeat + ${tweet.retweet_count} +
+
+ chat_bubble + ${tweet.reply_count} +
+
+
+
` parent.append(cell); }