You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.8 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>重走长征路</title>
  6. <meta name="keywords" content="keyword1,keyword2,keyword3">
  7. <meta name="description" content="this is my page">
  8. <meta name="content-type" content="text/html; charset=UTF-8">
  9. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
  10. <script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
  11. <script src="js/style.js" type="text/javascript" charset="utf-8"></script>
  12. <link rel="stylesheet" type="text/css" href="css/style.css" />
  13. <link rel="stylesheet" type="text/css" href="css/index.css" />
  14. <script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript" charset="utf-8"></script>
  15. <script src="http://h5.qishichuangke.cn/html5/resources/js/czczl/wx-config.js?vs=1.1.2" type="text/javascript" charset="utf-8"></script>
  16. </head>
  17. <body>
  18. <div id="wrap">
  19. <!--加载页-->
  20. <div class="loading">
  21. <img src="img/loading.png" class="load" />
  22. <!--进度条-->
  23. <div class="flex-center">
  24. <h3>加载中...</h3>
  25. <span class="container">
  26. <span id="progressBar" class="h-100P bar"><text></text></span>
  27. </span>
  28. </div>
  29. </div>
  30. <!--开始页-->
  31. <div class="begin">
  32. <div id="begin"></div>
  33. </div>
  34. <!--第一关-->
  35. <div class="firstGame">
  36. <div id="game1"></div>
  37. </div>
  38. <!--第二关-->
  39. <div class="secondGame">
  40. <div id="game2"></div>
  41. </div>
  42. <!--第三关-->
  43. <div class="thirdGame">
  44. <div id="game3"></div>
  45. </div>
  46. <!--第四关-->
  47. <div class="fourGame">
  48. <div id="game4"></div>
  49. </div>
  50. <!--第五关-->
  51. <div class="fiveGame">
  52. <div id="game5"></div>
  53. </div>
  54. <!--成功-->
  55. <div class="win">
  56. <div id="success"></div>
  57. </div>
  58. </div>
  59. </body>
  60. </html>
  61. <script src="js/common.js" type="text/javascript" charset="utf-8"></script>
  62. <script>
  63. getJssdk();
  64. wx.ready(function() {
  65. getReady(); //执行接口
  66. })
  67. // alert('建议横屏使用!')
  68. $("#begin").load("begin.html");
  69. $("#game1").load("game1.html");
  70. // $("#game2").load("game2.html");
  71. // $("#game3").load("game3.html");
  72. // $("#game4").load("game4.html");
  73. // $("#game5").load("game5.html");
  74. // $("#success").load("success.html");
  75. $(document).ready(function() {
  76. //进度条
  77. var percentage = 0;
  78. var interval = setInterval(function() {
  79. if(percentage < 500) {
  80. percentage++;
  81. var widthTemp = (percentage / 5).toFixed(1) + '%';
  82. $('#progressBar').css('width', widthTemp);
  83. } else {
  84. clearInterval(interval);
  85. setTimeout(function() {
  86. clearInterval(interval)
  87. $('.flex-center').fadeOut(10)
  88. // $('.begin').fadeIn(100)
  89. $('.load').attr('src', 'img/begin.png')
  90. $('.begin').css('display', 'block')
  91. }, 500);
  92. }
  93. }, 10);
  94. });
  95. </script>