index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html class="SG-game-show" style="background:none;background-color:transparent; width:100%;" manifest="manifest.mf">
  3. <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8">
  4. <script type="text/javascript">
  5. var SpilGamesBrandTimer = +new Date(),
  6. _SPTimer={w:{},start:function(a){this.w[(a||"_")]=+new Date()},end:function(a){window._gaq=window._gaq||[],a=a||"_";if(this.w[a]){
  7. }}};
  8. _SPTimer.start('pageLoad');
  9. </script>
  10. <meta http-equiv="Content-Type" content="text/html">
  11. <meta name="apple-mobile-web-app-capable" content="yes">
  12. <meta name="robots" content="index,follow">
  13. <meta name="apple-touch-fullscreen" content="yes">
  14. <meta name="description" content="">
  15. <title>开心消消乐-空中传媒</title>
  16. <style type="text/css"> * { padding: 0px; margin: 0px; cursor: default; } body { font: 12px/20px Palatino; }</style>
  17. <!--<script type="text/javascript">document.write('<script type="text/javascript" src="../resource/js/resource_loader.js?ver='+Math.random()+'"><\/script>')</script>-->
  18. </head>
  19. <body>
  20. <div id="spilgames-root"></div>
  21. <script type="text/javascript" src="SeaTreasureMatch_files/game.min.js"></script>
  22. <script>
  23. function dp_Ranking() {
  24. document.location.href = "http://game.ikongzhong.cn/";
  25. }
  26. </script>
  27. <div id="share" style="display: none">
  28. <img width="100%" src="bitmap/share.png" style="position: fixed; z-index: 9999; top: 0; left: 0; display: " ontouchstart="document.getElementById(&#39;share&#39;).style.display=&#39;none&#39;;">
  29. </div>
  30. <script>
  31. var mebtnopenurl = "http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  32. var tit = "";
  33. var DFW = {
  34. appId: "",
  35. TLImg: "http://game.ikongzhong.cn/icon/kaixinlian.jpg",
  36. url: "http://game.ikongzhong.cn/games/kaixinlian/",
  37. title: "开心消消乐-多多游戏",
  38. desc: "我消,我消,我消...!"
  39. };
  40. var onBridgeReady = function () {
  41. WeixinJSBridge.on('menu:share:appmessage', function (argv) {
  42. WeixinJSBridge.invoke('sendAppMessage', {
  43. "appid": DFW.appId,
  44. "img_url": DFW.TLImg,
  45. "img_width": "120",
  46. "img_height": "120",
  47. "link": DFW.url,
  48. "title": DFW.title + tit,
  49. "desc": DFW.desc
  50. }
  51. );
  52. });
  53. WeixinJSBridge.on('menu:share:timeline', function (argv) {
  54. WeixinJSBridge.invoke('shareTimeline', {
  55. "appid": DFW.appId,
  56. "img_url": DFW.TLImg,
  57. "img_width": "120",
  58. "img_height": "120",
  59. "link": DFW.url,
  60. "title": DFW.title + tit,
  61. "desc": DFW.desc
  62. }
  63. );
  64. });
  65. };
  66. if (document.addEventListener) {
  67. document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
  68. } else if (document.attachEvent) {
  69. document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
  70. document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
  71. }
  72. function do_share(score) {
  73. document.title = "我获得了" + score + "分,一起来消星星吧!";
  74. document.getElementById("share").style.display = "";
  75. window.DFW.title = document.title;
  76. }
  77. function dp_submitScore(level,score) {
  78. //alert("你获得" + score + "分");
  79. if (score > 5000) {
  80. if (confirm("你获得了" + score + " 要不要通知下小伙伴们呢?")) {
  81. do_share(score);
  82. }
  83. }
  84. }
  85. </script>
  86. <div style="display: none;"><script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></div>
  87. </body></html>