Commit 48a0c5d0 by libai

测试

parent f5057c07
Showing with 16 additions and 4 deletions
......@@ -31,7 +31,7 @@
</head>
<body style="background: #F0F1F4;">
<body id="body-click" style="background: #F0F1F4;">
<div class="big-room-box">
<div class="neck-nav">
<div class="neck-nav-content">
......@@ -1480,11 +1480,23 @@ $(function () {
$("#videoElement").prop('muted', false)
flvPlayer.play()
})
const btn = document.getElementById('body-click');
btn.onclick = function () { //
flvPlayer.play()
};
setTimeout(() => {
var bodyBtn=document.getElementsByTagName("body")
bodyBtn.click()
simulateClick();
}, 1000);
function simulateClick() {
const event = new MouseEvent('click', {
view: window,
bubbles: true,
cancelable: true
});
btn.dispatchEvent(event);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment