$(function(){
$(document).attr("title","Attributions - Team:SSTi-SZGD - 2018.igem.org");
//Navigation $(".btn_nav .Acknowledgements a").eq(2).addClass("active");
$(".page_nav ul li").removeClass("active"); $(".page_nav ul li").eq(5).addClass("active");
if(window.location.search==""){ $(".page_title").text("Attributions"); }else{ $(".page_title").text("归因"); }
if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry|iPad/i.test(navigator.userAgent)){
//Banner if($(window).width()<768){ $(".Banner").css({"height":"250px","background-size":"80%","margin":"50px 0 0 0"}); }else{ $(".Banner").css({"height":"500px","background-size":"70%","margin":"100px 0 0 0"}); } if(window.orientation=="-90"||window.orientation=="90"){ if($(window).width()<768){ $(".Banner").css({"height":"500px","background-size":"80%","margin":"50px 0 0 0"}); }else{ $(".Banner").css({"height":"500px","background-size":"60%","margin":"100px 0 0 0"}); } }
}
$(window).resize(function(){
if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry|iPad/i.test(navigator.userAgent)){
//Banner if($(window).width()<768){ $(".Banner").css({"height":"250px","background-size":"80%","margin":"50px 0 0 0"}); }else{ $(".Banner").css({"height":"500px","background-size":"70%","margin":"100px 0 0 0"}); } if(window.orientation=="-90"||window.orientation=="90"){ if($(window).width()<768){ $(".Banner").css({"height":"500px","background-size":"80%","margin":"50px 0 0 0"}); }else{ $(".Banner").css({"height":"500px","background-size":"60%","margin":"100px 0 0 0"}); } } }
});
});