index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=480,user-scalable=yes,uc-user-scalable=yes,target-densitydpi=high-dpi"/>
  6. <meta name="apple-mobile-web-app-capable" content="yes" />
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  8. <script language="javascript" type="text/javascript" src="jj.js"></script>
  9. <script language="javascript" type="text/javascript" src="min.js"></script>
  10. <title>新疆微电影微信小游戏</title>
  11. <style>
  12. body{margin:0px; background-color:#434243; color:#6A6A6A;}
  13. .bandiv{float:left; width:100%; background-color:#DBD1BB;}
  14. .bandiv div{padding:10px; text-align:left;}
  15. </style>
  16. </head>
  17. <body onload="main()" lang="http://game.ikongzhong.cn/" id="0">
  18. <div style="text-align:center;">
  19. <canvas id="jsGameScreen">
  20. </canvas>
  21. </div>
  22. <script language=javascript>
  23. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  24. window.shareData = {
  25. "imgUrl": "./1.png",
  26. "timeLineLink": "http://game.ikongzhong.cn/games/mingxuanyixian/",
  27. "tTitle": "命悬一线-空中传媒小游戏",
  28. "tContent": "用绳命在玩的游戏"
  29. };
  30. function dp_submitScore(m,t){
  31. if(t>1000){
  32. alert("不错哦!得了"+t+"分!");
  33. dp_share(t);
  34. }
  35. }
  36. function dp_share(t){
  37. document.title = t+"分!吓死我了,玩完这个《命悬一线》我得了恐高症!空中传媒小游戏";
  38. document.getElementById("share").style.display="";
  39. window.shareData.tTitle = document.title;
  40. }
  41. function dp_Ranking(){
  42. //alert("到更多");
  43. window.location=mebtnopenurl;
  44. }
  45. function showAd(){
  46. }
  47. function hideAd(){
  48. }
  49. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  50. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  51. WeixinJSBridge.invoke('sendAppMessage', {
  52. "img_url": window.shareData.imgUrl,
  53. "link": window.shareData.timeLineLink,
  54. "desc": window.shareData.tContent,
  55. "title": window.shareData.tTitle
  56. }, function(res) {
  57. document.location.href = mebtnopenurl;
  58. })
  59. });
  60. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  61. WeixinJSBridge.invoke('shareTimeline', {
  62. "img_url": window.shareData.imgUrl,
  63. "img_width": "640",
  64. "img_height": "640",
  65. "link": window.shareData.timeLineLink,
  66. "desc": window.shareData.tContent,
  67. "title": window.shareData.tTitle
  68. }, function(res) {
  69. document.location.href = mebtnopenurl;
  70. });
  71. });
  72. }, false);
  73. </script>
  74. <div id='share' style="display:none">
  75. </div>
  76. </body>
  77. </html>