(Prototype team page) |
|||
Line 1: | Line 1: | ||
− | |||
<html> | <html> | ||
+ | <head> | ||
+ | <meta charset="utf-8"> | ||
+ | <title>BNU-China</title> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
+ | <meta name="Team" content="BNU-China" /> | ||
+ | <meta name="keywords" content="iGEM 2017" /> | ||
+ | <meta name="author" content="Ziyu Liu(刘梓钰),Zhaodong Wang(王兆栋),Xizong Zhang(张溪棕)"/> | ||
+ | <link type="text/ttf" rel="stylesheet" href="https://2017.igem.org/File:T--BNU-China--CiceroSans.ttf"/> | ||
+ | <link type="text/ttf" rel="stylesheet" href="https://2017.igem.org/File:T--BNU-China--Regular.ttf"/> | ||
+ | <link type="text/css" rel="stylesheet" href="https://2017.igem.org/Template:BNU-China/CSS/background?action=raw&ctype=text/css"/> | ||
+ | <style> | ||
+ | #contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading,.visualClear, .center {display: none;} /*-- hides default wiki settings --*/ | ||
+ | #top_title { | ||
+ | margin-bottom: 0!important; | ||
+ | } | ||
+ | #top_menu_under { | ||
+ | height: 0; | ||
+ | } | ||
− | + | #HQ_page{ | |
− | + | margin-left:0 !important; | |
+ | } | ||
− | + | #globalWrapper,#content{ | |
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | border: 0px; | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | } | ||
+ | #HQ_page p { | ||
+ | text-align: inherit!important; | ||
+ | } | ||
− | + | #HQ_page table,ul { | |
− | + | margin-left: 0 !important; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | #content{ | ||
+ | line-height:normal; | ||
+ | } | ||
− | + | .mw-content-ltr ul { | |
+ | margin: 0 !important; | ||
+ | } | ||
− | + | * { | |
+ | -webkit-box-sizing: border-box;!important | ||
+ | -moz-box-sizing: border-box;!important | ||
+ | box-sizing: border-box;!important | ||
+ | } | ||
− | + | #w_Panel>ul>li>a:visited{ | |
+ | color: rgb(247,237,183); | ||
+ | text-decoration:none; | ||
+ | } | ||
− | + | #w_Panel>ul>li>a:hover{ | |
− | + | color: rgb(247,237,183); | |
− | + | text-decoration:none; | |
+ | } | ||
− | < | + | #w_Panel>ul>li>a:focus{ |
− | + | color: rgb(247,237,183); | |
− | </ | + | text-decoration:none; |
+ | } | ||
+ | </style> | ||
+ | <script type="text/javascript"> | ||
+ | var navWidth; | ||
+ | var navFontSize; | ||
+ | var navTop; | ||
+ | $(document).ready(function(){ | ||
+ | <!--导航栏自适应--> | ||
+ | $("#top_title").hide(); | ||
+ | $("#sideMenu").hide(); | ||
+ | if($(window).width()>=480){ | ||
+ | $("#w_nav>div").hide(); | ||
+ | } | ||
+ | if($(window).width()<480){ | ||
+ | $("#w_nav>ul").hide(); | ||
+ | $("#w_nav>div>ul").hide(); | ||
+ | } | ||
+ | $("#w_nav>ul>li>a").css({"width":$(window).width()/7-10,"font-size":$(window).width()/1280*25}); | ||
+ | $("#w_nav>ul").css({"top":$(window).width()/1280*(-41)}); | ||
+ | $("#w_nav>div>ul").css({"top":$(window).width()/1280*(-41)}); | ||
+ | navWidth=$(window).width(); | ||
+ | navFontSize=$("#w_nav>ul>li>a").css("font-size"); | ||
+ | navTop=$("#w_nav>ul").css("top"); | ||
− | + | $("#w_nav>div>p").click(function(){ | |
− | + | $("#w_nav>div>ul").slideToggle(); | |
− | + | }); | |
− | + | <!--侧栏自适应--> | |
− | + | $("#w_menu>li>ul").hide().click(function(event){ | |
− | + | event.stopPropagation(); | |
− | + | }); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | $("#w_menu>li").click(function(){ | ||
+ | var menuFlag=true; | ||
+ | if($(this).find('ul').is(":visible")) | ||
+ | menuFlag=false; | ||
+ | $("#w_menu>li>ul:visible").slideUp(); | ||
+ | if(menuFlag) | ||
+ | $(this).find('ul').slideToggle(); | ||
+ | }); | ||
+ | $("#w_menu>li>ul>li>p").click(function(){ | ||
+ | var x=$(this).data("id"); | ||
+ | $('html').animate({scrollTop:$(x).offset().top-$("#w_nav").height()*2/3},500); | ||
+ | }); | ||
+ | <!--悟空眼睛--> | ||
+ | $(document).mousemove(function(e){ | ||
+ | var x=$("#eye").width()/2; | ||
+ | var y=$("#eye").height()/2; | ||
+ | $("#eye").css({"left":parseFloat(String((e.pageX-x)/100)),"top":parseFloat(String((e.pageY-$(window).scrollTop()-y)/100))}); | ||
+ | }); | ||
+ | }); | ||
+ | <!--导航栏首页故事自适应--> | ||
+ | $(window).resize(function(){ | ||
+ | if($(window).width()>=480){ | ||
+ | $("#w_nav>div").hide(); | ||
+ | $("#w_nav>ul").show(); | ||
+ | $("#w_nav>ul>li>a").css({"width":$(window).width()/7-10,"font-size":parseFloat(navFontSize)*parseFloat(String($(window).width()))/parseFloat(String(navWidth)),"top":parseFloat(navTop)*parseFloat(String($(window).width()))/parseFloat(String(navWidth))}); | ||
+ | $("#w_nav>ul").css({"top":parseFloat(navTop)*parseFloat(String($(window).width()))/parseFloat(String(navWidth))}); | ||
+ | $("#w_nav>div>ul").css({"top":parseFloat(navTop)*parseFloat(String($(window).width()))/parseFloat(String(navWidth))}); | ||
+ | navWidth=$(window).width(); | ||
+ | navFontSize=$("#w_nav>ul>li>a").css("font-size"); | ||
+ | navTop=$("#w_nav>ul").css("top"); | ||
+ | } | ||
+ | else{ | ||
+ | $("#w_nav>ul").hide(); | ||
+ | $("#w_nav>div").show(); | ||
+ | $("#w_nav>div>ul").hide(); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | </head> | ||
+ | <body style="background-color:rgb(247,237,183);"> | ||
+ | <div id="w_nav" style="top:15px;"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/6/60/T--BNU-China--index2.1.png" alt="Sorry, the image is not spupported by your browser."> | ||
+ | <img id="eye" src="https://static.igem.org/mediawiki/2017/5/53/T--BNU-China--index1.jpg" alt="Sorry, the image is not spupported by your browser." style="width:100;position:absolute;top:-3px;"> | ||
+ | <ul> | ||
+ | <li id="w_Project"><a class="w_a" href="#">Project</a></li> | ||
+ | <li id="w_Modeling"><a class="w_a" href="#">Modeling</a></li> | ||
+ | <li id="w_Practice"><a class="w_a" href="#">Practice</a></li> | ||
+ | <li id="w_home"><a class="w_a" style="opacity:0;" href="#">Home</a></li> | ||
+ | <li id="w_Achievement"><a class="w_a" href="#">Achievement</a></li> | ||
+ | <li id="w_Lab"><a class="w_a" href="#">Lab</a></li> | ||
+ | <li id="w_Safety"><a class="w_a" href="#">Safety</a></li> | ||
+ | </ul> | ||
+ | <div id="w_navMenu" style="text-align:right;margin-top:500px;"> | ||
+ | <p>Menu▼</p> | ||
+ | <ul id="w_navMenuContent"> | ||
+ | <li id="w_Project"><a class="w_a" href="#">Project</a></li> | ||
+ | <li id="w_Modeling"><a class="w_a" href="#">Modeling</a></li> | ||
+ | <li id="w_Practice"><a class="w_a" href="#">Practice</a></li> | ||
+ | <li id="w_Achievement"><a class="w_a" href="#">Achievement</a></li> | ||
+ | <li id="w_Lab"><a class="w_a" href="#">Lab</a></li> | ||
+ | <li id="w_Safety"><a class="w_a" href="#">Safety</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div id="w_content" style="width:100%;"> | ||
+ | <div id="w_Panel" style="text-align:left;"> | ||
+ | <ul id="w_menu"> | ||
+ | <li id="w_menu1"><a class="w_a" href="#">Background</a> | ||
+ | <ul> | ||
+ | <li><p data-id = "#title1">title1</p></li> | ||
+ | <li><p>title2</p></li> | ||
+ | <li><p>title3</p></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li id="w_menu2"><a class="w_a" href="#">Design</a> | ||
+ | <ul> | ||
+ | <li><p href="#">overview</p></li> | ||
+ | <li><p href="#">microtubule</p></li> | ||
+ | <li><p href="#">flagellar filament</p></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li id="w_menu5"><a class="w_a" href="#">Results</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
+ | </body> | ||
</html> | </html> |
Revision as of 01:58, 7 October 2017