Team:UC Davis/Project Overview

From 2013.igem.org

(Difference between revisions)
Line 28: Line 28:
         });
         });
 +
$('.progress li').click(function(){
 +
   
 +
var $ncurrent = $(this);
 +
        $('.progress li').removeClass('current').removeClass('previous');
 +
        $('#slides IMG').removeClass('current').removeClass('previous');
 +
        $ncurrent.addClass('current');
 +
        var ncurrentindex = $ncurrent.index();
 +
if(  ncurrentindex=== 0) $current = $('#slides IMG:first');
 +
        if(  ncurrentindex=== 1) $current = $('#slides IMG:eq(1)');
 +
        if(  ncurrentindex=== 2) $current = $('#slides IMG:eq(2)');
 +
        if(  ncurrentindex=== 3) $current = $('#slides IMG:last');
 +
        $current.addClass('current');
 +
 +
});
}
}
Line 36: Line 50:
</script>
</script>
-
  </script>
+
   
-
 
+
-
</script>
+
 +
<!-- slide script ends here -->
<style type="text/css">
<style type="text/css">

Revision as of 22:58, 27 August 2013