Difference between revisions of "Team:HZAU-China"

Line 1: Line 1:
{{HZAU-China}}
 
 
<!DOCTYPE html>
 
<!DOCTYPE html>
 
<html>
 
<html>
 +
 
<head>
 
<head>
 
   <meta charset="UTF-8">
 
   <meta charset="UTF-8">
   <style>
+
   <style type="text/css">
     body {
+
     #sideMenu,
       background-color: rgb(249, 228, 137);
+
    #top_title,
 +
    #team_submenu {
 +
       display: none;
 
     }
 
     }
  
 
     #content {
 
     #content {
       background-color: rgb(249, 228, 137);
+
       padding: 0px;
    }
+
 
+
    div.background_page {
+
      transition: opacity 1s;
+
      -webkit-transition: opacity 1s;
+
    }
+
 
+
    .fourC {
+
 
       width: 100%;
 
       width: 100%;
       min-width: 950px;
+
       margin-top: 0px;
       margin-top: -2px;
+
       margin-left: 0px;
 
     }
 
     }
  
     .di {
+
     #bodyContent h1,
      width: 100%;
+
    #bodyContent h2,
      min-width: 950px;
+
    #bodyContent h3,
      position: relative;
+
    #bodyContent h4,
       top: 600px;
+
    #bodyContent h5 {
 +
       margin-bottom: 0px;
 
     }
 
     }
  
     #rongqi p {
+
     #team_name {
       padding: 0;
+
       display: none
      margin: 0;
+
 
     }
 
     }
  
    /*-- 轮播图整体样式-- */
+
     .global_wrapper {
 
+
       padding: 0px 0px 0px 0px;
     .zhanshiqu {
+
       position: relative;
+
      top: 400px;
+
 
     }
 
     }
  
    /*-- 轮播图主体样式-- */
+
     #top_menu_14 {
 
+
       height: 16px;
     #rongqi {
+
      width: 950px;
+
       height: 600px;
+
      margin: 20px auto;
+
      border-radius: 5px;
+
      overflow: hidden;
+
      position: relative;
+
 
     }
 
     }
  
    /*-- 图片样式 --*/
 
  
    .shiying {
 
      width: 950px;
 
      height: 600px;
 
    }
 
  
     #rongqi img {
+
     div.nav_body {
       position: absolute;
+
       position: fixed;
       top: 0;
+
       padding: 7px 0 7px 0;
       left: 950px;
+
       left: 0px;
       /*图片均位于右侧*/
+
       top: 16px;
       transition: left 0.3s linear;
+
       width: 100%;
       /*改变left值实现动画*/
+
       min-width: 980px;
 +
      height: 36px;
 +
      box-shadow: 0px 1px 3px #aaaaaa;
 +
      z-index: 1;
 +
      color: rgb(249, 228, 137);
 +
      text-decoration-line: none;
 +
      font-family: "Arial", Helvetica, sans-serif;
 +
      background-color: #000;
 +
      z-index: 99;
 
     }
 
     }
  
     #rongqi img.yundong {
+
     ul#nav_organ {
       left: 0;
+
       float: right;
 +
      list-style: none;
 +
      margin: 6px auto;
 +
      text-decoration-line: none;
 +
      font-family: "Arial", Helvetica, sans-serif;
 +
      color: rgb(249, 228, 137);
 +
      background-color: #000;
 
     }
 
     }
  
     #rongqi img.left {
+
     ul#nav_organ li {
       left: -950px;
+
       display: block;
 +
      float: left;
 
     }
 
     }
  
     /*-- 页码样式 --*/
+
     a.nav_tissue {
 
+
       padding: 8px 15px 8px 15px;
    #rongqi div {
+
       line-height: 23px;
       position: absolute;
+
       text-decoration-line: none;
       bottom: 0;
+
       font-family: "Arial", Helvetica, sans-serif;
       width: 100%;
+
       color: rgb(249, 228, 137);
       line-height: 0;
+
       font-size: 17px;
      text-align: center;
+
       padding: 5px 0;
+
       z-index: 2;
+
 
     }
 
     }
  
     #rongqi span {
