Commit c34b6b59 by doszhang

dos

parent 71210cf4
......@@ -96,7 +96,7 @@ const guardian = [
]
$(document).ready(function () {
audioAutoPlay('music')
// audioAutoPlay('music')
$('.bg').css({
'height': fixHeight + 'px'
});
......@@ -129,26 +129,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