(22 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
<!-- bootstrap --> | <!-- bootstrap --> | ||
<link rel="stylesheet" href="https://2019.igem.org/Template:CSU_CHINA/CSS/Bootstrap4?action=raw&ctype=text/css" type="text/css"> | <link rel="stylesheet" href="https://2019.igem.org/Template:CSU_CHINA/CSS/Bootstrap4?action=raw&ctype=text/css" type="text/css"> | ||
− | |||
− | |||
<!-- jquery.min.js --> | <!-- jquery.min.js --> | ||
<script src="https://2019.igem.org/Template:CSU_CHINA/JS/jquery?action=raw&ctype=text/javascript"></script> | <script src="https://2019.igem.org/Template:CSU_CHINA/JS/jquery?action=raw&ctype=text/javascript"></script> | ||
Line 20: | Line 18: | ||
<body> | <body> | ||
<style> | <style> | ||
− | #navigator{ margin-top: 16px; } | + | #navigator{ margin-top: 16px; z-index: 10000;} |
− | #navigator:hover{ background-color: rgb(52,58,64) | + | #navigator:hover{ background-color: rgb(52,58,64);} |
#navigator .navbar-brand img{ height: 45px; } | #navigator .navbar-brand img{ height: 45px; } | ||
− | #navigator a{ font-size: 16px !important; color: rgb(151,155,158) !important;} | + | #navigator a{ font-size: 16px !important; color: rgb(151,155,158);} |
− | #navigator .nav-link:hover{ color: white !important;} | + | #navigator #sp{color:#E17E84!important;} |
− | #navigator .dropdown-item{ color: #262626 | + | #navigator .nav-link:hover{ color: white;} |
− | #navigator .dropdown-item:hover{ color: #999999 | + | #navigator #sp:hover{ color: #D4577E!important;} |
+ | #navigator .dropdown-item{ color: #262626;} | ||
+ | #navigator .dropdown-item:hover{ color: #999999;} | ||
+ | #navigator .dropdown-menu:hover .nav-link{ color: white;} | ||
.trans{ background-color: rgba(0, 0, 0, 0.1); } | .trans{ background-color: rgba(0, 0, 0, 0.1); } | ||
#navigator .nav-item:hover .dropdown-toggle::after{ | #navigator .nav-item:hover .dropdown-toggle::after{ | ||
Line 34: | Line 35: | ||
-webkit-transition: color 0.15s; /* Safari */ | -webkit-transition: color 0.15s; /* Safari */ | ||
} | } | ||
− | .dropdown-menu{ | + | .dropdown-menu{ margin-top: -1px; } |
− | + | ||
− | + | ||
#top_title{ display:none; } | #top_title{ display:none; } | ||
#content{ | #content{ | ||
Line 45: | Line 44: | ||
} | } | ||
#bodyContent a[href ^="https://"], | #bodyContent a[href ^="https://"], | ||
− | .link-https{ | + | .link-https |
− | + | { padding: 8px 8px 8px 8px; } | |
− | + | ||
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | |||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | + | // 若文档高度小于窗口高度,赞助框位于页面最底部 | |
− | + | ||
− | + | ||
$(".dropdown").hover(function() { | $(".dropdown").hover(function() { | ||
− | |||
$('.dropdown-menu', this).slideToggle("fast"); | $('.dropdown-menu', this).slideToggle("fast"); | ||
+ | }); | ||
+ | // 改导航栏css | ||
+ | $(".dropdown-menu").mouseenter(function(){ | ||
+ | $(this).prev().css("color","white"); | ||
+ | }); | ||
+ | $(".dropdown-menu").mouseleave(function(){ | ||
+ | $(this).prev().css("color","rgb(151,155,158)"); | ||
}); | }); | ||
// 滚动渐隐 | // 滚动渐隐 | ||
Line 80: | Line 81: | ||
<div class="collapse navbar-collapse" id="collapsibleNavId"> | <div class="collapse navbar-collapse" id="collapsibleNavId"> | ||
<ul class="navbar-nav ml-md-auto "> | <ul class="navbar-nav ml-md-auto "> | ||
+ | <li class="nav-item"> | ||
+ | <a id="sp" class="nav-link" href="/Team:CSU_CHINA/Special_Page">SPECIAL PAGE</a> | ||
+ | </li> | ||
<li class="nav-item"> | <li class="nav-item"> | ||
<a class="nav-link" href="/Team:CSU_CHINA">HOME</a> | <a class="nav-link" href="/Team:CSU_CHINA">HOME</a> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_PROJECT" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PROJECT</a> |
<div class="dropdown-menu bg-light " aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light " aria-labelledby="navbarDropdown"> | ||
− | <a class="dropdown-item" href="">DESCRIPTION</a> | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Description">DESCRIPTION</a> |
− | <a class="dropdown-item" href="">DESIGN</a> | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Design">DESIGN</a> |
<a class="dropdown-item" href="/Team:CSU_CHINA/Demonstrate">DEMONSTRATION</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Demonstrate">DEMONSTRATION</a> | ||
</div> | </div> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_PARTS" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PARTS</a> |
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Basic_Part">BASIC PARTS</a> |
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Composite_Part">COMPOSITE PARTS</a> |
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Part_Collection">IMPROVED PART</a> |
</div> | </div> | ||
</li> | </li> | ||
Line 103: | Line 107: | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_HUMAN_PRACTICES" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">HUMAN PRACTICES</a> |
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/Human_Practices">INTERGRATED</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Human_Practices">INTERGRATED</a> | ||
Line 112: | Line 116: | ||
<a class="nav-link" href="/Team:CSU_CHINA/Safety">SAFETY</a> | <a class="nav-link" href="/Team:CSU_CHINA/Safety">SAFETY</a> | ||
</li> | </li> | ||
− | <li class="nav-item"> | + | <li class="nav-item dropdown"> |
− | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_LAB" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">LAB</a> | |
+ | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
+ | <a class="dropdown-item" href="/Team:CSU_CHINA/LabTasks">LABTASK</a> | ||
+ | <a class="dropdown-item" href="/Team:CSU_CHINA/Notebook">NOTEBOOK</a> | ||
+ | <a class="dropdown-item" href="/Team:CSU_CHINA/Protocols">PROTOCALS</a> | ||
+ | </div> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">TEAM</a> | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_TEAM" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">TEAM</a> |
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/Collaborations" title="">COLLABORATIONS</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Collaborations" title="">COLLABORATIONS</a> | ||
Line 124: | Line 133: | ||
</li> | </li> | ||
<li class="nav-item"> | <li class="nav-item"> | ||
− | <a class="nav-link" href="">JUDGING</a> | + | <a class="nav-link" href="/Team:CSU_CHINA/Judging">JUDGING</a> |
</li> | </li> | ||
</ul> | </ul> | ||
Line 130: | Line 139: | ||
</nav> | </nav> | ||
+ | <style> | ||
+ | #labLoad, | ||
+ | #labLoad img, | ||
+ | #labLoad div{ | ||
+ | display: flex; | ||
+ | justify-content: center; | ||
+ | align-items: center; | ||
+ | } | ||
+ | #labLoad div{ | ||
+ | width: 300px; | ||
+ | height: 300px; | ||
+ | } | ||
+ | #labload h1, | ||
+ | #labLoad img, | ||
+ | #labLoad .lodt, | ||
+ | #labLoad .lodo, | ||
+ | #labLoad .lodb{ | ||
+ | position: absolute; | ||
+ | } | ||
+ | #labLoad .lodt{ | ||
+ | border-top: 10px solid tomato; | ||
+ | } | ||
+ | #labLoad .lodo{ | ||
+ | border-top: 10px solid orange; | ||
+ | transform: rotate(120deg); | ||
+ | } | ||
+ | #labLoad .lodb{ | ||
+ | border-top: 10px solid dodgerblue; | ||
+ | transform: rotate(240deg); | ||
+ | } | ||
+ | #labLoad img{ | ||
+ | width: 200px; | ||
+ | height: 200px; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | #labLoad .lodt, | ||
+ | #labLoad .lodo, | ||
+ | #labLoad .lodb{ | ||
+ | animation: loading linear 0.5s infinite; | ||
+ | } | ||
+ | @keyframes loading { to{ transform: rotate(360deg); }} | ||
+ | </style> | ||
+ | |||
+ | <div class="container-fluid bg-dark align-middle fixed-top h-100" id="labLoad"> | ||
+ | <div> | ||
+ | <img class="rounded-circle" src="https://static.igem.org/mediawiki/2019/8/8a/T--CSU_CHINA--SGoldMedal.png" alt=""> | ||
+ | <div class="rounded-circle lodt"></div> | ||
+ | <div class="rounded-circle lodo"></div> | ||
+ | <div class="rounded-circle lodb"></div> | ||
+ | </div> | ||
+ | <h1 class="text-center text-light display-3 font-weight-bold ml-5 display-3">loading……</h1> | ||
+ | </div> | ||
+ | <script> $(document).ready(()=>{ setTimeout(()=>{ $("#labLoad").hide(); }, 800) });</script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 03:48, 9 December 2019
![](https://static.igem.org/mediawiki/2019/8/8a/T--CSU_CHINA--SGoldMedal.png)