diff --git a/webapp.html b/webapp.html
index 7179cfc..864d1b9 100644
--- a/webapp.html
+++ b/webapp.html
@@ -27,7 +27,7 @@
document.getElementById( 'send' ).onclick = function() {
var outStr = localStorage.getItem( 'outbox' ) || '';
- outStr += new Date().getTime() + ' ' + document.getElementById('message').value + '\n';
+ outStr += new Date().getTime() + ' ' + document.getElementById('name').value + '///' + document.getElementById('message').value + '\n';
localStorage.setItem( 'outbox', outStr );
updateOutboxView();
checkOutbox();
@@ -113,14 +113,39 @@ function doStuffForEach( entriesString, stuffFunction ) {
/*
* INBOX STUFF
*/
+
+
+
function updateInboxView() {
+ var localStorageArray = new Array();
var contentString = '';
- for(var i in localStorage)
+
+ if (localStorage.length>0) {
+ for (i=0;i' + i + ' ' + localStorage[i] + '';
+ var date = new Date(parseInt(orderStorage[i].time));
+// date.setHours(date.getHours() + 2);
+ var datereadable = date.getDate()+"/"+date.getMonth()+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes();
+ element=orderStorage[i].content.split('///');
+ contentString += '' + datereadable + ' ' + ' '+ element[0] +'
'+ element[1]+'';
}
document.getElementById( 'inbox' ).innerHTML = contentString;
}