<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-touch-fullscreen" content="yes" />
<div id='wx_pic' style='margin:0 auto;display:none;'>
<img src='photo.jpg' />
</div>
<title>双十二抢金币抵现金卷</title>
<style type="text/css">
body, div, canvas
{
image-rendering: optimizeSpeed;
-webkit-image-rendering: optimizeSpeed;
-webkit-interpolation-mode: nearest-neighbor;
}
body{padding:0; margin:0;font-size:12px;background-color:#eca22e;}
body, html{height: 100%;}
#outer{height:100%; overflow:hidden; position:relative; width:100%;}
#outer[id]{display:table; position:static;}
#middle{position:absolute; top:50%;} /* for ie only*/
#middle[id]{display:table-cell; vertical-align:middle; position:static;}
</style>
<script type="text/javascript" src="js/quark.base-1.0.0.alpha.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<!-- <script type="text/javascript" src="src/Audio.js"></script> -->
<script type="text/javascript" src="src/Orientation.js"></script>
<script type="text/javascript" src="src/Button.js"></script>
<script type="text/javascript" src="src/main.js"></script>
<script type="text/javascript" src="src/Peach.js"></script>
<script type="text/javascript" src="src/Monkey.js"></script>
<script type="text/javascript" src="src/Num.js"></script>
</head>
<body>
<div id="outer">
<div id="middle">
<div id="container" style="position:relative;top:-50%;width:100%;height:100%;margin:0 auto;">
</div>
</div>
</div>
<audio src="images/a.mp3" preload="auto" loop="true"></audio>
<script>
var imgUrl = "http://game.ikongzhong.cn/game/shuangshiyi/images/peach.png";
var lineLink = "http://game.ikongzhong.cn/game/shuangshiyi/";
var descContent = 双十二抢金币抵现金卷';
var shareTitle = 双十二抢金币抵现金卷';
var appid = '';
function shareFriend() {
WeixinJSBridge.invoke('sendAppMessage',{
"appid": appid,
"img_url": imgUrl,
"img_width": "200",
"img_height": "200",
"link": lineLink,
"desc": descContent,
"title": shareTitle
}, function(res) {
//_report('send_msg', res.err_msg);
})
}
function shareTimeline() {
WeixinJSBridge.invoke('shareTimeline',{
"img_url": imgUrl,
"img_width": "200",
"img_height": "200",
"link": lineLink,
"desc": descContent,
"title": shareTitle
}, function(res) {
//_report('timeline', res.err_msg);
});
}
function shareWeibo() {
WeixinJSBridge.invoke('shareWeibo',{
"content": descContent,
"url": lineLink,
}, function(res) {
//_report('weibo', res.err_msg);
});
}
// 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
// 发送给好友
WeixinJSBridge.on('menu:share:appmessage', function(argv){
shareFriend();
});
// 分享到朋友圈
WeixinJSBridge.on('menu:share:timeline', function(argv){
shareTimeline();
});
// 分享到微博
WeixinJSBridge.on('menu:share:weibo', function(argv){
shareWeibo();
});
}, false);
/*
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "images/a.mp3"
}).jPlayer("play");
},
swfPath: "js",
supplied: "mp3",
loop:"true"
});
*/
</script>
</body>
</html>