1003210186_edit.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html>
  2. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  3. <html lang="en">
  4. <head>
  5. <website-include page="head" />
  6. <title>${website.seoTitle}-${wn.name}</title>
  7. <website-include page="css" />
  8. </head>
  9. <body>
  10. <div id="space-content">
  11. <div class="nav-placeholder"></div>
  12. <div class="main">
  13. <website-include page="navigation" />
  14. <!-- 中间部分 -->
  15. <div class="content">
  16. <div class="article-wrap">
  17. <website-include page="leftnavigation" />
  18. <!-- 右边正文 -->
  19. <div class="list-right">
  20. <div class="article-body">
  21. <div class="article-body-guide">
  22. <a href="javascript:;">
  23. ${fwn.name} - ${wn.name}
  24. </a>
  25. </div>
  26. <!-- 列表 -->
  27. <div class="list-text-body">
  28. <ul>
  29. <c:forEach items="${articleList}" var="item">
  30. <li>
  31. <a href="${item.url}" target="_blank">
  32. <div class="list-text-left">
  33. <p><fmt:formatDate value="${item.release_time}" pattern="dd"/></p>
  34. <span><fmt:formatDate value="${item.release_time}" pattern="MM"/></span>
  35. </div>
  36. <div class="list-text-right">
  37. <p>
  38. ${item.title}
  39. </p>
  40. <span>
  41. <fmt:formatDate value="${item.release_time}" pattern="yyyy.MM.dd"/>
  42. </span>
  43. </div>
  44. </a>
  45. </li>
  46. </c:forEach>
  47. </ul>
  48. </div>
  49. <!-- 分页 -->
  50. <div></div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <website-include page="footer" />
  56. </div>
  57. </div>
  58. </body>
  59. <script src="/main/dist/website/template/BNr02DHL36iU/plug-in/swiper@5.3.7/js/swiper.min.js"></script>
  60. <script src="/main/dist/website/template/BNr02DHL36iU/plug-in/js/jquery1.11.3.min.js"></script>
  61. <script>
  62. // 滚动跳转导航高度
  63. $(window).scroll(function() {
  64. if($(window).scrollTop() >= 30) {
  65. $('.nav').css({
  66. "height": "50px",
  67. "line-height": "50px"
  68. });
  69. $(".nav-placeholder").css("height", "50px");
  70. $(".nav-list").css("top", "50px");
  71. } else {
  72. $('.nav').css({
  73. "height": "80px",
  74. "line-height": "80px"
  75. });
  76. $(".nav-placeholder").css("height", "80px");
  77. $(".nav-list").css("top", "80px");
  78. }
  79. });
  80. window.onload = function() {
  81. // 搜索
  82. $(".search-icon").click(function() {
  83. $(".search-wrap").slideDown(100);
  84. $(".search-wrap input").focus();
  85. })
  86. // 关闭搜索
  87. $(".search-close").click(function() {
  88. $(".search-wrap").slideUp(100);
  89. })
  90. // 搜索输入
  91. $(".search-wrap input").bind("input", function() {
  92. if($(this).val().length != 0) {
  93. $(".search-wrap button").show();
  94. $(".search-wrap .search-close").hide();
  95. } else {
  96. $(".search-wrap button").hide();
  97. $(".search-wrap .search-close").show();
  98. }
  99. })
  100. // 移动端导航
  101. $(".nav-icon").click(function() {
  102. if($(".nav-list").css("display") == "none") {
  103. $(".nav-list").slideDown(200);
  104. } else {
  105. $(".nav-list").slideUp(200);
  106. }
  107. })
  108. // 右侧导览点击
  109. $(".guide-left h2").click(function() {
  110. var leftVal = parseInt($(".guide-list").css("left"));
  111. if(leftVal != 0) {
  112. $(".guide-list").animate({
  113. "left": "0px"
  114. }, 400)
  115. } else {
  116. $(".guide-list").animate({
  117. "left": "-100%"
  118. }, 400)
  119. }
  120. })
  121. // 关闭右侧导览
  122. $(".guide-close").click(function() {
  123. $(".guide-list").animate({
  124. "left": "-100%"
  125. }, 400)
  126. })
  127. }
  128. </script>
  129. </html>