@@ -23,30 +23,30 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
23
23
< div class ='clearfix '>
24
24
25
25
< div class ='fl pad1y space-right2 '>
26
- < span class ="strong "> 85.22 % </ span >
26
+ < span class ="strong "> 84.87 % </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 173/203 </ span >
28
+ < span class ='fraction '> 174/205 </ span >
29
29
</ div >
30
30
31
31
32
32
< div class ='fl pad1y space-right2 '>
33
- < span class ="strong "> 57.47 % </ span >
33
+ < span class ="strong "> 57.77 % </ span >
34
34
< span class ="quiet "> Branches</ span >
35
- < span class ='fraction '> 50/87 </ span >
35
+ < span class ='fraction '> 52/90 </ span >
36
36
</ div >
37
37
38
38
39
39
< div class ='fl pad1y space-right2 '>
40
- < span class ="strong "> 78.43 % </ span >
40
+ < span class ="strong "> 76.92 % </ span >
41
41
< span class ="quiet "> Functions</ span >
42
- < span class ='fraction '> 40/51 </ span >
42
+ < span class ='fraction '> 40/52 </ span >
43
43
</ div >
44
44
45
45
46
46
< div class ='fl pad1y space-right2 '>
47
- < span class ="strong "> 85.56 % </ span >
47
+ < span class ="strong "> 85.2 % </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 166/194 </ span >
49
+ < span class ='fraction '> 167/196 </ span >
50
50
</ div >
51
51
52
52
@@ -550,7 +550,13 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
550
550
< a name ='L485 '> </ a > < a href ='#L485 '> 485</ a >
551
551
< a name ='L486 '> </ a > < a href ='#L486 '> 486</ a >
552
552
< a name ='L487 '> </ a > < a href ='#L487 '> 487</ a >
553
- < a name ='L488 '> </ a > < a href ='#L488 '> 488</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-neutral "> </ span >
553
+ < a name ='L488 '> </ a > < a href ='#L488 '> 488</ a >
554
+ < a name ='L489 '> </ a > < a href ='#L489 '> 489</ a >
555
+ < a name ='L490 '> </ a > < a href ='#L490 '> 490</ a >
556
+ < a name ='L491 '> </ a > < a href ='#L491 '> 491</ a >
557
+ < a name ='L492 '> </ a > < a href ='#L492 '> 492</ a >
558
+ < a name ='L493 '> </ a > < a href ='#L493 '> 493</ a >
559
+ < a name ='L494 '> </ a > < a href ='#L494 '> 494</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-neutral "> </ span >
554
560
< span class ="cline-any cline-neutral "> </ span >
555
561
< span class ="cline-any cline-neutral "> </ span >
556
562
< span class ="cline-any cline-neutral "> </ span >
@@ -789,6 +795,9 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
789
795
< span class ="cline-any cline-neutral "> </ span >
790
796
< span class ="cline-any cline-neutral "> </ span >
791
797
< span class ="cline-any cline-neutral "> </ span >
798
+ < span class ="cline-any cline-yes "> 18x</ span >
799
+ < span class ="cline-any cline-neutral "> </ span >
800
+ < span class ="cline-any cline-neutral "> </ span >
792
801
< span class ="cline-any cline-neutral "> </ span >
793
802
< span class ="cline-any cline-neutral "> </ span >
794
803
< span class ="cline-any cline-yes "> 1x</ span >
@@ -883,6 +892,9 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
883
892
< span class ="cline-any cline-neutral "> </ span >
884
893
< span class ="cline-any cline-neutral "> </ span >
885
894
< span class ="cline-any cline-neutral "> </ span >
895
+ < span class ="cline-any cline-no "> </ span >
896
+ < span class ="cline-any cline-neutral "> </ span >
897
+ < span class ="cline-any cline-neutral "> </ span >
886
898
< span class ="cline-any cline-neutral "> </ span >
887
899
< span class ="cline-any cline-neutral "> </ span >
888
900
< span class ="cline-any cline-neutral "> </ span >
@@ -1223,7 +1235,7 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1223
1235
return this._messagesArea.classList.contains('quikchat-messages-area-alt');
1224
1236
}
1225
1237
// message functions
1226
- messageAddFull(input = < span class ="branch-0 cbranch-no " title ="branch not covered " > { content: "", userString: "user", align: "right", role: "user", userID: -1, timestamp: false, updatedtime: false })</ span > {
1238
+ messageAddFull(input = < span class ="branch-0 cbranch-no " title ="branch not covered " > { content: "", userString: "user", align: "right", role: "user", userID: -1, timestamp: false, updatedtime: false, scrollIntoView: false })</ span > {
1227
1239
const msgid = this.msgid;
1228
1240
const messageDiv = document.createElement('div');
1229
1241
const msgidClass = 'quikchat-msgid-' + String(msgid).padStart(10, '0');
@@ -1245,7 +1257,7 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1245
1257
this._messagesArea.appendChild(messageDiv);
1246
1258
1247
1259
// Scroll to the last message only if the user is not actively scrolling up
1248
- < span class ="missing-if-branch " title ="else path not taken " > E</ span > if (!this.userScrolledUp) {
1260
+ < span class ="missing-if-branch " title ="else path not taken " > E</ span > if (( !this.userScrolledUp) || < span class =" branch-1 cbranch-no " title =" branch not covered " > input.scrollIntoView) </ span > {
1249
1261
this._messagesArea.lastElementChild.scrollIntoView();
1250
1262
}
1251
1263
@@ -1271,10 +1283,13 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1271
1283
}
1272
1284
1273
1285
1274
- messageAddNew(content = < span class ="branch-0 cbranch-no " title ="branch not covered " > "",</ span > userString = "user", align = "right", role = "user") {
1275
- return this.messageAddFull(
1276
- { content: content, userString: userString, align: align, role: role }
1286
+ messageAddNew(content = < span class ="branch-0 cbranch-no " title ="branch not covered " > "",</ span > userString = "user", align = "right", role = "user", scrollIntoView = false ) {
1287
+ let retvalue = this.messageAddFull(
1288
+ { content: content, userString: userString, align: align, role: role, scrollIntoView: scrollIntoView }
1277
1289
);
1290
+ // this.messageScrollToBottom();
1291
+ return retvalue;
1292
+
1278
1293
}
1279
1294
messageRemove(n) {
1280
1295
// use css selector to remove the message
@@ -1369,6 +1384,9 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1369
1384
return success;
1370
1385
}
1371
1386
1387
+ < span class ="fstat-no " title ="function not covered " > me</ span > ssageScrollToBottom() {
1388
+ < span class ="cstat-no " title ="statement not covered " > this._messagesArea.lastElementChild.scrollIntoView();</ span >
1389
+ }
1372
1390
// history functions
1373
1391
/**
1374
1392
*
@@ -1456,7 +1474,7 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1456
1474
* @returns {object} - Returns the version and license information for the library.
1457
1475
*/
1458
1476
static version() {
1459
- return { "version": "1.1.7 ", "license": "BSD-2", "url": "https://github/deftio/quikchat" };
1477
+ return { "version": "1.1.8 ", "license": "BSD-2", "url": "https://github/deftio/quikchat" };
1460
1478
}
1461
1479
1462
1480
/**
@@ -1531,7 +1549,7 @@ <h1><a href="index.html">All files</a> quikchat.js</h1>
1531
1549
< div class ='footer quiet pad2 space-top1 center small '>
1532
1550
Code coverage generated by
1533
1551
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
1534
- at 2024-08-26T08:13:18.649Z
1552
+ at 2024-10-20T06:34:06.704Z
1535
1553
</ div >
1536
1554
< script src ="prettify.js "> </ script >
1537
1555
< script >
0 commit comments