Team:BNU-China/profile.html
From 2014.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
{{Team:BNU-China/head}} | {{Team:BNU-China/head}} | ||
<html> | <html> | ||
- | < | + | <script type="text/javascript"> |
- | + | $(document).ready(function() { | |
- | + | ||
- | + | var | |
- | + | speed = 1000, // animation speed | |
- | + | $wall = $('#portfolio .items'), | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | function | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | masonryOptions = { // initial masonry options | |
- | + | ||
- | + | itemSelector: '.box:not(.invis)', | |
- | + | animate: true, | |
- | + | animationOptions: { | |
- | + | duration: speed, | |
- | + | queue: false | |
- | + | } | |
- | + | }; | |
- | + | ||
- | + | $wall.imagesLoaded(function(){ | |
- | + | ||
- | + | $wall.masonry(masonryOptions); | |
- | + | ||
- | + | // Create array of filters from link href | |
- | + | var arrFilter = []; | |
- | + | $('#filtering-nav a').each(function(){ | |
- | + | fhash = $(this).attr('href').replace('#',''); | |
- | + | if(fhash != 'all'){ | |
- | + | arrFilter.push(fhash); | |
- | + | } | |
- | + | }); | |
- | + | ||
- | + | // Get the parameter value after the # symbol | |
- | + | var url=document.URL.split('#')[1]; | |
- | + | if(url == undefined){ | |
- | + | url = 'all'; | |
- | + | } | |
- | + | $('#filtering-nav a.'+url).parent().addClass('active'); | |
- | if ( | + | |
- | + | if(jQuery.inArray(url, arrFilter) > '-1'){ | |
- | + | // set masonry options animate to false | |
- | + | masonryOptions.animate = false; | |
- | + | // hide boxes that don't match the filter class | |
- | + | $wall.children().not('.'+url).toggleClass('invis').hide(); | |
- | + | } | |
- | + | // imageSetCss($(".box")); | |
- | + | // run masonry again | |
- | + | $wall.masonry(masonryOptions); | |
- | + | // imageFadeIn($(".box")); | |
- | + | $wall.animate({opacity: 1},1000); | |
- | + | ||
- | function | + | }); |
- | + | ||
- | + | $('#filtering-nav a').click(function(e){ | |
- | + | var color = $(this).attr('class'); | |
- | function | + | filterClass = '.' + color; |
- | + | $('#filtering-nav li').removeClass('active'); | |
- | + | $(this).parent().addClass('active'); | |
- | + | ||
- | + | if(filterClass=='.all') { | |
- | + | // show all hidden boxes | |
- | + | $wall.children('.invis').toggleClass('invis').fadeIn(speed); | |
- | + | } else { | |
- | + | // hide visible boxes | |
- | + | $wall.children().not(filterClass).not('.invis').toggleClass('invis').fadeOut(speed); | |
- | + | // show hidden boxes | |
- | + | $wall.children(filterClass+'.invis').toggleClass('invis').fadeIn(speed); | |
- | + | } | |
- | + | $wall.masonry({animate: true}); | |
- | + | // set hash in URL | |
- | + | location.hash = color; | |
- | + | e.preventDefault(); | |
- | + | }); | |
- | + | }); | |
- | + | $.fn.imagesLoaded = function(a) { | |
- | + | var | |
- | + | b=this.find("img"), | |
- | + | c=[], | |
- | + | d=this, | |
- | + | e=b.length; | |
- | + | ||
- | + | if(!b.length){ | |
- | + | a.call(this); | |
- | + | return this | |
- | + | } | |
- | + | b.one("load error",function(){ | |
- | + | --e===0&&(e=b.length,b.one("load error",function(){ | |
- | + | --e===0&&a.call(d)}).each(function(){ | |
- | + | this.src=c.shift() | |
- | + | }) | |
- | + | )} | |
- | + | ).each(function(){ | |
- | + | c.push(this.src),this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" | |
- | + | }); | |
- | + | return this | |
- | + | }; | |
- | + | </script> | |
- | + | <h2>Our Team Profile</h2> | |
- | + | <p>This is a team full of creative and happiness.</p> | |
- | + | ||
- | + | <!-- Begin Portfolio --> | |
- | + | <div id="portfolio"> | |
- | + | <ul id="filtering-nav"> | |
- | // | + | <li>Filter:</li> |
- | </ | + | <li><a class="all" href="#all">All</a></li> |
- | < | + | <li><a class="cat1" href="#cat1">Students</a></li> |
+ | <li><a class="cat2" href="#cat2">Advisors</a></li> | ||
+ | <li><a class="cat3" href="#cat3">Instructors</a></li> | ||
+ | </ul> | ||
+ | <div class="clear"></div> | ||
+ | <div class="items"> | ||
+ | <div class="box col4 cat1"><img class="teamprofile1" src="style/images/art/p1.jpg" alt=""><b>Wang Xuan</b><br/>Captain</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile2" src="style/images/art/p2.jpg" alt="" /><b>Liu Bing</b><br/>Wiki Design</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile3" src="style/images/art/p3.jpg" alt="" /><b>Feng Jing</b><br/>Lab work </div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile4" src="style/images/art/p4.jpg" alt="" /><b>Wu Hanqin</b><br/>Art</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile5" src="style/images/art/p5.jpg" alt="" /><b>Huang Li</b><br/>public outreach</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile6" src="style/images/art/p6.jpg" alt="" /><b>Hou Yuelong</b><br/>Safety design</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile7" src="style/images/art/p7.jpg" alt="" /><b>Li Siyao</b><br/>Modelling</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile8" src="style/images/art/p8.jpg" alt="" /><b>Zhang Shu</b><br/>Deliever system design</div> | ||
+ | <div class="box col4 cat1"><img class="teamprofile9" src="style/images/art/p9.jpg" alt="" /><b>Huang Shengnan</b><br/>...</div> | ||
+ | <div class="box col4 cat2"><img class="teamprofile10" src="style/images/art/p10.jpg" alt="" /><b>Ren Qidong</b></div> | ||
+ | <div class="box col4 cat2"><img class="teamprofile11" src="style/images/art/p11.jpg" alt="" /><b>Huo Liang</b></div> | ||
+ | <div class="box col4 cat3"><img class="teamprofile12" src="style/images/art/p12.jpg" alt="" /><b>Dr: Xiang Benqiong</b></div> | ||
+ | <div class="box col4 cat3"><img class="teamprofile13" src="style/images/art/p13.jpg" alt="" /><b>Dr: Zhu Xudong</b></div> | ||
+ | <div class="box col4 cat3"><img class="teamprofile14" src="style/images/art/p14.jpg" alt="" /><b>Dr: Yang Dong</b></div> | ||
+ | </div> | ||
+ | <!-- .wrap --> | ||
+ | </div> | ||
+ | <!-- End Portfolio --> | ||
</html> | </html> | ||
{{Team:BNU-China/foot}} | {{Team:BNU-China/foot}} |
Revision as of 09:40, 31 July 2014
Our Team Profile
This is a team full of creative and happiness.
Wang Xuan
Captain
Captain
Liu Bing
Wiki Design
Wiki Design
Feng Jing
Lab work
Lab work
Wu Hanqin
Art
Art
Huang Li
public outreach
public outreach
Hou Yuelong
Safety design
Safety design
Li Siyao
Modelling
Modelling
Zhang Shu
Deliever system design
Deliever system design
Huang Shengnan
...
...
Ren Qidong
Huo Liang
Dr: Xiang Benqiong
Dr: Zhu Xudong
Dr: Yang Dong
The Story of E.coli Prometheus
BNU-China