index1.jsp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  4. <% String contextPath = request.getContextPath() ;%>
  5. <!DOCTYPE html>
  6. <html lang="en">
  7. <head>
  8. <title>jQuery lightGallery demo</title>
  9. <link href="<%=basePath %>/style/lightgallery.css" rel="stylesheet">
  10. <style type="text/css">
  11. body{
  12. background-color: #152836
  13. }
  14. .demo-gallery > ul {
  15. margin-bottom: 0;
  16. }
  17. .demo-gallery > ul > li {
  18. float: left;
  19. margin-bottom: 15px;
  20. margin-right: 20px;
  21. width: 200px;
  22. }
  23. .demo-gallery > ul > li a {
  24. border: 3px solid #FFF;
  25. border-radius: 3px;
  26. display: block;
  27. overflow: hidden;
  28. position: relative;
  29. float: left;
  30. }
  31. .demo-gallery > ul > li a > img {
  32. -webkit-transition: -webkit-transform 0.15s ease 0s;
  33. -moz-transition: -moz-transform 0.15s ease 0s;
  34. -o-transition: -o-transform 0.15s ease 0s;
  35. transition: transform 0.15s ease 0s;
  36. -webkit-transform: scale3d(1, 1, 1);
  37. transform: scale3d(1, 1, 1);
  38. height: 100%;
  39. width: 100%;
  40. }
  41. .demo-gallery > ul > li a:hover > img {
  42. -webkit-transform: scale3d(1.1, 1.1, 1.1);
  43. transform: scale3d(1.1, 1.1, 1.1);
  44. }
  45. .demo-gallery > ul > li a:hover .demo-gallery-poster > img {
  46. opacity: 1;
  47. }
  48. .demo-gallery > ul > li a .demo-gallery-poster {
  49. background-color: rgba(0, 0, 0, 0.1);
  50. bottom: 0;
  51. left: 0;
  52. position: absolute;
  53. right: 0;
  54. top: 0;
  55. -webkit-transition: background-color 0.15s ease 0s;
  56. -o-transition: background-color 0.15s ease 0s;
  57. transition: background-color 0.15s ease 0s;
  58. }
  59. .demo-gallery > ul > li a .demo-gallery-poster > img {
  60. left: 50%;
  61. margin-left: -10px;
  62. margin-top: -10px;
  63. opacity: 0;
  64. position: absolute;
  65. top: 50%;
  66. -webkit-transition: opacity 0.3s ease 0s;
  67. -o-transition: opacity 0.3s ease 0s;
  68. transition: opacity 0.3s ease 0s;
  69. }
  70. .demo-gallery > ul > li a:hover .demo-gallery-poster {
  71. background-color: rgba(0, 0, 0, 0.5);
  72. }
  73. .demo-gallery .justified-gallery > a > img {
  74. -webkit-transition: -webkit-transform 0.15s ease 0s;
  75. -moz-transition: -moz-transform 0.15s ease 0s;
  76. -o-transition: -o-transform 0.15s ease 0s;
  77. transition: transform 0.15s ease 0s;
  78. -webkit-transform: scale3d(1, 1, 1);
  79. transform: scale3d(1, 1, 1);
  80. height: 100%;
  81. width: 100%;
  82. }
  83. .demo-gallery .justified-gallery > a:hover > img {
  84. -webkit-transform: scale3d(1.1, 1.1, 1.1);
  85. transform: scale3d(1.1, 1.1, 1.1);
  86. }
  87. .demo-gallery .justified-gallery > a:hover .demo-gallery-poster > img {
  88. opacity: 1;
  89. }
  90. .demo-gallery .justified-gallery > a .demo-gallery-poster {
  91. background-color: rgba(0, 0, 0, 0.1);
  92. bottom: 0;
  93. left: 0;
  94. position: absolute;
  95. right: 0;
  96. top: 0;
  97. -webkit-transition: background-color 0.15s ease 0s;
  98. -o-transition: background-color 0.15s ease 0s;
  99. transition: background-color 0.15s ease 0s;
  100. }
  101. .demo-gallery .justified-gallery > a .demo-gallery-poster > img {
  102. left: 50%;
  103. margin-left: -10px;
  104. margin-top: -10px;
  105. opacity: 0;
  106. position: absolute;
  107. top: 50%;
  108. -webkit-transition: opacity 0.3s ease 0s;
  109. -o-transition: opacity 0.3s ease 0s;
  110. transition: opacity 0.3s ease 0s;
  111. }
  112. .demo-gallery .justified-gallery > a:hover .demo-gallery-poster {
  113. background-color: rgba(0, 0, 0, 0.5);
  114. }
  115. .demo-gallery .video .demo-gallery-poster img {
  116. height: 48px;
  117. margin-left: -24px;
  118. margin-top: -24px;
  119. opacity: 0.8;
  120. width: 48px;
  121. }
  122. .demo-gallery.dark > ul > li a {
  123. border: 3px solid #04070a;
  124. }
  125. .home .demo-gallery {
  126. padding-bottom: 80px;
  127. }
  128. </style>
  129. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  130. </head>
  131. <body class="home">
  132. <div class="demo-gallery">
  133. <ul id="lightgallery" class="list-unstyled row">
  134. <li class="col-xs-6 col-sm-4 col-md-3" data-responsive="img/1-375.jpg 375, img/1-480.jpg 480, img/1.jpg 800" data-src="img/1-1600.jpg">
  135. <a href="">
  136. <img class="img-responsive" src="img/thumb-1.jpg">
  137. </a>
  138. </li>
  139. <li class="col-xs-6 col-sm-4 col-md-3" data-responsive="img/2-375.jpg 375, img/2-480.jpg 480, img/2.jpg 800" data-src="img/2-1600.jpg">
  140. <a href="">
  141. <img class="img-responsive" src="img/thumb-2.jpg">
  142. </a>
  143. </li>
  144. <li class="col-xs-6 col-sm-4 col-md-3" data-responsive="img/13-375.jpg 375, img/13-480.jpg 480, img/13.jpg 800">
  145. <a href="">
  146. <img class="img-responsive" src="img/thumb-13.jpg">
  147. </a>
  148. </li>
  149. <li class="col-xs-6 col-sm-4 col-md-3" data-responsive="img/4-375.jpg 375, img/4-480.jpg 480, img/4.jpg 800" data-src="img/4-1600.jpg">
  150. <a href="">
  151. <img class="img-responsive" src="img/thumb-4.jpg">
  152. </a>
  153. </li>
  154. </ul>
  155. </div>
  156. <script type="text/javascript">
  157. $(document).ready(function(){
  158. $('#lightgallery').lightGallery();
  159. });
  160. </script>
  161. <script src="https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js"></script>
  162. <script src="<%=basePath %>/js1/lightgallery.js"></script>
  163. <script src="<%=basePath %>/js1/lg-fullscreen.js"></script>
  164. <script src="<%=basePath %>/js1/lg-thumbnail.js"></script>
  165. <script src="<%=basePath %>/js1/lg-video.js"></script>
  166. <script src="<%=basePath %>/js1/lg-autoplay.js"></script>
  167. <script src="<%=basePath %>/js1/lg-zoom.js"></script>
  168. <script src="<%=basePath %>/js1/lg-hash.js"></script>
  169. <script src="<%=basePath %>/js1/lg-pager.js"></script>
  170. <!-- <script src="../lib/jquery.mousewheel.min.js"></script> -->
  171. </body>
  172. </html>