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.

208 lines
8.4 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
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. <link rel="stylesheet" type="text/css" href="css/game3.css" />
  2. <div class="game3Index">
  3. <p class="bgm">
  4. <img src="img/game3/bgm.gif" />
  5. <img src="img/game3/successBgm.gif" />
  6. </p>
  7. <div class="box_wrap">
  8. <ul class="imgList">
  9. <li><img style="width: .66rem;" src="img/game3/lin1.png" />
  10. <p></p>
  11. </li>
  12. <li><img style="width: .74rem;" src="img/game3/lin2.png" />
  13. <p></p>
  14. </li>
  15. <li><img style="width: .6rem;" src="img/game3/lin3.png" />
  16. <p></p>
  17. </li>
  18. <!--<li></li>
  19. <li></li>
  20. <li></li>-->
  21. </ul>
  22. <div class="clickIcon">
  23. <ul>
  24. <li class="click1 click"><img src="img/game3/icon1.png"/></li>
  25. <li class="click2 click"><img src="img/game3/icon2.png"/></li>
  26. <li class="click3 click"><img src="img/game3/icon3.png"/></li>
  27. </ul>
  28. </div>
  29. </div>
  30. <div class="book_box">
  31. <div class="line">
  32. <div>
  33. <p class="leftIcon"><img src="img/leftIcon.png"/> </p>
  34. <p class="rightIcon"> <img src="img/rightIcon.png"/> </p>
  35. </div>
  36. </div>
  37. <div class="closeIcon"><img src="img/close.png" /></div>
  38. <div class="bookCont">
  39. <div class="leftImg">
  40. <div class="titleTip">
  41. <p>金色的鱼钩</p>
  42. <p class="img"><img src="img/img2.png" /></p>
  43. </div>
  44. <div class="imgList">
  45. <img src="img/game3.png" />
  46. </div>
  47. </div>
  48. <div class="rightCont">
  49. <div class="titleTip">
  50. <h2>故事原型</h2>
  51. <h5>金色的鱼钩</h5>
  52. </div>
  53. <ul class="textList">
  54. <!--<li>飞夺泸定桥:1935年5月,北上抗日的红军向天险大渡河挺进。大渡河水流湍急,两岸都是高山峻岭,只有一座铁索桥可以通过。这座铁索桥,就是红军北上必须夺取的泸定桥。国民党反动派派了两个团防守泸定桥,阻拦红军北上;后来又调了两个旅赶去增援,妄想把我红军消灭在桥头上。我军早就看穿了敌人的诡计。28日早上,红四团接到上级命令:“29日早晨夺下泸定桥!”时间只剩下20多个小时了</li>
  55. <li>红四团离泸定桥还有240里。敌人的两个旅援兵正在对岸向泸定桥行进。抢在敌人前头,是我军战胜敌人的关键。红四团翻山越岭,沿路击溃了好几股阻击的敌人,到晚上7点钟,离泸定桥还有110里。战士们一整天没顾得上吃饭。天又下起雨来,把他们都淋透了。战胜敌人的决心使他们忘记了饥饿和疲劳。在漆黑的夜里,他们冒着雨,踩着泥水继续前进。忽然对岸出现了无数火把,像一条长蛇向泸定桥的</li>
  56. <li>方向奔去,分明是敌人的增援部队。红四团的战士索性也点起火把,照亮了道路跟对岸的敌人赛跑。敌人看到了这边的火把,扯着嗓子喊:“你们是哪个部分的?”我们的战士高声答话:“是碰上红军撤下来的。”对岸的敌人并不疑心。两支军队像两条火龙,隔着大渡河走了二三十里。雨越下越猛,像瓢泼一样,把两岸的火把都浇灭了。对岸的敌人不能再走,只好停下来宿营。红四团仍旧摸黑冒雨前进,终于在</li>
  57. <li>29日清晨赶到了泸定桥,把增援的两个旅的敌人抛在后面了。</li>-->
  58. </ul>
  59. <p class="pageNum"><text>1</text>/<span>5</span></p>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="maskBgm"></div>
  64. <!--下一关-->
  65. <div class="successBox">
  66. <!--<div class="shut"><img src="img/close.png" /></div>-->
  67. <p class="above game3Above"><img src="img/aboveIcon.png" /></p>
  68. <p class="next game3Next"><img src="img/nextIcon.png" /></p>
  69. </div>
  70. </div>
  71. <script type="text/javascript">
  72. var num3 = [];
  73. var leftArr3 = ['2%', '12%', '22%'];
  74. var contList3 = [
  75. '1935年,在红军过草地时,指导员让老炊事班长照顾我们几个得胃病的同志走出草地。我们几个同志走不快,一天只能走二十里来路,很快就没了食物。有一次,老班长在水塘边洗衣服时,发现了几条鱼,老班长做了一个鱼钩把鱼钓了上来做给我们几个同志吃。我见老班长没吃鱼,他却说吃过了,我不信。于是等到他收拾完碗筷走后就悄悄跟着他,一看,只见老班长在吃我们几个吃剩的鱼骨头,嚼草根,艰难地硬咽下去,',
  76. '我失声喊起来,老班长把党的秘密告诉我,让我不要告诉别的同志。第二天在吃鱼汤时,我们几个小同志怎么也吃不下,老班长鼓励我们要面对事实,为了革命要坚持。后来在老班长的鼓励下我们走到了草地的边际。可是就在这天上午,老班长在水塘边奄奄一息了,老班长说让我们把鱼吃了,一口气走出草地。最后老班长牺牲了。我一定要把金色的鱼钩送到革命烈士纪念馆去,让我们子子孙孙来瞻仰它。(缩写自《金色的鱼钩》)'
  77. ]
  78. var liCont3 = '';
  79. var pageNum3 = 1;
  80. var total3 = contList3.length
  81. for(var i = 0; i < contList3.length; i++) {
  82. liCont3 += '<li>' + contList3[i] + '</i>'
  83. }
  84. $('.game3Index .textList').html(liCont3)
  85. $('.game3Index .textList li').eq(0).show().siblings().hide()
  86. $('.game3Index .pageNum span').text(total3)
  87. $('.game3Index .pageNum text').text(pageNum3)
  88. $('.game3Index .leftIcon').click(function() {
  89. if(pageNum3 > 1) {
  90. pageNum3--;
  91. $('.game3Index .pageNum text').text(pageNum3)
  92. $('.game3Index .textList li').eq(pageNum3 - 1).show().siblings().hide()
  93. }
  94. })
  95. $('.game3Index .rightIcon').click(function() {
  96. if(pageNum3 < total3) {
  97. pageNum3++;
  98. $('.game3Index .pageNum text').text(pageNum3)
  99. $('.game3Index .textList li').eq(pageNum3 - 1).show().siblings().hide()
  100. }
  101. if(pageNum3 == total3) {
  102. console.log('第三')
  103. setTimeout(function() {
  104. $('.game3Index .book_box').fadeOut()
  105. $('.game3Index .successBox').css('display', 'flex')
  106. }, 1500)
  107. }
  108. })
  109. $('.game3Index .click1').click(function() {
  110. $('.game3Index .click1 img').css('display','block')
  111. $('.game3Index .click1').animate({
  112. 'top': '2.5%',
  113. "left": '3%',
  114. 'transform': 'translate(-50%,-50%)'
  115. }, 1000)
  116. // setTimeout(function() {
  117. // $('.game3Index .click1').css('opacity', '0')
  118. // }, 1000)
  119. $('.game3Index .imgList li').eq(0).find('img').fadeOut(1500)
  120. $('.game3Index .imgList li').eq(0).find('p').fadeOut(1000)
  121. if(num3.indexOf('1')==-1){
  122. num3.push('1');
  123. success3();
  124. }
  125. })
  126. $('.game3Index .click2').click(function() {
  127. $('.game3Index .click2 img').css('display','block')
  128. $('.game3Index .click2').animate({
  129. 'top': '4%',
  130. "left": '13%',
  131. 'transform': 'translate(-50%,-50%)',
  132. }, 1000)
  133. // setTimeout(function() {
  134. // $('.game3Index .click2').css('opacity', '0')
  135. // }, 1000)
  136. $('.game3Index .imgList li').eq(1).find('img').fadeOut(1500)
  137. $('.game3Index .imgList li').eq(1).find('p').fadeOut(1000)
  138. if(num3.indexOf('2')==-1){
  139. num3.push('2');
  140. success3();
  141. }
  142. })
  143. $('.game3Index .click3').click(function() {
  144. $('.game3Index .click3 img').css('display','block')
  145. $('.game3Index .click3').animate({
  146. 'top': '2%',
  147. "left": '23%',
  148. 'transform': 'translate(-50%,-50%)',
  149. }, 1000)
  150. // setTimeout(function() {
  151. // $('.game3Index .click3').css('opacity', '0')
  152. // }, 1000)
  153. $('.game3Index .imgList li').eq(2).find('img').fadeOut(1500)
  154. $('.game3Index .imgList li').eq(2).find('p').fadeOut(1000)
  155. if(num3.indexOf('3')==-1){
  156. num3.push('3');
  157. success3();
  158. }
  159. })
  160. $('.game3Index .closeIcon').click(function() {
  161. $('.game3Index .book_box').fadeOut()
  162. $('.game3Index .successBox').css('display', 'flex')
  163. })
  164. function success3() {
  165. if(num3.length == 3) {
  166. console.log('成功')
  167. setTimeout(function() {
  168. $('.game3Index p.bgm img').eq(0).animate({
  169. 'opacity':'0'
  170. },1000)
  171. $('.game3Index p.bgm img').eq(1).animate({
  172. 'opacity':'1',
  173. 'z-index':'99'
  174. },1000)
  175. $('.game3Index .box_wrap').fadeOut();
  176. }, 1500)
  177. setTimeout(function() {
  178. $('.game3Index .book_box').fadeIn()
  179. $('.game3Index .maskBgm').fadeIn(1000)
  180. }, 4500)
  181. }
  182. }
  183. $('.game3Above').click(function(){
  184. $('#game2').load('game2.html');
  185. $('.game3Index').remove();
  186. $('.secondGame').css({'width':'100%','height':'100%'})
  187. $('#game2').css({'width':'100%','height':'100%'})
  188. $('.thirdGame').css({'width':'0','height':'0'})
  189. $('#game3').css({'width':'0','height':'0'})
  190. })
  191. $('.game3Next').click(function(){
  192. $('.game3Index').remove()
  193. $('#game4').load('game4.html');
  194. $('.thirdGame').css({'width':'0','height':'0'})
  195. $('#game3').css({'width':'0','height':'0'})
  196. $('.fourGame').css({'width':'100%','height':'100%'})
  197. $('#game4').css({'width':'100%','height':'100%'})
  198. $('.snowList').fadeIn(1000)
  199. })
  200. </script>