(18 intermediate revisions by 2 users not shown) | |||
Line 64: | Line 64: | ||
cursor:pointer; | cursor:pointer; | ||
} | } | ||
+ | .jumpBtn ul{ | ||
+ | margin-left:0; | ||
+ | } | ||
</style> | </style> | ||
+ | |||
<div id="hide"> | <div id="hide"> | ||
<div id="hider"> | <div id="hider"> | ||
Line 71: | Line 75: | ||
</div> | </div> | ||
<div class="firstph"> | <div class="firstph"> | ||
− | <img alt=" | + | <div class="c-banner"> |
+ | <div class="banner"> | ||
+ | <ul> | ||
+ | <li><img alt="1" src="https://static.igem.org/mediawiki/2019/6/64/T--UESTC-China--Team_photo_1.jpg"></li> | ||
+ | <li><img alt="2" src="https://static.igem.org/mediawiki/2019/8/81/T--UESTC-China--Team_photo_2.jpg"></li> | ||
+ | <li><img alt="3" src="https://static.igem.org/mediawiki/2019/c/ce/T--UESTC-China--Team_photo_3.jpg"></li> | ||
+ | <li><img alt="4" src="https://static.igem.org/mediawiki/2019/3/3a/T--UESTC-China--Team_photo_4.jpg"></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="jumpBtn"> | ||
+ | <ul> | ||
+ | <li jumpImg="0"></li> | ||
+ | <li jumpImg="1"></li> | ||
+ | <li jumpImg="2"></li> | ||
+ | <li jumpImg="3"></li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </div> | ||
</div> | </div> | ||
Line 187: | Line 209: | ||
<div class=" col-sm-6 col-md-4" > | <div class=" col-sm-6 col-md-4" > | ||
− | <img src="https://static.igem.org/mediawiki/2019/ | + | <img src="https://static.igem.org/mediawiki/2019/5/5e/T--UESTC-China--zhong.png" style="width: 100%" alt="logo"> |
<h2>Zhaohui Zhong</h2> | <h2>Zhaohui Zhong</h2> | ||
</div> | </div> | ||
Line 226: | Line 248: | ||
</div> | </div> | ||
+ | |||
+ | <div class="row"> | ||
+ | <h1 style="margin-left: 20px">Team Video</h1> | ||
+ | <hr> | ||
+ | <div class="mainbody" style="text-align:center">The following team video contains horrorible spots.<br> | ||
+ | People with heart disease, high blood pressure and other diseases please be careful.<br> | ||
+ | Thank you. | ||
+ | </div> | ||
+ | <div style="text-align: center"> | ||
+ | <video width="80%" poster="https://static.igem.org/mediawiki/2019/9/9c/T--UESTC-China--Team_video_1.jpg" controls preload> | ||
+ | <source src="https://static.igem.org/mediawiki/2019/4/4f/T--UESTC-China--Team_video.mp4" type="video/mp4"> | ||
+ | </video> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
</div> | </div> | ||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"> | <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"> | ||
Line 342: | Line 379: | ||
var oHider=document.getElementById("hider"); | var oHider=document.getElementById("hider"); | ||
oHider.style.left=document.body.clientWidth/2-150+"px";//居中 150是图片宽度一半 | oHider.style.left=document.body.clientWidth/2-150+"px";//居中 150是图片宽度一半 | ||
+ | oHider.style.top=window.screen.availHeight/2-150+"px"; | ||
window.onresize=function(){//屏幕变化事件 滚动事件由fixed解决 | window.onresize=function(){//屏幕变化事件 滚动事件由fixed解决 | ||
var oHider=document.getElementById("hider"); | var oHider=document.getElementById("hider"); | ||
oHider.style.left=document.body.clientWidth/2-150+"px";//居中 | oHider.style.left=document.body.clientWidth/2-150+"px";//居中 | ||
+ | oHider.style.top=window.screen.availHeight/2-150+"px"; | ||
} | } | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | var time=null; | ||
+ | //记录当前位子 | ||
+ | var nexImg = 0; | ||
+ | //用于获取轮播图图片个数 | ||
+ | var imgLength = $(".c-banner .banner ul li").length; | ||
+ | //当时动态数据的时候使用,上面那个删除 | ||
+ | // var imgLength =0; | ||
+ | //设置底部第一个按钮样式 | ||
+ | $(".c-banner .jumpBtn ul li[jumpImg="+nexImg+"]").css("background-color","#b6caf2"); | ||
+ | |||
+ | //页面加载 | ||
+ | $(document).ready(function(){ | ||
+ | // dynamicData(); | ||
+ | //启动定时器,设置时间为5秒一次 | ||
+ | time =setInterval(intervalImg,5000); | ||
+ | }); | ||
+ | |||
+ | //轮播图 | ||
+ | function intervalImg(){ | ||
+ | if(nexImg<imgLength-1){ | ||
+ | nexImg++; | ||
+ | }else{ | ||
+ | nexImg=0; | ||
+ | } | ||
+ | |||
+ | //将当前图片试用绝对定位,下一张图片试用相对定位 | ||
+ | $(".c-banner .banner ul img").eq(nexImg-1).css("position","absolute"); | ||
+ | $(".c-banner .banner ul img").eq(nexImg).css("position","relative"); | ||
+ | |||
+ | $(".c-banner .banner ul li").eq(nexImg).css("display","block"); | ||
+ | $(".c-banner .banner ul li").eq(nexImg).stop().animate({"opacity":1},1000); | ||
+ | $(".c-banner .banner ul li").eq(nexImg-1).stop().animate({"opacity":0},1000,function(){ | ||
+ | $(".c-banner .banner ul li").eq(nexImg-1).css("display","none"); | ||
+ | }); | ||
+ | $(".c-banner .jumpBtn ul li").css("background-color","white"); | ||
+ | $(".c-banner .jumpBtn ul li[jumpImg="+nexImg+"]").css("background-color","#b6caf2"); | ||
+ | } | ||
+ | |||
+ | //轮播图底下按钮 | ||
+ | //动态数据加载的试用应放在请求成功后执行该代码,否则按钮无法使用 | ||
+ | $(".c-banner .jumpBtn ul li").each(function(){ | ||
+ | //为每个按钮定义点击事件 | ||
+ | $(this).click(function(){ | ||
+ | clearInterval(time); | ||
+ | $(".c-banner .jumpBtn ul li").css("background-color","white"); | ||
+ | jumpImg = $(this).attr("jumpImg"); | ||
+ | if(jumpImg!=nexImg){ | ||
+ | var after =$(".c-banner .banner ul li").eq(jumpImg); | ||
+ | var befor =$(".c-banner .banner ul li").eq(nexImg); | ||
+ | |||
+ | //将当前图片试用绝对定位,下一张图片试用相对定位 | ||
+ | $(".c-banner .banner ul img").eq(nexImg).css("position","absolute"); | ||
+ | $(".c-banner .banner ul img").eq(jumpImg).css("position","relative"); | ||
+ | |||
+ | after.css("display","block"); | ||
+ | after.stop().animate({"opacity":1},1000); | ||
+ | befor.stop().animate({"opacity":0},1000,function(){ | ||
+ | befor.css("display","none"); | ||
+ | }); | ||
+ | nexImg=jumpImg; | ||
+ | } | ||
+ | $(this).css("background-color","#b6caf2"); | ||
+ | time =setInterval(intervalImg,5000); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | jQuery(function($) { | ||
+ | $(".mybtn").click(function() { | ||
+ | $("html, body").animate({ | ||
+ | scrollTop: $($(this).attr("href")).offset().top + "px" | ||
+ | }, 1000); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | |||
</script> | </script> | ||
Latest revision as of 02:05, 21 October 2019
Team Leader
Changyu Li
Kexin Gao
Yuanjing Liu
Team member
Jiawei Huo
Hairong Wang
Yingying Cao
Jing Yao
Bojun Hou
Linhan Huang
Congyu Xu
Minghao Fang
Qiuyun Huang
Zixin Wang
Xingyu Liao
Jiayi Lu
Yubing Zhou
Qiugu Meng
Team Adviser
Zhaohui Zhong
Jianzhe Yang
Zijian Wu
Instructors
Lixia Tang
Yong Zhang
Juan Feng
Xuelian Zheng
Team Video
The following team video contains horrorible spots.
People with heart disease, high blood pressure and other diseases please be careful.
Thank you.
People with heart disease, high blood pressure and other diseases please be careful.
Thank you.