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.

92 lines
2.5 KiB

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