guide.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Hello MUI</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" href="../css/mui.min.css">
  10. <style>
  11. #close1 {
  12. position: absolute;
  13. width: 160px;
  14. left: 50%;
  15. margin-left: -80px;
  16. bottom: 15%;
  17. padding: 10px;
  18. color: #fff;
  19. border-color: #fff;
  20. }
  21. .item-logo {
  22. width: 100%;
  23. height: 100%;
  24. position: relative;
  25. }
  26. .item-logo a {
  27. width: 200px;
  28. height: 200px;
  29. display: block;
  30. border: 1px solid #FFFFFF;
  31. border-color: rgba(255, 255, 255, 0.5);
  32. text-align: center;
  33. line-height: 200px;
  34. border-radius: 50%;
  35. font-size: 40px;
  36. color: #fff;
  37. position: absolute;
  38. top: 15%;
  39. left: 50%;
  40. margin-left: -100px;
  41. }
  42. .animate {
  43. position: absolute;
  44. left: 0;
  45. bottom: 15%;
  46. width: 100%;
  47. color: #fff;
  48. display: -moz-box;
  49. }
  50. .animate h2 {
  51. text-align: center;
  52. margin-bottom: 20px;
  53. }
  54. .animate li {
  55. width: 50%;
  56. height: 30px;
  57. line-height: 30px;
  58. list-style: none;
  59. font-size: 16px;
  60. text-align: right;
  61. }
  62. .animate li:nth-child(3) {
  63. text-align: left;
  64. float: right;
  65. }
  66. .animated {
  67. -webkit-animation-duration: 1s;
  68. -webkit-animation-play-state: paused;
  69. -webkit-animation-fill-mode: both;
  70. }
  71. .guide-show .bounceInDown {
  72. -webkit-animation-name: bounceInDown;
  73. -webkit-animation-play-state: running;
  74. -webkit-animation-delay: 1s;
  75. display: block;
  76. }
  77. .guide-show .bounceInLeft {
  78. -webkit-animation-name: bounceInLeft;
  79. display: block;
  80. -webkit-animation-play-state: running;
  81. }
  82. .guide-show .bounceInRight {
  83. -webkit-animation-name: bounceInRight;
  84. display: block;
  85. -webkit-animation-play-state: running;
  86. -webkit-animation-delay: 0.5s;
  87. }
  88. </style>
  89. </head>
  90. <body style="background-color: white;">
  91. <div id="slider" class="mui-slider mui-fullscreen">
  92. <div class="mui-slider-group">
  93. <!-- 第一张 -->
  94. <!--<div class="mui-slider-item" style="text-align: center;">
  95. <div style="top:15%;position: relative;font-size: 2em;color: #DAA520;letter-spacing:2px;">
  96. <div>全球好课</div>
  97. <div style="margin-top:3px">尽在指间</div>
  98. </div>
  99. <div style="width:100%;">
  100. <img style="width:90%;top: 140px;position: relative;" src="../images/guide/01_02.jpg" />
  101. </div>
  102. <div style="bottom: 30px;position: absolute;width:100%;">
  103. <img style="width:40%;" src="../images/guide/01_05.jpg" />
  104. </div>
  105. </div>-->
  106. <!-- 第二张 -->
  107. <!--<div class="mui-slider-item" style="text-align: center;">
  108. <div style="top:10%;position: relative;font-size: 2em;color: #DAA520;">
  109. 追求梦想的道路很漫长
  110. </div>
  111. <div style="width:100%;">
  112. <img style="width:90%;top: 140px;position: relative;" src="../images/guide/02_02.jpg" />
  113. </div>
  114. <div style="bottom: 30px;position: absolute;width:100%;">
  115. <img style="width:40%;" src="../images/guide/01_05.jpg" />
  116. </div>
  117. </div>-->
  118. <!-- 第三张 -->
  119. <div class="mui-slider-item" style="text-align: center;">
  120. <div style="top: 60px;position: absolute;width:100%;">
  121. <img style="width:40%;" src="../images/logo/logo.png" />
  122. </div>
  123. <div style="top:50%;position: relative;font-size: 2em;color: #DAA520;">
  124. 这一刻,你不愿再等待
  125. </div>
  126. <div style="width: 100%;position: absolute;bottom: 40px;">
  127. <button style="" id='close' class="mui-btn mui-btn-warning mui-btn-outlined">立即体验</button>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="mui-slider-indicator">
  132. <div class="mui-indicator mui-active"></div>
  133. <!--<div class="mui-indicator"></div>-->
  134. <!--<div class="mui-indicator"></div>-->
  135. </div>
  136. </div>
  137. <script src="../js/mui.min.js"></script>
  138. <script>
  139. mui.back = function() {};
  140. mui.plusReady(function() {
  141. if (mui.os.ios) {
  142. plus.navigator.setFullscreen(true);
  143. }
  144. plus.navigator.closeSplashscreen();
  145. });
  146. //立即体验按钮点击事件
  147. document.getElementById("close").addEventListener('tap', function(event) {
  148. mui.openWindow({
  149. id: 'index-win',
  150. url: '../index.html',
  151. show: {
  152. duration: 200
  153. }
  154. });
  155. }, false);
  156. //图片切换时,触发动画
  157. document.querySelector('.mui-slider').addEventListener('slide', function(event) {
  158. //注意slideNumber是从0开始的;
  159. var index = event.detail.slideNumber + 1;
  160. if (index == 2 || index == 3) {
  161. var item = document.getElementById("tips-" + index);
  162. }
  163. });
  164. </script>
  165. </body>
  166. </html>