index.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport"
  6. content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no, minimal-ui">
  7. <meta name="copyright" content="Copyright (c) ijinshan.com">
  8. <meta name="format-detection" content="telephone=no">
  9. <title>空中传媒</title>
  10. <link rel="stylesheet" type="text/css" href="css/min.css">
  11. </head>
  12. <body>
  13. <div id="wrap">
  14. <div class="title"></div>
  15. <div class="main">
  16. <div class="shadow"></div>
  17. <div class="cola"></div>
  18. <div class="cap">
  19. <div class="tomatina"></div>
  20. </div>
  21. <div class="boom"></div>
  22. </div>
  23. <div class="progress_box">
  24. <div class="progress"></div>
  25. </div>
  26. <span class="bf_2">0%</span>
  27. <div class="ready"></div>
  28. <div class="progress_num">
  29. <span class="time">00.000</span><span class="bf"
  30. style="font-size: 16px">100%</span>
  31. </div>
  32. <div class="layer">
  33. <div class="confirm client_pop_show">
  34. <p>
  35. 我用了
  36. <span class="red" id="t"></span>秒,摇爆可乐,超级爽!击败了全国
  37. <span class="red" id="b">90%</span>燥热的人,看谁比我快?
  38. </p>
  39. <div class="layer_btns">
  40. <a href="javascript:;" id="tryagain">再摇一次</a><a
  41. href="javascript:;" onClick="clickMore();">更多游戏</a>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <audio src="images/fizzing.mp3" id="fizzing" preload></audio>
  47. <audio src="images/shake.mp3" id="shake" preload></audio>
  48. <script src="js/shake.min.js"></script>
  49. <script language=javascript>
  50. var mebtnopenurl = 'http://game.ikongzhong.cn';
  51. window.shareData = {
  52. "imgUrl": "http://game.ikongzhong.cn/icon/qmykl.png",
  53. "timeLineLink": "http://game.ikongzhong.cn/games/qmykl/index.html",
  54. "tTitle": "全民摇可乐-空中传媒",
  55. "tContent": "全民摇可乐-空中传媒"
  56. };
  57. function goHome(){
  58. window.location=mebtnopenurl;
  59. }
  60. function clickMore(){
  61. if((window.location+"").indexOf("zf",1)>0){
  62. window.location = "http://game.ikongzhong.cn/games/qmykl";
  63. }
  64. else{
  65. goHome();
  66. }
  67. }
  68. function dp_share(){
  69. document.title ="全民摇可乐,摇不停,爽到爆,快乐不停歇,一起来摇摆!";
  70. document.getElementById("share").style.display="";
  71. window.shareData.tTitle = document.title;
  72. }
  73. function dp_Ranking(){
  74. window.location=mebtnopenurl;
  75. }
  76. function showAd(){
  77. }
  78. function hideAd(){
  79. }
  80. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  81. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  82. WeixinJSBridge.invoke('sendAppMessage', {
  83. "img_url": window.shareData.imgUrl,
  84. "link": window.shareData.timeLineLink,
  85. "desc": window.shareData.tContent,
  86. "title": window.shareData.tTitle
  87. }, onShareComplete);
  88. });
  89. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  90. WeixinJSBridge.invoke('shareTimeline', {
  91. "img_url": window.shareData.imgUrl,
  92. "img_width": "640",
  93. "img_height": "640",
  94. "link": window.shareData.timeLineLink,
  95. "desc": window.shareData.tContent,
  96. "title": window.shareData.tTitle
  97. }, onShareComplete);
  98. });
  99. }, false);
  100. </script>
  101. <div id=share style="display: none">
  102. <img width=100% src="http://game.ikongzhong.cn/games/qmykl/share.png"
  103. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  104. ontouchstart="document.getElementById('share').style.display='none';" />
  105. </div>
  106. <div style="display: none;">
  107. <script type="text/javascript">
  108. var myData = { gameid: "qmykl" };
  109. window.shareData.timeLineLink ="http://game.ikongzhong.cn/games/qmykl";
  110. function dp_submitScore(score,percent){
  111. myData.score = parseInt(score*1000);
  112. myData.scoreName = "摇可乐用时"+score+"秒";
  113. if(score>0){
  114. if (confirm("我仅用了"+score+"秒摇可乐,征服了"+percent+"%的人们,不摇一摇怎么够爽!")){
  115. dp_share();
  116. }
  117. }
  118. }
  119. function onShareComplete(res) {
  120. if (localStorage.myuid && myData.score != undefined) {
  121. setTimeout(function(){
  122. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  123. window.location = "http://game.ikongzhong.cn";
  124. }
  125. else {
  126. document.location.href = mebtnopenurl;
  127. }
  128. }, 500);
  129. }
  130. else {
  131. document.location.href = mebtnopenurl;
  132. }
  133. }
  134. </script>
  135. </body>
  136. </html>