mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
add new menu
This commit is contained in:
+10
-5
@@ -488,14 +488,19 @@ function clearNotice(){
|
||||
}
|
||||
}
|
||||
|
||||
var playHandle;
|
||||
|
||||
function autoPlay(){
|
||||
console.log("autoPlay")
|
||||
var myAuto = document.getElementById('myaudio');
|
||||
myAuto.play();
|
||||
setTimeout(function(){
|
||||
myAuto.pause();
|
||||
console.log("autoPlay");
|
||||
playHandle &&(clearTimeout(playHandle), playHandle=null);
|
||||
playHandle = setTimeout(function(){
|
||||
var myAuto = document.getElementById('myaudio');
|
||||
myAuto.play();
|
||||
setTimeout(function(){
|
||||
myAuto.pause();
|
||||
}, 1000);
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user