diff --git a/home.html b/home.html
new file mode 100644
index 0000000..6d63931
--- /dev/null
+++ b/home.html
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ ${cursor.value.text}
+
+
+ ${getTime(cursor.value.time)}
+
+
+
`;
+ chat.appendChild(msgdiv);
+ }else if(cursor.value.type == "S"){
+ var msgdiv = document.createElement('div');
+ msgdiv.setAttribute("class", "row message-body");
+ msgdiv.innerHTML = `
+
+ ${cursor.value.text}
+
+
+ ${getTime(cursor.value.time)}
+
+
+
`;
+ chat.appendChild(msgdiv);
+ }
+
+ cursor.continue();
+ } else {
+ console.log('Entries all displayed.');
+ resolve("Read Msg from IDB");
+ }
+ };
+ db.close();
+ };
+ }
+ );
+}
+
+function storeMsg(data){
+ var idb = indexedDB.open("FLO_Tweet",2);
+ idb.onerror = function(event) {
+ console.log("Error in opening IndexedDB!");
+ };
+ idb.onupgradeneeded = function(event) {
+ var objectStore = event.target.result.createObjectStore("messages",{ keyPath: 'time' });
+ objectStore.createIndex('text', 'text', { unique: false });
+ objectStore.createIndex('floID', 'floID', { unique: false });
+ objectStore.createIndex('type', 'type', { unique: false });
+ };
+ idb.onsuccess = function(event) {
+ var db = event.target.result;
+ var obs = db.transaction("messages", "readwrite").objectStore("messages");
+ obs.add(data);
+ db.close();
+ };
+}
+
+function displayProfiles(){
+ console.log('displayProfiles');
+ var listElement = document.getElementById('contact-display');
+ for(floID in profiles){
+ var createLi = document.createElement('div');
+ createLi.setAttribute("name", floID);
+ createLi.setAttribute("onClick", 'changeReceiver(this)');
+ createLi.setAttribute("class", "row sideBar-body");
+ createLi.innerHTML = `
+
+ ${msg}
+
+
+ ${getTime(time)}
+
+
+
`;
+ disp.appendChild(msgdiv);
+ storeMsg({time:time,floID:receiverID,text:msg,type:"S"});
+}
\ No newline at end of file