index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>每日游戏</title>
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  8. <meta name="apple-mobile-web-app-capable" content="yes"/>
  9. <meta name="full-screen" content="true"/>
  10. <meta name="screen-orientation" content="portrait"/>
  11. <meta name="x5-fullscreen" content="true"/>
  12. <meta name="360-fullscreen" content="true"/>
  13. <style>
  14. body {
  15. text-align: center;
  16. background: #000000;
  17. padding: 0;
  18. border: 0;
  19. margin: 0;
  20. height: 100%;
  21. }
  22. html {
  23. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  24. }
  25. .sbgshow{display:block;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:30px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  26. .sbgshow .arron{ position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(img/arron.png) no-repeat; background-size:100px 100px;}
  27. .sbgshow p{padding-top:78px;}
  28. .sbg{display:none;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:26px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  29. .sbg .arron{ position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(img/arron.png) no-repeat; background-size:100px 100px;}
  30. .sbg p{padding-top:78px;}
  31. #myfav{display: none;}
  32. </style>
  33. <style type="text/css">.app2{position:fixed;z-index:1000;left:0;top:0; width:100%;padding:5px 12px;color:#fff;background:rgba(0,0,0,0.5);}.app2 .a{font-size:18px;font-weight:bold;padding-bottom:4px;}.app2 .b{font-size:10px;}.app2 .load{float:left;background:#f66;color:#fff;font-size:16px;margin-top:4px;padding:7px 14px;border-radius:5px;}
  34. </style>
  35. </head>
  36. <body>
  37. <div style="display:inline-block;width:100%; height:100%;margin: 0 auto; background: black; position:relative;"
  38. id="gameDiv">
  39. <canvas id="gameCanvas" width="480" height="800" style="background-color: #000000"></canvas>
  40. </div>
  41. <script>var document_class = "GameApp";</script><!--这部分内容在编译时会被替换,要修改文档类,请到工程目录下的egretProperties.json内编辑。-->
  42. <script src="js/jquery.min.js"></script>
  43. <script src="js/egret_loader.js"></script>
  44. <script src="js/game-min-07263.js"></script>
  45. <script type="text/javascript">
  46. egret_h5.startGame();
  47. </script>
  48. <script language=javascript>
  49. var mebtnopenurl = 'http://game.ikongzhong.cn';
  50. window.shareData = {
  51. "imgUrl": "http://game.ikongzhong.cn/icon/blglez.png",
  52. "timeLineLink": "http://game.ikongzhong.cn/games/blglez",
  53. "tTitle": "帮龙叔捞儿子-每日游戏",
  54. "tContent": "帮龙叔捞儿子-每日游戏"
  55. };
  56. function goHome(){
  57. window.location=mebtnopenurl;
  58. }
  59. function clickMore(){
  60. if((window.location+"").indexOf("zf",1)>0){
  61. window.location = "http://game.ikongzhong.cn/games/blglez";
  62. }
  63. else{
  64. goHome();
  65. }
  66. }
  67. function dp_share(){
  68. if(myData.iswin==1){
  69. document.title ="我用"+myData.score+"颗药拯救了房祖名和柯震东!抵制毒品的决心超过了全国"+(100-myData.score)+"%的人!";
  70. }else{
  71. document.title ="捞儿子-拯救房祖名和柯震东!苦海无涯,回头是岸!"
  72. }
  73. document.getElementById("share").style.display="";
  74. window.shareData.tTitle = document.title;
  75. }
  76. function dp_Ranking(){
  77. window.location=mebtnopenurl;
  78. }
  79. function showAd(){
  80. }
  81. function hideAd(){
  82. }
  83. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  84. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  85. WeixinJSBridge.invoke('sendAppMessage', {
  86. "img_url": window.shareData.imgUrl,
  87. "link": window.shareData.timeLineLink,
  88. "desc": window.shareData.tContent,
  89. "title": window.shareData.tTitle
  90. }, onShareComplete);
  91. });
  92. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  93. WeixinJSBridge.invoke('shareTimeline', {
  94. "img_url": window.shareData.imgUrl,
  95. "img_width": "640",
  96. "img_height": "640",
  97. "link": window.shareData.timeLineLink,
  98. "desc": window.shareData.tContent,
  99. "title": window.shareData.tTitle
  100. }, onShareComplete);
  101. });
  102. }, false);
  103. </script>
  104. <div id=share style="display: none">
  105. <img width=100% src="http://game.ikongzhong.cn/games/blglez/share.png"
  106. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  107. ontouchstart="document.getElementById('share').style.display='none';" />
  108. </div>
  109. <div style="display: none;">
  110. <script type="text/javascript">
  111. var myData = { gameid: "blglez" };
  112. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  113. window.shareData.timeLineLink ="http://game.ikongzhong.cn/games/blglez";
  114. function dp_submitScore(score,iswin){
  115. myData.score = score;
  116. myData.iswin = iswin;
  117. myData.scoreName ="共同"+score+"颗药";
  118. if(iswin==1){
  119. if (confirm("你用了"+score+"颗药拯救了房祖名与柯震东,让小伙伴们也来拯救吧!")){
  120. dp_share();
  121. }
  122. }
  123. }
  124. function onShareComplete(res) {
  125. if (localStorage.myuid && myData.score != undefined&&myData.iswin==1) {
  126. setTimeout(function(){
  127. if (confirm("要将成绩提交到每日游戏排行榜吗?")) {
  128. window.location = "http://game.ikongzhong.cn/";
  129. }
  130. else {
  131. document.location.href = mebtnopenurl;
  132. }
  133. }, 500);
  134. }
  135. else {
  136. document.location.href = mebtnopenurl;
  137. }
  138. }
  139. </script>
  140. <div style="display: none;">
  141. <script type="text/javascript">var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ae524064813b8dc07ece5ce724a7b04' type='text/javascript'%3E%3C/script%3E"));</script>
  142. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_2947366'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D2947366' type='text/javascript'%3E%3C/script%3E"));</script>
  143. </div>
  144. </body>
  145. </html>