separated date and post into separate elements in the dropin so they can easily be styled by the end user.

This commit is contained in:
bluesaxman 2021-05-07 13:56:09 -06:00
parent b59d2cd69b
commit 3b487967dc

View File

@ -7,7 +7,7 @@ function renderShomb(data) {
var parsedData = eval(data);
parsedData.forEach(function (entry) {
var myEntry = elementPlace("#shombleList",null,"shomb_post","li");
myEntry.innerHTML = '<div class="shomb_username">'+entry.USER+'</div><div class="shomb_message">'+entry.DATE+" -- "+entry.POST+'</div>';
myEntry.innerHTML = '<div class="shomb_username">'+entry.USER+'</div><div class="shomb_message">'++entry.POST+'</div><div class="shomb_date">'+entry.DATE+'</div>';
});
}
getData("shomble/get.pl", renderShomb);