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.

99 lines
2.7 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
  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://h5.qishichuangke.cn/html5/resources/js/czczl/wx-config.js?vs=1.1.0" type="text/javascript" charset="utf-8"></script>
  15. </head>
  16. <body>
  17. <div id="wrap">
  18. <!--加载页-->
  19. <div class="loading">
  20. <img src="img/loading.png" class="load" />
  21. <!--进度条-->
  22. <div class="flex-center">
  23. <h3>加载中...</h3>
  24. <span class="container">
  25. <span id="progressBar" class="h-100P bar"><text></text></span>
  26. </span>
  27. </div>
  28. </div>
  29. <!--开始页-->
  30. <div class="begin">
  31. <div id="begin"></div>
  32. </div>
  33. <!--第一关-->
  34. <div class="firstGame">
  35. <div id="game1"></div>
  36. </div>
  37. <!--第二关-->
  38. <div class="secondGame">
  39. <div id="game2"></div>
  40. </div>
  41. <!--第三关-->
  42. <div class="thirdGame">
  43. <div id="game3"></div>
  44. </div>
  45. <!--第四关-->
  46. <div class="fourGame">
  47. <div id="game4"></div>
  48. </div>
  49. <!--第五关-->
  50. <div class="fiveGame">
  51. <div id="game5"></div>
  52. </div>
  53. <!--成功-->
  54. <div class="win">
  55. <div id="success"></div>
  56. </div>
  57. </div>
  58. </body>
  59. </html>
  60. <script src="js/common.js" type="text/javascript" charset="utf-8"></script>
  61. <script>
  62. getJssdk();
  63. wx.ready(function() {
  64. getReady(); //执行接口
  65. })
  66. // alert('建议横屏使用!')
  67. $("#begin").load("begin.html");
  68. $("#game1").load("game1.html");
  69. // $("#game2").load("game2.html");
  70. // $("#game3").load("game3.html");
  71. // $("#game4").load("game4.html");
  72. // $("#game5").load("game5.html");
  73. // $("#success").load("success.html");
  74. $(document).ready(function() {
  75. //进度条
  76. var percentage = 0;
  77. var interval = setInterval(function() {
  78. if(percentage < 500) {
  79. percentage++;
  80. var widthTemp = (percentage / 5).toFixed(1) + '%';
  81. $('#progressBar').css('width', widthTemp);
  82. } else {
  83. clearInterval(interval);
  84. setTimeout(function() {
  85. clearInterval(interval)
  86. $('.flex-center').fadeOut(10)
  87. // $('.begin').fadeIn(100)
  88. $('.load').attr('src', 'img/begin.png')
  89. $('.begin').css('display', 'block')
  90. }, 500);
  91. }
  92. }, 10);
  93. });
  94. </script>