+
     span.caret {
 
       display: inline-block;
 
       display: inline-block;
       width: 15px;
+
       margin-left: 2px;
       height: 10px;
+
       vertical-align: middle;
       margin: 0 3px;
+
       width: 0;
       border-radius: 5px;
+
      height: 0;
       background: white;
+
       border-left: 4px solid transparent;
       transition: width 0.3s;
+
       border-right: 4px solid transparent;
 +
       border-top: 4px solid rgb(249, 228, 137);
 
     }
 
     }
  
     #rongqi span.yundong {
+
     .nav_cell {
       width: 25px;
+
       visibility: hidden;
       background: #A08989;
+
       opacity: 0;
    }
+
      display: block;
 
+
      box-sizing: border-box;
    /*-- 图片描述的样式 --*/
+
      left: auto;
 
+
    #rongqi p {
+
 
       position: absolute;
 
       position: absolute;
       bottom: 20px;
+
       top: 42px;
       width: 100%;
+
       z-index: 1000;
       line-height: 20px;
+
       float: left;
 +
      min-width: 160px;
 +
      margin: 0 0 0 -4px;
 
       font-size: 14px;
 
       font-size: 14px;
       text-indent: 5px;
+
       text-align: left;
       color: white;
+
      list-style: none;
       cursor: default;
+
       color: rgb(249, 228, 137);
       opacity: 0;
+
       background-color: #000;
       transition: opacity 0.3s linear;
+
       background-clip: padding-box;
 +
      border: 1px solid rgba(0, 0, 0, .15);
 +
      border-radius: 4px;
 +
      box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
 +
      -webkit-transition: opacity 0.4s linear;
 +
      -moz-transition: opacity 0.4s linear;
 +
      -ms-transition: opacity 0.4s linear;
 +
      -o-transition: opacity 0.4s linear;
 +
       transition: opacity 0.4s linear;
 
     }
 
     }
  
     #rongqi p.yundong {
+
     .mw-content-ltr ul,
       opacity: 1;
+
    .mw-content-rtl .mw-content-ltr ul {
 +
       margin: 0 0 0 -4px;
 
     }
 
     }
  
    /*--齿轮样式--*/
+
     .shadow {
 
+
       box-shadow: 0px 1px 3px rgb(249, 228, 137);
     .hezi {
+
       position: absolute;
+
      top: 20px;
+
      margin: 0 50%;
+
      width: 950px;
+
      height: 600px;
+
      left: -475px;
+
      opacity: 1;
+
      transition: opacity 1s;
+
 
     }
 
     }
  
     @keyframes mymove {
+
     .nav_cell>li {
       from {}
+
       display: block;
       to {
+
       float: left;
        transform: rotate(360deg);
+
      clear: both;
       }
+
       height: 30px;
 
     }
 
     }
  
     @-webkit-keyframes mymove
+
     .nav_cell>li>a {
    /*Safari and Chrome*/
+
      padding-top: 3px;
 
+
      padding-bottom: 3px;
       {
+
       padding-left: 20px;
       from {}
+
       padding-right: 20px;
       to {
+
       text-decoration-line: none;
        transform: rotate(360deg);
+
      color: rgb(249, 228, 137);
      }
+
 
     }
 
     }
  
     @keyframes mymove_2 {
+
     .menu_item:hover .nav_cell {
       from {}
+
       visibility: visible;
       to {
+
       opacity: 1;
        transform: rotate(-360deg);
+
      }
+
 
     }
 
     }
  
    @-webkit-keyframes mymove_2
