|
@@ -260,15 +260,19 @@
|
|
|
type: 'datetime'
|
|
|
});
|
|
|
let isWring = '<?php echo $output['count']['exceed_five'];?>';
|
|
|
- console.log('isWring', Number(isWring));
|
|
|
- var setTimer = '';
|
|
|
+ // console.log('isWring', Number(isWring));
|
|
|
+ let setTimer
|
|
|
+ let num
|
|
|
if (Number(isWring) > 0) {
|
|
|
- clearInterval(setTimer)
|
|
|
- setTimer = setInterval(function() {
|
|
|
+ window.clearTimeout(setTimer)
|
|
|
+ setTimer = setTimeout(function() {
|
|
|
$("#auto")[0].play();
|
|
|
- window.location.reload();
|
|
|
- console.log(22);
|
|
|
+ // $("#auto").attr("src",'<?php echo RESOURCE_SITE_URL; ?>/warning.mp3');
|
|
|
}, 5000);
|
|
|
+ window.clearTimeout(num)
|
|
|
+ num = setTimeout(function() {
|
|
|
+ window.location.reload();
|
|
|
+ }, 6000);
|
|
|
}
|
|
|
});
|
|
|
function hCopyChannel(e) {
|