artist2015.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta name="description" content="">
  7. <meta name="author" content="">
  8. <title>上海青年艺术博览会</title>
  9. <!-- Bootstrap core CSS -->
  10. <link href="css/bootstrap.min.css?v=2" rel="stylesheet" type="text/css">
  11. <link href="css/layout.css?v=4" rel="stylesheet" type="text/css">
  12. <link href="css/index.css?v=1" rel="stylesheet" type="text/css">
  13. <link href="css/BannerSlide.css" rel="stylesheet" type="text/css">
  14. </head>
  15. <body>
  16. <nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
  17. <div class="bar-tit">
  18. <a class="navbar-brand" href="#"><img src="images/logo3.png" alt=""/></a>
  19. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  20. <span class="navbar-toggler-icon"></span>
  21. </button>
  22. <div class="collapse navbar-collapse" id="navbarCollapse">
  23. <ul class="navbar-nav mr-auto bar-ul">
  24. <li class="nav-item bar-li">
  25. <a class="nav-link" href="index.html">首页</a>
  26. </li>
  27. <li class="nav-item bar-li dropdown">
  28. <a class="nav-link dropdown-toggle" href="about2018.html" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">关于展会</a>
  29. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  30. <a class="dropdown-item active" href="about2019.html">2019青艺博</a>
  31. <a class="dropdown-item" href="about2018.html">2018青艺博</a>
  32. <a class="dropdown-item" href="about2017.html">2017青艺博</a>
  33. <a class="dropdown-item" href="about2016.html">2016青艺博</a>
  34. <a class="dropdown-item" href="about2015.html">2015青艺博</a>
  35. <div class="dropdown-divider"></div>
  36. <a class="dropdown-item" href="aboutforum.html">论坛</a>
  37. </div>
  38. </li>
  39. <li class="nav-item bar-li active">
  40. <a class="nav-link" href="artist2018.html">合作艺术家</a>
  41. </li>
  42. <li class="nav-item bar-li">
  43. <a class="nav-link" href="http://www.shyaf.com/signup">参展报名</a>
  44. </li>
  45. <li class="nav-item bar-li">
  46. <a class="nav-link" href="partner.html">合作伙伴</a>
  47. </li>
  48. <li class="nav-item bar-li">
  49. <a class="nav-link" href="contact.html">联系我们</a>
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. </nav>
  55. <main role="main" class="container">
  56. <div class="jumbotron">
  57. <div class="homeBanner">
  58. <div class="swiper-container">
  59. <div class="swiper-wrapper">
  60. <div class="swiper-slide"><img src="images/banner2020-1.jpg"/></div>
  61. <div class="swiper-slide"><img src="images/banner2018-2-01.jpg"/></div>
  62. <div class="swiper-slide"><img src="images/banner2018-L-01.jpg"/></div>
  63. </div>
  64. <div class="pagination"></div>
  65. <div class="swiper-button-prev"></div>
  66. <div class="swiper-button-next"></div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="row tab">
  71. <div class="col-md-3 col-sm-6 col-6">
  72. <div class="tabOFF">
  73. <a href="artist2018.html">2018艺术家</a>
  74. </div>
  75. </div>
  76. <div class="col-md-3 col-sm-6 col-6">
  77. <div class="tabOFF">
  78. <a href="artist2017.html">2017艺术家</a>
  79. </div>
  80. </div>
  81. <div class="col-md-3 col-sm-6 col-6">
  82. <div class="tabOFF">
  83. <a href="artist2016.html">2016艺术家</a>
  84. </div>
  85. </div>
  86. <div class="col-md-3 col-sm-6 col-6">
  87. <div class="tabON">
  88. <a href="artist2015.html">2015艺术家</a>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="paragraph">
  93. </div>
  94. </main>
  95. <div class="bottom"><span><br>上海青年艺术博览会 © 版权所有 | <a href="http://www.beian.miit.gov.cn" target="_blank" style="color: #eee;">沪ICP备15011673号</a><br> 沪公网安备31010502001539号</span></div>
  96. <!-- Bootstrap core JavaScript
  97. ================================================== -->
  98. <!-- Placed at the end of the document so the pages load faster -->
  99. <script src="js/jquery-3.2.1.slim.min.js"></script>
  100. <script>window.jQuery || document.write('<script src="../../../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
  101. <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
  102. <script src="js/popper.min.js"></script>
  103. <script src="js/bootstrap.min.js"></script>
  104. <script src="js/swiper3.07.jquery.min.js"></script>
  105. <script src="js/index.js?t=1"></script>
  106. <script src="js/pinyin/pinyin_dict_firstletter.js"></script>
  107. <script src="js/pinyin/pinyinUtil.js"></script>
  108. <script src="js/swiper3.07.jquery.min.js"></script>
  109. <script type="text/javascript">
  110. $(document).ready(function() {
  111. var mySwiper = new Swiper('.swiper-container',{
  112. calculateHeight:true,
  113. resizeReInit:true,
  114. pagination:".pagination",
  115. autoplay:5000,
  116. paginationClickable:true,
  117. loop: true,
  118. autoplayDisableOnInteraction:false,
  119. prevButton:'.swiper-button-prev',
  120. nextButton:'.swiper-button-next',
  121. });
  122. });
  123. var sidebar = new IndexSidebar()
  124. sidebar.on('charChange', function (ch) {
  125. $(window).scrollTop($("#zj_"+ch).offset().top-80);
  126. });
  127. var character = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","X","Y","Z");
  128. $.ajax({
  129. //请求方式
  130. type:"GET",
  131. //文件位置
  132. url:"dic/2015.json?t=1",
  133. //返回数据格式为json,也可以是其他格式如
  134. dataType: "json",
  135. //请求成功后要执行的函数,拼接html
  136. success: function(data){
  137. for(var a=0;a<character.length;a++){
  138. var py=character[a];
  139. var pys=new Array();
  140. for(var i=0;i<data.length;i++){
  141. var npy=pinyinUtil.getFirstLetter(data[i], false);
  142. if(py==npy.substring(0,1)){
  143. pys.push(data[i]);
  144. data.splice(i--,1);
  145. }
  146. }
  147. addHtml(py,pys);
  148. }
  149. },
  150. error: function(e){
  151. alert(JSON.stringify(e));
  152. }
  153. });
  154. function addHtml(type,data){
  155. if(data.length==0){
  156. return;
  157. }
  158. var ht='<div class="title-bar" id="zj_'+type+'">'+type+'</div><div class="row">';
  159. var elemtClass='';
  160. for(var i=0;i<data.length;i++){
  161. if(i==11&&data.length!=12){
  162. elemtClass='paragraph-non';
  163. }
  164. ht+='<div class="col-lg-2 col-md-2 col-sm-3 col-4 paragraph-row '+elemtClass+'">'+data[i]+'</div>';
  165. }
  166. if(elemtClass!=''){
  167. ht+='<div class="col-lg-2 col-md-2 col-sm-3 col-4 paragraph-row"><a href="javascript:void(0)" onClick="showAll(this)">查看更多</a></div>';
  168. }
  169. ht+='</div><div class="bottom-line"></div>';
  170. $(".paragraph").append(ht);
  171. }
  172. function showAll(element){
  173. if($(element).text()=='查看更多'){
  174. $(element).text('收起');
  175. $(element).parent().parent().find(".paragraph-non").each(function(){
  176. $(this).addClass("paragraph-show");
  177. $(this).removeClass("paragraph-non");
  178. });
  179. }else{
  180. $(element).text('查看更多');
  181. $(element).parent().parent().find(".paragraph-show").each(function(){
  182. $(this).addClass("paragraph-non");
  183. $(this).removeClass("paragraph-show");
  184. });
  185. }
  186. }
  187. </script>
  188. </body>
  189. </html>