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:
parent
b59d2cd69b
commit
3b487967dc
@ -7,7 +7,7 @@ function renderShomb(data) {
|
|||||||
var parsedData = eval(data);
|
var parsedData = eval(data);
|
||||||
parsedData.forEach(function (entry) {
|
parsedData.forEach(function (entry) {
|
||||||
var myEntry = elementPlace("#shombleList",null,"shomb_post","li");
|
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);
|
getData("shomble/get.pl", renderShomb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user