+
     .HZAU_logo {
    /*Safari and Chrome*/
+
       height: 36px;
 
+
      {
+
      from {}
+
      to {
+
        transform: rotate(-360deg);
+
      }
+
    }
+
 
+
     .chilun_1 {
+
      position: absolute;
+
      top: -70px;
+
      left: -80px;
+
      width: 200px;
+
      height: 200px;
+
      animation: rotate 10s infinite;
+
      -webkit-animation: mymove 10s infinite;
+
      animation-timing-function: linear;
+
      background: url(https://static.igem.org/mediawiki/2017/f/fb/HZAU_2017_gear_1.png);
+
      background-size: 150px 150px;
+
      background-repeat: no-repeat;
+
      background-size: cover;
+
      z-index: -1;
+
    }
+
 
+
    .chilun_2 {
+
      position: absolute;
+
      top: 115px;
+
      left: -105px;
+
      width: 130px;
+
      height: 130px;
+
      background-size: cover;
+
      animation: rotate 10s infinite;
+
      -webkit-animation: mymove_2 10s infinite;
+
      animation-timing-function: linear;
+
      background: url(https://static.igem.org/mediawiki/2017/f/fb/HZAU_2017_gear_1.png);
+
      background-size: 100px 100px;
+
      background-repeat: no-repeat;
+
      background-size: cover;
+
      z-index: -1;
+
    }
+
 
+
    .chilun_3 {
+
      position: absolute;
+
      bottom: 60px;
+
      right: -100px;
+
      width: 250px;
+
      height: 250px;
+
      background-size: cover;
+
      animation: rotate 10s infinite;
+
      -webkit-animation: mymove 10s infinite;
+
      animation-timing-function: linear;
+
      background: url(https://static.igem.org/mediawiki/2017/f/fb/HZAU_2017_gear_1.png);
+
      background-size: 250px 250px;
+
      background-repeat: no-repeat;
+
      background-size: cover;
+
      z-index: -1;
+
    }
+
 
+
    /*--线框样式--*/
+
 
+
    .frame {
+
      position: absolute;
+
      top: -30px;
+
      margin: 0 50%;
+
      width: 1020px;
+
      height: 660px;
+
      left: -510px;
+
      z-index: 1;
+
    }
+
 
+
    .frame_tu {
+
      width: 1020px;
+
       height: 660px;
+
 
     }
 
     }
 
   </style>
 
   </style>
Line 241: Line 157:
  
 
<body>
 
<body>
   <div class="fourC">
+
   <div class="nav_body">
     <img class="fourC" src="https://static.igem.org/mediawiki/2017/e/eb/HZAU_2017_4C_1.png">
+
     <a href="https://2017.igem.org/Team:HZAU-China" class="HZAU_logo" title="logo">
  </div>
+
      <img src="https://static.igem.org/mediawiki/2017/b/bf/T--HZAU-China--logo.png" height="100%">
  <div class="zhanshiqu">
+
    </a>
    <!-- 大小齿轮们 -->
+
    <ul id="nav_organ">
    <div class="hezi">
+
      <li class="Home">
      <div class="chilun_1"></div>
+
        <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China">Home</a>
       <div class="chilun_2"></div>
+
      </li>
      <div class="chilun_3"></div>
+
      <li class="Team">
    </div>
+
        <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China/Team">Team</a>
    <div class="frame">
+
       </li>
      <img class="frame_tu" src="https://static.igem.org/mediawiki/2017/2/23/HZAU_2017_frame_1.png" />
+
      <li class="Project menu_item">
    </div>
+
        <a class="nav_tissue" href="">Project<span class="caret"></span></a>
    <div id="rongqi">
+
        <ul class="nav_cell shadow">
      <!-- 插入轮播的图片们 -->
+
          <li>
      <img class="yundong shiying" src="https://static.igem.org/mediawiki/2017/4/43/HZAU_2017_luhuan1_1.png" />
+
            <a href="https://2017.igem.org/Team:HZAU-China/Description">Description</a>
      <img class="shiying" src="https://static.igem.org/mediawiki/2017/f/f5/HZAU_2017_luhuan2_1.png" />
+
          </li>
       <img class="shiying" src="https://static.igem.org/mediawiki/2017/f/fd/HZAU_2017_luhuan3_1.png" />
+
          <li>
      <!-- 插入轮播的页码们 -->
+
            <a href="https://2017.igem.org/Team:HZAU-China/Design">Design</a>
       <div>
+
          </li>
         <span class="yundong" name="0"></span>
+
          <li>
         <span name="1"></span>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Experiments">Experiments</a>
         <span name="2"></span>
+
          </li>
      </div>
+
          <li>
      <!-- 插入图片的描述们 -->
+
            <a href="https://2017.igem.org/Team:HZAU-China/Notebook">Notebook</a>
      <p class="yundong"></p>
+
          </li>
      <p></p>
+
          <li>
      <p></p>
+
            <a href="https://2017.igem.org/Team:HZAU-China/InterLab">InterLab</a>
    </div>
+
          </li>
  </div>
+
          <li>
  <div>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Model">Model</a>
    <img class="di" src="https://static.igem.org/mediawiki/2017/6/63/HZAU_2017_di_1.png">
+
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Results">Results</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Demonstrate">Demonstrate</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Improve">Improve</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Attributions">Attributions</a>
 +
          </li>
 +
        </ul>
 +
       </li>
 +
      <li class="Parts menu_item">
 +
        <a class="nav_tissue" href="">Parts<span class="caret"></span></a>
 +
        <ul class="nav_cell shadow">
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Parts">Parts</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Basic Parts">Basic Parts</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Composite Parts">Composite Parts</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Part Collection">Part Collection</a>
 +
          </li>
 +
        </ul>
 +
       </li>
 +
      <li class="Safety">
 +
         <a class="nav_tissue" href="">Safety</a>
 +
      </li>
 +
      <li class="HP menu_item">
 +
         <a class="nav_tissue" href="">Human Practices<span class="caret"></span></a>
 +
         <ul class="nav_cell shadow">
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Silver HP">Silver HP</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Integrated and Gold">Integrated and Gold</a>
 +
          </li>
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Public Engagement">Public Engagement</a>
 +
          </li>
 +
        </ul>
 +
      </li>
 +
      <li class="Awards menu_item">
 +
        <a class="nav_tissue" href="">Awards<span class="caret"></span></a>
 +
        <ul class="nav_cell shadow">
 +
          <li>
 +
            <a href="https://2017.igem.org/Team:HZAU-China/Hardware">Hardware</a>
 +
          </li>
 +
        </ul>
 +
      </li>
 +
      <li class="Judging Form">
 +
        <a class="nav_tissue" href="https://igem.org/2017_Judging_Form?id=2381">Judging Form</a>
 +
      </li>
 +
    </ul>
 
   </div>
 
   </div>
 
</body>
 
</body>
<script>
 
  //---------主角:轮播图函数-------------
 
  function rongqi() {
 
    var rongqi = document.getElementById("rongqi"),
 
      imgs = rongqi.getElementsByTagName("img"), //图片们
 
      pages = rongqi.getElementsByTagName("span"), //页码们
 
      descrips = rongqi.getElementsByTagName("p"), //描述们
 
      length = imgs.length, //图片数目
 
      current = 1; //current为当前活跃的图片、页码、描述的编号
 
 
 
    function changeSlide() { //切换图片的函数
 
      for (var i = 0; i < length; i++) {
 
        if (i == current) {
 
          imgs[i].className = "yundong shiying";
 
          pages[i].className = "yundong";
 
          descrips[i].className = "yundong";
 
        } else {
 
          pages[i].className = "";
 
          descrips[i].className = "";
 
          if (i < current) {
 
            imgs[i].className = "left";
 
          } else {
 
            imgs[i].className = "";
 
          }
 
        }
 
      }
 
      current++; //自增1
 
      if (current >= length) {
 
        current = 0;
 
      }
 
    }
 
 
    //每2s调用changeSlide函数进行图片轮播
 
    var slideon = setInterval(changeSlide, 4000);
 
 
    rongqi.onmouseover = function () {
 
      clearInterval(slideon); //当鼠标移入时清除轮播事件
 
    }
 
    rongqi.onmouseout = function () {
 
      slideon = setInterval(changeSlide, 4000); //当鼠标移出时重新开始轮播事件
 
    }
 
 
    for (var i = 0; i < length; i++) {  //定义鼠标移入页码事件
 
      pages[i].onmouseover = function () {
 
        current = this.getAttribute("name");  //得到当前鼠标指的页码
 
        changeSlide();
 
      }
 
    }
 
 
  }
 
 
  rongqi();
 
  
</script>
 
  
  
 
</html>
 
</html>

Revision as of 12:37, 29 October 2017

<!DOCTYPE html>