ChatServer/pages/js/index.js

16 lines
429 B
JavaScript
Raw Normal View History

/**
* Created by Norbi on 2016-08-05.
*/
$(document).ready(function () {
var cmsgs = document.getElementById("channelmessages");
if (cmsgs != null && cmsgs.childElementCount > 0) {
var nodes = cmsgs.children;
for (var x = 0; x < nodes.length; x++) {
var item = nodes[x];
if (item.tagName == "DIV")
handlereceivedmessage(item);
}
}
});