index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="Pragma" content="no-cache" />
  6. <meta http-equiv="Expires" content="-1" />
  7. <meta http-equiv="Cache-Control" content="no-cache" />
  8. <meta charset="utf-8">
  9. <title>狂摄iPhone 6</title>
  10. <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
  11. <meta name="apple-mobile-web-app-capable" content="yes" />
  12. <meta name="apple-touch-fullscreen" content="yes" />
  13. <meta name="full-screen" content="yes"/>
  14. <meta name="screen-orientation" content="portrait"/>
  15. <meta name="x5-fullscreen" content="true"/>
  16. <meta name="360-fullscreen" content="true"/>
  17. <link rel="stylesheet" href="css/style.css">
  18. <script src="js/all-in-one.js"></script>
  19. </head>
  20. <body>
  21. <div id="container" class="splash">
  22. <canvas id="canvas"><span>Browser does not support the canvas.</span></canvas>
  23. <div id="info"></div>
  24. </div>
  25. <div id="preload"></div>
  26. <script src="js/shanku_loading.js"></script>
  27. <script language=javascript>
  28. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  29. var thegameurl ="http://game.ikongzhong.cn/games/ksiphone6/";
  30. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  31. window.shareData = {
  32. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWFv03p0x0LUFjTPr1UIrvoc1Rwu9zgVysHCUSUta68LwD9wHia350QmMXmzia8jWE056sk4P8TynExQ/640",
  33. "timeLineLink": thegameurl,
  34. "tTitle": "狂摄iPhone 6",
  35. "tContent": "狂摄iPhone 6飞啊飞"
  36. };
  37. function goHome(){
  38. window.location=mebtnopenurl;
  39. }
  40. function clickMore(){
  41. if((window.location+"").indexOf("f=zf",1)>0){
  42. window.location = mebtnopenurl;
  43. }
  44. else{
  45. goHome();
  46. }
  47. }
  48. function dp_share(){
  49. document.getElementById("share").style.display="";
  50. }
  51. function dp_Ranking(){
  52. window.location=mebtnopenurl;
  53. }
  54. function showAd(){
  55. }
  56. function hideAd(){
  57. }
  58. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  59. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  60. WeixinJSBridge.invoke('sendAppMessage', {
  61. "img_url": window.shareData.imgUrl,
  62. "link": window.shareData.timeLineLink,
  63. "desc": window.shareData.tContent,
  64. "title": window.shareData.tTitle
  65. }, onShareComplete);
  66. });
  67. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  68. WeixinJSBridge.invoke('shareTimeline', {
  69. "img_url": window.shareData.imgUrl,
  70. "img_width": "640",
  71. "img_height": "640",
  72. "link": window.shareData.timeLineLink,
  73. "desc": window.shareData.tContent,
  74. "title": window.shareData.tTitle
  75. }, onShareComplete);
  76. });
  77. }, false);
  78. </script>
  79. <div id=share style="display: none">
  80. <img width=100% src="share.png"
  81. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  82. ontouchstart="document.getElementById('share').style.display='none';" />
  83. </div>
  84. <div style="display: none;">
  85. <script type="text/javascript">
  86. var myData = { gameid: "ksiphone6" };
  87. function dp_submitScore(score){
  88. myData.score =parseInt(score*100);
  89. myData.scoreName = "摄了"+score+"分";
  90. document.title ="我狂摄iphone6摄了"+score+"分,大伙快来当一回土豪吧!";
  91. window.shareData.tTitle = document.title;
  92. }
  93. function onShareComplete(res) {
  94. if (localStorage.myuid && myData.score != undefined) {
  95. setTimeout(function(){
  96. if (confirm("?")) {
  97. window.location = mebtnopenurl;
  98. }
  99. else {
  100. document.location.href = mebtnopenurl;
  101. }
  102. }, 500);
  103. }
  104. else {
  105. document.location.href = guanzhuurl ;
  106. }
  107. }
  108. </script>
  109. <div style="display: none;">
  110. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  111. </div>
  112. </body>
  113. </html>