We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88c3f73 commit 00a68d8Copy full SHA for 00a68d8
html/chat-room-tmp/chat-room-tmp.html
@@ -180,6 +180,19 @@
180
}//room
181
182
183
+ rd.attr['poll-time'] = function(){
184
+
185
+ if(!target.hasAttribute('poll-time'))return;
186
+ var str = target.getAttribute('poll-time');
187
+ if(int(str)){
188
+ var num = Number(str);
189
+ if(num<poll.min)num = poll.min;
190
+ polltime = num;
191
+ }
192
193
+ }//poll-time
194
195
196
//:
197
198
@@ -493,6 +506,7 @@
493
506
494
507
post.update.initial = function(){
495
508
509
+ if(!Number.isFinite(poll.time))return;
496
510
post.timer = setTimeout(post.update,poll.time);
497
511
498
512
}//initial
@@ -579,6 +593,13 @@
579
593
580
594
581
595
596
+ //:
597
598
599
+ function int(str){return (/^\d+$/.test(str))}
600
601
602
582
603
583
604
584
605
0 commit comments