index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  6. <meta name="apple-mobile-web-app-capable" content="yes"/>
  7. <meta name="full-screen" content="true"/>
  8. <meta name="screen-orientation" content="portrait"/>
  9. <meta name="x5-fullscreen" content="true"/>
  10. <meta name="360-fullscreen" content="true"/>
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  12. <meta name="apple-mobile-web-app-title" content="我来帮老师阅卷!">
  13. <link rel="apple-touch-icon" href="icon.png" />
  14. <link rel="shortcut icon" href="icon.png" />
  15. <link rel="icon" href="icon.png" /> <div id='wx_pic' style='margin:0 auto;display:none;'> <img src='photo.jpg' /> </div>
  16. <title>我来帮老师阅卷!</title>
  17. <meta name="keywords" content="我来帮老师阅卷!" />
  18. <meta name="description" content="我来帮老师阅卷!" />
  19. <style>
  20. body {
  21. text-align: center;
  22. background: #000000;
  23. padding: 0;
  24. border: 0;
  25. margin: 0;
  26. height: 100%;
  27. }
  28. html {
  29. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  30. overflow: hidden;
  31. }
  32. div, canvas {
  33. display:block;
  34. position:absolute;
  35. margin: 0 auto;
  36. padding: 0;
  37. border: 0;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div style="position:relative;" id="gameDiv"></div>
  43. <audio id="truemusic" src="audio/true.wav" preload></audio>
  44. <script>var document_class = "Main";</script>
  45. <script src="launcher/egret_require.js?ver"></script>
  46. <script src="launcher/egret_loader.js?ver"></script>
  47. <script src="launcher/game-min.js?ver"></script>
  48. <script>
  49. egret_h5.startGame();
  50. </script>
  51. <script language=javascript>
  52. var mebtnopenurl = 'http://game.ikongzhong.cn';
  53. window.shareData = {
  54. "imgUrl": "http://game.ikongzhong.cn/game/fkqbg/fkqbg.jpg",
  55. "timeLineLink": "http://game.ikongzhong.cn/game/fkqbg",
  56. "tTitle": "我来帮老师阅卷!",
  57. "tContent": "我来帮老师阅卷!!"
  58. };
  59. function showshare(){
  60. document.getElementById("share").style.display = "";
  61. };
  62. function clickMore(){
  63. window.location = mebtnopenurl;
  64. };
  65. var imgUrl = window.shareData.imgUrl;
  66. var lineLink = window.shareData.timeLineLink;
  67. var descContent = window.shareData.tContent;
  68. var shareTitle = window.shareData.tTitle;
  69. function shareFriend() {
  70. WeixinJSBridge.invoke('sendAppMessage',{
  71. "img_url": imgUrl,
  72. "img_width": "200",
  73. "img_height": "200",
  74. "link": lineLink,
  75. "desc": descContent,
  76. "title": shareTitle
  77. }, function(res) {
  78. //_report('send_msg', res.err_msg);
  79. })
  80. }
  81. function shareTimeline() {
  82. WeixinJSBridge.invoke('shareTimeline',{
  83. "img_url": imgUrl,
  84. "img_width": "200",
  85. "img_height": "200",
  86. "link": lineLink,
  87. "desc": shareTitle,
  88. "title": descContent
  89. }, function(res) {
  90. //_report('timeline', res.err_msg);
  91. });
  92. }
  93. function shareWeibo() {
  94. WeixinJSBridge.invoke('shareWeibo',{
  95. "content": descContent,
  96. "url": lineLink,
  97. }, function(res) {
  98. //_report('weibo', res.err_msg);
  99. });
  100. }
  101. // 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
  102. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  103. // 发送给好友
  104. WeixinJSBridge.on('menu:share:appmessage', function(argv){
  105. shareFriend();
  106. });
  107. // 分享到朋友圈
  108. WeixinJSBridge.on('menu:share:timeline', function(argv){
  109. shareTimeline();
  110. });
  111. // 分享到微博
  112. WeixinJSBridge.on('menu:share:weibo', function(argv){
  113. shareWeibo();
  114. });
  115. }, false);
  116. function dp_share(a,b){
  117. if(a>0){
  118. document.title = window.shareData.tContent = descContent ='教师节,老师辛苦了,我帮他阅卷修改了'+a+'次错别字,是不是很棒呢,试试!';
  119. }
  120. };
  121. </script>
  122. <div id=share style="display: none">
  123. <img width=100% src="share.png" style="position: fixed; z-index: 9999; top: 0; left: 0; display: " ontouchstart="document.getElementById('share').style.display='none';" onClick="document.getElementById('share').style.display='none';" />
  124. </div>
  125. </body>
  126. </html>