index.html 4.4 KB

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