Commit 196229d4 by doszhang

dos

parent c57fcd5e
......@@ -98,7 +98,7 @@ const guardian = [
$(document).ready(function () {
var vConsole = new VConsole();
console.log('ok')
// audioAutoPlay('music')
audioAutoPlay('music')
$('.bg').css({
'height': fixHeight + 'px'
});
......@@ -131,26 +131,26 @@ $(document).ready(function () {
})
});
// function audioAutoPlay(id) {
// var audio = document.getElementById(id);
// if (window.WeixinJSBridge) {
// WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// audio.play();
// }, false);
// } else {
// document.addEventListener("WeixinJSBridgeReady", function () {
// WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// // alert(4)
// audio.play();
// });
// }, false);
// }
// audio.play();
// return false;
// }
function audioAutoPlay(id) {
var audio = document.getElementById(id);
if (window.WeixinJSBridge) {
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
audio.play();
}, false);
} else {
document.addEventListener("WeixinJSBridgeReady", function () {
WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
// alert(4)
audio.play();
});
}, false);
}
audio.play();
return false;
}
function showItem() {
if (showItemStatus) {
......
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