Difference between revisions of "Team:NCKU Tainan/js/team member js"

(Remove igem template style)
(Remove igem template style)
Line 1: Line 1:
$( '.igem_2018_team_content.igem_2018_team_column_wrapper' ).css( 'display' , 'none' );
+
$( '.igem_2018_team_content .igem_2018_team_column_wrapper' ).css( 'display' , 'none' );
 
function test(id) {
 
function test(id) {
 
$('.item').removeClass('active');
 
$('.item').removeClass('active');

Revision as of 07:27, 10 June 2018

$( '.igem_2018_team_content .igem_2018_team_column_wrapper' ).css( 'display' , 'none' ); function test(id) { $('.item').removeClass('active'); $(id).find('.item').toggleClass('active'); } function bar(id) { $('.barclass').removeClass('active'); $(id).find('.barclass').toggleClass('active'); } $(function(){

   $('.gototop').click(function(){

$('html, body').animate({scrollTop:0},600); return false; }); $('#list1').click(function(){ $('html, body').animate({ scrollTop: $(".principle").offset().top }, 1000); }); $('#list2').click(function(){ $('html, body').animate({ scrollTop: $(".advisor").offset().top }, 1000); }); $('#list3').click(function(){ $('html, body').animate({ scrollTop: $(".wet").offset().top }, 1000); }); $('#list4').click(function(){ $('html, body').animate({ scrollTop: $(".dry").offset().top }, 1000); }); $('#list5').click(function(){ $('html, body').animate({ scrollTop: $(".hp").offset().top }, 1000); }); }); function turn(id) { $(id).find('.card').toggleClass('flipped'); }