﻿function UpdateMessages() {
	var url = "/Home/Next";
    var inner = "";
	$.get(url, function(data) {
		if ((data === "") || (data === null)) {
			return;
		}
		var items = data.split('#');
		var post = "<li class='hh-post'>";
		post += "<h2>" + items[0] + "</h2>";
		post += "<i>" + items[1].replace(/\*/g, '') + "</i><br>";
		post += items[2] + "</li>";
		$('#stream').append(post);
	});
}
$(document).ready(function() {
	setInterval(function() {
		UpdateMessages();
	}, 5000);
});
@@ -256,24 +256,126 @@
  + %22%3C/h2%3E%22;%0A
+%09%09if (items.length %3E 3) %7B%0A%09%09    post += %22%3Ci%3E%3Csmall%3E%22 + FormatTime(items%5B3%5D) + %22%3C/small%3E%3C/i%3E%3Cbr%3E%22;%0A%09%09%7D%0A
 %09%09post += %22%3C
@@ -488,16 +488,295 @@
 %0A%09%7D);%0A%7D%0A
+function FormatTime(code) %7B%0A%09var year = new Date().getFullYear();%0A%09var month = code.substring(0, 2);%0A%09var day = code.substring(2, 4);%0A%09var hour = code.substring(4, 6);%0A%09var minute = code.substring(6, 8);%0A%09return %22%22 + year + %22/%22 + month + %22/%22 + day + %22 %22 + hour + %22:%22 + minute;%0A%7D%0A
 $(docume

Add timestamps to posts