-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
614 lines (580 loc) · 26.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
<!DOCTYPE html>
<html>
<head>
<title>noxious</title>
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- Optional theme
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap-theme.min.css">
-->
<!-- Latest compiled and minified JavaScript -->
<!-- <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script> -->
<script>
window.$ = window.jQuery = require('./node_modules/jquery/dist/jquery.min.js');
require('./node_modules/bootstrap/dist/js/bootstrap.min.js');
var activeChatAddress = '';
var messageCounter = 0;
var myAddress = '';
var systemMessagesAddress = 'systemMessages';
var systemMessagesDisplay = 'System Messages';
var notifications = {};
var contactDisplayNames = {};
const {ipcRenderer} = require('electron');
function isValidTorHiddenServiceName (name) {
var toReturn = false;
if (name.search(/^[a-zA-Z2-7]{16}\.onion$/) != -1) {
// it matched
toReturn = true;
}
return toReturn;
}
function notifyAtom(msg) {
ipcRenderer.send(msg.method, msg.content);
}
// tor Hidden Service Address
// .onion is removed from the address to avoid css issues
var torAddress = {fullAddress: '', get address() {return this.fullAddress.split('.')[0];}, nickName: ''};
ipcRenderer.on('error', function(e, msg) {
alert(msg.message);
});
ipcRenderer.on('status', function(e, msg) {
switch (msg.type) {
case 'onionAddress':
var chatId = Object.create(torAddress);
chatId.fullAddress = msg.content;
// global
myAddress = chatId.address;
$('#chatID').html(myAddress);
// once the chat ID is availabe, noxious is ready for action
// remove the overlay and progress bar
$('#progressBar').remove();
$('#startupOverlay').fadeOut('slow', function() {
$(this).remove();
})
break;
case 'bootstrap':
$('.progress-bar').css('width', msg.content+'%').attr('aria-valuenow', msg.content);
break;
}
});
function genContactRequestHTML(contactRequest) {
// contactRequest is a torAddress object plus .direction and .status
var reqCode = '<div id="request_' + contactRequest.address + '" \
class="pendingContactRequest" \
data-realaddress="' + contactRequest.address + '" \
data-direction="' + contactRequest.direction + '">'
if(contactRequest.direction == 'incoming') {
reqCode = reqCode + '<span data-tip="incoming request" \
class="requestIcon glyphicon glyphicon-log-in" aria-hidden="true"></span>';
} else {
reqCode = reqCode + '<span data-tip="outgoing request" \
class="requestIcon glyphicon glyphicon-log-out" aria-hidden="true"></span>';
}
reqCode = reqCode + '<span class="contactAddress">' + contactRequest.address + '</span> \
<span data-tip="delete request" \
class="deleteRequestIcon glyphicon glyphicon-remove" aria-hidden="true"></span>';
switch (contactRequest.status) {
case 'delivered':
reqCode = reqCode + '<span id="requestStatus_' + contactRequest.address + '" \
data-status="delivered" data-tip="delivered" \
class="requestStatusIcon glyphicon glyphicon glyphicon-ok" \
aria-hidden="true"></span>';
break;
case 'sending':
reqCode = reqCode + '<span id="requestStatus_' + contactRequest.address + '" \
data-status="sending" data-tip="sending" \
class="requestStatusIcon glyphicon glyphicon-transfer" \
aria-hidden="true"></span>';
break;
case 'failed':
reqCode = reqCode + '<span id="requestStatus_' + contactRequest.address + '" \
data-status="failed" data-tip="failed" \
class="requestStatusIcon glyphicon glyphicon-exclamation-sign" \
aria-hidden="true"></span>';
break;
default:
reqCode = reqCode + '<span id="requestStatus_' + contactRequest.address + '" \
class="requestStatusIcon glyphicon" \
aria-hidden="true"></span>';
break;
}
reqCode = reqCode + '</div>';
return reqCode;
}
ipcRenderer.on('message', function(e, msg){
switch (msg.type) {
case 'message':
var contactAddress = Object.create(torAddress);
contactAddress.fullAddress = msg.from;
var chatText = msg.msgText;
if($('#chatContainer_' + contactAddress.address).length == 0) {
genChatContainer(contactAddress.address);
}
// updates the chat content, but does not force display
postChat(contactAddress.address, contactAddress.address, chatText);
// message notification on contact list
if (activeChatAddress !== contactAddress.address) {
// set notifications
$('#notification_' + contactAddress.address).addClass('messageNotification');
function myFlasher() {
$('#notification_' + contactAddress.address).fadeTo(850, 0.1).fadeTo(850, 1.0);
}
if (notifications[contactAddress.address] === undefined) {
// there's not already a notification for this contact
notifications[contactAddress.address] = setInterval(myFlasher, 2000);
}
}
break;
case 'status':
switch (msg.status) {
case 'delivered':
$('#' + msg.msgId).removeClass('chatSending');
break;
case 'failed':
$('#' + msg.msgId).removeClass('chatSending');
$('#' + msg.msgId).addClass('chatFailed');
break;
}
break;
}
});
ipcRenderer.on('contact', function(e, msg) {
switch (msg.type) {
case 'contactRequest':
var contactRequest = Object.create(torAddress);
contactRequest.fullAddress = msg.from;
contactRequest.direction = msg.direction;
contactRequest.status = msg.status;
displayRequestInfo(contactRequest.address, contactRequest.direction);
$('#contactRequestList').append(genContactRequestHTML(contactRequest));
$('#contactRequestContainer').slideDown(400);
break;
case 'initContactList':
var contactList = msg.contactList;
$('#contactList').html('');
var contactArray = Object.keys(contactList).map(function (key) { return contactList[key]; });
for (contactIndex in contactArray) {
// TODO store contact objects into array??
var contactAddress = Object.create(torAddress);
contactAddress.fullAddress = contactArray[contactIndex].contactAddress;
contactAddress.nickName = contactArray[contactIndex].nickName;
var displayName = (contactAddress.nickName) ? contactAddress.nickName : contactAddress.address;
var isNickName = (contactAddress.nickName) ? true : false;
var contactCode = '<div id="contact_' + contactAddress.address +'" \
data-realaddress="' + contactAddress.address + '" \
data-displayname="' + displayName + '" \
data-isnickname="' + isNickName + '" \
class="contact"> \
<span id="notification_' + contactAddress.address + '" \
class="glyphicon glyphicon-user" aria-hidden="true"></span> \
<span id="addressSpan_' + contactAddress.address + '" class="contactAddress" \
>' + displayName + '</span> \
<span class="deleteContactIcon glyphicon glyphicon-remove" \
aria-hidden="true"></span> \
<span class="editContactIcon glyphicon glyphicon-edit" \
aria-hidden="true"></span> \
</div>';
$('#contactList').append(contactCode);
// Remove any messages relating to contact requests for contacts
$('#reqInfo_' + contactAddress.address).remove();
// display name are tracked to avoid duplicates
contactDisplayNames[displayName] = true;
}
break;
case 'initContactRequestList':
$('#contactRequestList').html('');
var contactRequestList = msg.contactRequestList;
var reqArray = Object.keys(contactRequestList).map(function(key){
return contactRequestList[key];
});
for (reqIndex in reqArray) {
var contactRequest = Object.create(torAddress);
contactRequest.fullAddress = reqArray[reqIndex].contactAddress;
contactRequest.direction = reqArray[reqIndex].direction;
contactRequest.status = reqArray[reqIndex].status;
$('#contactRequestList').append(genContactRequestHTML(contactRequest));
displayRequestInfo(contactRequest.address, contactRequest.direction);
}
$('#contactRequestContainer').slideDown(400);
break;
case 'clearContactRequestList':
$('#contactRequestContainer').slideUp(400, function() {
$('#contactRequestList').html('');
});
break;
}
});
function genChatContainer(contactAddress) {
var chatContainerId = 'chatContainer_' + contactAddress;
var containerHTML = '<div id="' + chatContainerId + '" class="hiddenChat \
specificChatContainer"> \
<div id="chatContent_' + contactAddress + '" class="chatContent"> \
</div> \
<div id="chatInputDiv_' + contactAddress + '" class="chatInputDiv"> \
<input id="chatInput_' + contactAddress + '" type="text" class="chatInput" \
data-realaddress="' + contactAddress + '"> \
</div> \
</div>';
$('#chatContainer').append(containerHTML);
}
$(document).on('click','.contact',function() {
var contactAddress = $(this).data('realaddress');
var displayName = $(this).data('displayname');
if($('#chatContainer_' + contactAddress).length == 0) {
// container needs to be created
genChatContainer(contactAddress);
}
setActiveChat(contactAddress, displayName);
});
function scrollToBottom (element) {
// TODO scrolling should be enhanced if user has scrolled up
$(element).scrollTop($(element).prop("scrollHeight"));
}
function sendMessage(destAddress, msgText, msgId) {
destAddress = destAddress + '.onion';
var msgObj = {};
msgObj.method = 'message';
msgObj.content = {type: 'sendEncrypted', destAddress: destAddress, msgText: msgText, msgId: msgId};
notifyAtom(msgObj);
}
function setActiveChat(contactAddress, displayName) {
if(activeChatAddress !== contactAddress) {
var chatContainerId = 'chatContainer_' + contactAddress;
var activeChatContainerId = 'chatContainer_' + activeChatAddress;
activeChatAddress = contactAddress;
$('#' + activeChatContainerId).addClass('hiddenChat');
$('#' + chatContainerId).removeClass('hiddenChat');
$('#chatHeader').html(displayName);
if(contactAddress=='systemMessage') {
// do something?
} else {
$('#chatInput_' + contactAddress).focus();
$('#notification_' + contactAddress).removeClass('messageNotification');
if(notifications[contactAddress] !== undefined) {
clearInterval(notifications[contactAddress]);
$('#notification_' + contactAddress).fadeTo('fast', 1.0);
delete notifications[contactAddress];
}
}
} else if (activeChatAddress == contactAddress) {
// just focus the chat text
$('#chatInput_' + contactAddress).focus();
}
}
function postChat(contactAddress, authorAddress, chatText) {
var messageId = 'message_' + messageCounter++;
var chatContentId = 'chatContent_' + contactAddress;
var displayName = '';
var statusClass = '';
if (authorAddress == myAddress) {
displayName = 'me';
statusClass = 'chatSending';
} else {
displayName = $('#contact_' + contactAddress).data('displayname');
}
displayName = displayName + ':';
var chatHTML = '<div id="' + messageId + '" class="chatTextDiv ' + statusClass + '"> \
<span class="chatName">' + displayName + '</span><span \
class="chatTextSpan">' + chatText + '</span></div>';
$('#' + chatContentId).append(chatHTML);
scrollToBottom($('#' + chatContentId));
return messageId;
}
function genRequestInfoHTML (contactAddress, direction) {
var requestInfoHTML = '';
if(direction == 'incoming') {
requestInfoHTML = '<div id="reqInfo_' + contactAddress + '" \
class="col-sm-6 systemMessage text-center"> \
<strong>' + contactAddress + '</strong> \
would like to add you on Noxious \
<div id="requestButtons_' + contactAddress + '" \
class="text-center buttonRow"> \
<button data-contactaddress="' + contactAddress + '" \
class="btn btn-success requestChoiceButton" data-choice="acceptContactRequest" \
data-description="Accepted">Accept</button> or \
<button data-contactaddress="' + contactAddress + '" \
class="btn btn-danger requestChoiceButton" \
data-choice="declineContactRequest" data-description="Declined"> \
Decline</button></div></div>';
} else {
switch($('#requestStatus_'+contactAddress).data('status')) {
case 'delivered':
requestInfoHTML = '<div id="reqInfo_' + contactAddress + '" \
class="col-sm-6 systemMessage text-center"> \
You successfully sent a contact request \
to <strong>' + contactAddress + '</strong> but there has been no reply. \
</div>';
break;
case 'failed':
requestInfoHTML = '<div id="reqInfo_' + contactAddress + '" \
class="col-sm-6 systemMessage text-center">You attempted to \
send a contact request \
to <strong>' + contactAddress + '</strong> but the recipient did \
not receive your request. \
<div class="text-center buttonRow"><button \
class="btn btn-success requestRetryButton text-uppercase" \
data-choice="retryContactRequest" \
data-contactaddress="' + contactAddress +'">Retry \
</button></div> \
</div>';
break;
}
}
return requestInfoHTML;
}
$(document).on('keydown', '.chatInput', function(e) {
if(e.keyCode == 13) {
var contactAddress = $(this).data('realaddress');
var chatText = $(this).val();
if (chatText == '') {
// blank lines should not be transmitted
alert('Blank lines will not be transmitted.');
} else {
$(this).val('');
var messageId = postChat(contactAddress, myAddress, chatText);
sendMessage(contactAddress, chatText, messageId);
}
}
});
function displayRequestInfo(contactAddress, direction) {
// display if it's not already displayed
if($('#reqInfo_' + contactAddress).length == 0) {
$('#chatContent_systemMessages').append(genRequestInfoHTML(contactAddress, direction));
} else {
// replace it
$('#reqInfo_' + contactAddress).replaceWith(genRequestInfoHTML(contactAddress, direction));
}
}
$(document).on('click','.pendingContactRequest', function() {
displayRequestInfo($(this).data('realaddress'), $(this).data('direction'));
setActiveChat(systemMessagesAddress, systemMessagesDisplay);
});
function removeContactRequest(contactAddress) {
// remove the contact request as well as related informational messages
$('#request_' + contactAddress).remove();
$('#reqInfo_' + contactAddress).remove();
// if there are no other requests, hide container
if($('#contactRequestList').children().length == 0) {
$('#contactRequestContainer').slideUp(400);
}
}
$(document).on('click','.requestChoiceButton', function() {
var contactAddress = $(this).data('contactaddress');
var choice = $(this).data('choice');
var description = $(this).data('description');
$('#requestButtons_' + contactAddress).html(description);
if(choice == "acceptContactRequest") {
$('#requestStatus_' + contactAddress).addClass('glyphicon-transfer');
}
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = { type: choice, contactAddress: contactAddress+'.onion' };
notifyAtom(msgObj);
function removeReqInfo(contactAddress) {
$('#reqInfo_' + contactAddress).fadeOut(2000, function() {
$(this).remove();
});
}
setTimeout(function() {
removeReqInfo(contactAddress);
}, 2000);
});
$(document).on('click','.deleteRequestIcon', function(e) {
// TODO confirm request?
e.stopPropagation();
var contactAddress = $(this).closest('div.pendingContactRequest').data('realaddress');
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = {type: 'delContactRequest', contactAddress: contactAddress+'.onion'};
notifyAtom(msgObj);
removeContactRequest(contactAddress);
});
$(document).on('click','.requestRetryButton', function(e) {
var contactAddress = $(this).data('contactaddress');
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = { type: 'retryContactRequest', contactAddress: contactAddress + '.onion' };
notifyAtom(msgObj);
$('#requestStatus_' + contactAddress).removeClass('glyphicon-exclamation-sign');
$('#requestStatus_' + contactAddress).addClass('glyphicon-transfer');
});
$(document).on('click','.editContactIcon', function(e) {
e.stopPropagation();
var contactAddress = $(this).closest('div.contact').data('realaddress');
var currentValue = $('#addressSpan_'+contactAddress).html();
var textInputID = 'nickTextInput_' + contactAddress;
var textInputHTML = '<input id="' + textInputID + '" type="text" class="nickTextInput" \
data-currentvalue="' + currentValue + '" placeholder="nickname">';
$('#addressSpan_'+contactAddress).html(textInputHTML);
$('#' + textInputID).focus();
});
$(document).on('click','.deleteContactIcon', function(e) {
e.stopPropagation();
var contactAddress = $(this).closest('div.contact').data('realaddress');
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = {type: 'delContact', contactAddress: contactAddress+'.onion'};
notifyAtom(msgObj);
if($('#chatContainer_' + contactAddress).length !== 0) {
if(activeChatAddress == contactAddress) {
setActiveChat(systemMessagesAddress, systemMessagesDisplay);
$('#chatContainer_' + contactAddress).remove();
}
}
});
function updateDisplayName(contactAddress, displayName) {
$('#contact_' + contactAddress).data('displayname', displayName);
if (activeChatAddress == contactAddress) {
$('#chatHeader').html(displayName);
}
}
function processNickName(textInput) {
var realAddress = $(textInput).closest('div.contact').data('realaddress');
var currentValue = $(textInput).data('currentvalue');
var isNickName = $(textInput).closest('div.contact').data('isnickname');
var nickName = $(textInput).val();
// TODO validate nickname: length, allowed chars etc.
if (nickName === '~' && isNickName) {
// remove nickname
$(textInput).closest('span.contactAddress').html(realAddress);
updateDisplayName(realAddress, realAddress);
delete contactDisplayNames[currentValue];
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = {type: 'delNickName', contactAddress: realAddress+'.onion'};
notifyAtom(msgObj);
} else if (nickName === '') {
$(textInput).closest('span.contactAddress').html(currentValue);
} else {
if (contactDisplayNames[nickName] === undefined) {
$(textInput).closest('span.contactAddress').html(nickName);
updateDisplayName(realAddress, nickName);
contactDisplayNames[nickName] = true;
if (currentValue !== realAddress) {
delete contactDisplayNames[currentValue];
}
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = {type: 'setNickName', contactAddress: realAddress+'.onion', nickName: nickName};
notifyAtom(msgObj);
} else {
$(textInput).closest('span.contactAddress').html(currentValue);
alert('The nickname you provided is already in use, please enter a unique nickname.');
}
}
}
$(document).on('keydown', '.nickTextInput', function(e) {
if(e.keyCode == 27) {
$(this).val('');
$(this).blur();
} else if (e.keyCode == 13) {
// enter=13, tab is caught by focusout
//validateNickName(this, realAddress, currentValue, isNickName);
$(this).blur();
} else if (e.keyCode == 46) {
// del=46, remove nick and revert back to address
$(this).val('~');
$(this).blur();
}
});
$(document).on('focusout', '.nickTextInput', function() {
processNickName(this);
});
$(window).resize(function(){
$('#chatContainer').css('height', $(window).height() - 80);
}).resize();
$(document).ready(function() {
// set the startup overlay height to 100% of window size
$('#startupOverlay').css('height', $(window).height());
// center the progress bar
$('#progressBar').css('top', ($(window).height() / 2) - 20);
$('#progressBar').css('left', ($(window).width() / 2) - 150);
// set chat window height based on the window size
$('#chatContainer').css('height', $(window).height() - 80);
// Create container for system messages
genChatContainer(systemMessagesAddress);
//remove the text input for system messages
$('#chatInputDiv_' + systemMessagesAddress).remove();
setActiveChat(systemMessagesAddress, systemMessagesDisplay);
// Add Contact
$('#addContactButton').click(function () {
$('#newContactFormContainer').slideDown('fast');
$('#newContactAddressText').focus();
});
// Send Contact Request
$('#sendContactRequestButton').click(function () {
var contactAddress = $('#newContactAddressText').val() + '.onion';
if (isValidTorHiddenServiceName(contactAddress)) {
var msgObj = {};
msgObj.method = 'contact';
msgObj.content = {type: 'sendContactRequest', contactAddress: contactAddress};
notifyAtom(msgObj);
$('#newContactAddressText').val('');
$('#newContactFormContainer').slideUp('fast');
} else {
alert('The Chat ID you have entered is invalid. A valid ID is 16 characters long and contains the letters a-z and the numbers 2-7, inclusive.');
}
});
// Cancel Contact Request
$('#cancelContactRequestButton').click(function () {
$('#newContactAddressText').val('');
$('#newContactFormContainer').slideUp('fast');
});
});
</script>
</head>
<body>
<!-- We are using node.js <script>document.write(process.version)</script>
and atom-shell <script>document.write(process.versions['atom-shell'])</script>.
-->
<div id='startupOverlay'></div>
<div id='progressBar' class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
<span class="sr-only">0% Complete</span>
</div>
</div>
<div id='mainContainer' class='container-fluid height100'>
<div class='row height100'>
<div id='sideBar' class='col-sm-3 height100'>
<div id='userInformationContainer'>
<div id='userInformationHeader'>
<h5>CHAT ID</h5>
</div>
<div id='userInformationData'>
<span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
<span id="chatID" class='text-center'></span>
</div>
</div>
<div id='contactsContainer'>
<div id='contactsHeader'>
<h6>CONTACTS</h6>
<span id="addContactButton" class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</div>
<div id="newContactFormContainer">
<div><input id='newContactAddressText' type="text" size="17"></div>
<div id="newContactFormButtons">
<button id="sendContactRequestButton" class="btn-success">Send Invite</button>
<button id="cancelContactRequestButton" class="btn-danger">Cancel</button>
</div>
</div>
<div id='contactRequestContainer'>
<div id='contactRequestHeader'>
Pending contact requests
</div>
<div id='contactRequestList'>
</div>
</div>
<div id='contactList'>
</div>
</div>
</div>
<div id='middleColumn' class='col-sm-9'>
<div id="chatHeader" class="chatHeader">
</div>
<div id="chatContainer" class="chatContainer">
</div>
</div>
</div>
</div>
</body>
</html>