Skip to content

Commit 00a68d8

Browse files
save file
1 parent 88c3f73 commit 00a68d8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

html/chat-room-tmp/chat-room-tmp.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@
180180
}//room
181181

182182

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+
183196
//:
184197

185198

@@ -493,6 +506,7 @@
493506

494507
post.update.initial = function(){
495508

509+
if(!Number.isFinite(poll.time))return;
496510
post.timer = setTimeout(post.update,poll.time);
497511

498512
}//initial
@@ -579,6 +593,13 @@
579593

580594

581595

596+
//:
597+
598+
599+
function int(str){return (/^\d+$/.test(str))}
600+
601+
602+
582603
//:
583604

584605

0 commit comments

Comments
 (0)