$(function(){
$(document).attr("title","Entrepreneurship - Team:SSTi-SZGD - 2018.igem.org");
//transition $(".page_content").addClass("transition"); $(".page_content").find("*").addClass("transition"); $(".Marketing .content").removeClass("transition"); $(".Marketing .content").find("*").removeClass("transition");
//Navigation $(".btn_nav .Application a").eq(1).addClass("active"); $(".sub_nav li.Application a").eq(1).addClass("active");
$(".page_nav ul li").removeClass("active"); $(".page_nav ul li").eq(3).addClass("active");
if(window.location.search==""){ $(".page_title").text("Entrepreneurship"); }else{ $(".page_title").text("商业策划书"); }
//No scrolling function unScroll() {
var top = $(document).scrollTop(); $(document).on('scroll.unable',function(e){ $(document).scrollTop(top); });
} //scrolling function removeUnScroll() { $(document).unbind("scroll.unable"); }
$(".PDF").mousemove(unScroll); $(".PDF").mouseout(removeUnScroll);
if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry|iPad/i.test(navigator.userAgent)){ $("embed").css("display","none"); $(".Mpdf").css("display","block"); }else{ $("embed").css("display","block"); $(".Mpdf").css("display","none"); }
$(window).resize(function(){ if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry|iPad/i.test(navigator.userAgent)){ $("embed").css("display","none"); $(".Mpdf").css("display","block"); }else{ $("embed").css("display","block"); $(".Mpdf").css("display","none"); $("embed").remove(); var str='<embed src="FROZEN AGE MICROPATCH BUSINESS PLAN.pdf" type="application/pdf" width="100%" height="600" />'; $(".PDF").html(str); } });
$(".Marketing img").each(function(index){
var control=0;
$(this).click(function(){
if(control==0){
$(".Marketing .Dcontent").eq(index).slideDown();
control=1;
}else{
$(".Marketing .Dcontent").eq(index).slideUp();
control=0;
}
});
});
//card_content_Tab
$(".card_title span").each(function(index){
$(this).click(function(){
$(".card_title div").removeClass("active");
$(".card_title div").eq(index).addClass("active");
$(".card_content .card").css("display","none");
$(".card_content .card").eq(index).css("display","block");
if(index==0){
$(".card_content").css("border-radius","0 10px 10px 10px");
}else if(index==1||index==2){
$(".card_content").css("border-radius","10px");
}else{
$(".card_content").css("border-radius","10px 0 10px 10px");
}
});
});
});