|
|
Line 2: |
Line 2: |
| <html> | | <html> |
| <head> | | <head> |
- | <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
| |
- | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
| |
- | <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
| |
| <script> | | <script> |
- | | + | document.title = "MIT iGEM - Circuit Production"; |
- | $(document).ready(function(){
| + | $(document).ready(function() { |
- | document.title = "MIT iGEM - Results Overview";
| + | $("#accordion").accordion("option", "animated", false); |
- | $('#nav_motivation a').first().css('background-color','#333333');
| + | $("#accordion").accordion("activate", 3); |
- | $('.col_list li').css('cursor','pointer');
| + | $("#accordion").accordion("option", "animated", 'slide'); |
- | $('.col_list li').hover(function() {
| + | |
- | $(this).css('background-color','#a3abae');
| + | |
- | }, function() {
| + | |
- | $(this).css('background-color','#ffffff');
| + | |
- | });
| + | |
- | | + | |
- | $('#accordion').accordion({autoHeight:false});
| + | |
- | | + | |
- | $('.col_list li').click(function () {
| + | |
- | var name = $(this).attr('id');
| + | |
- | window.location.href=name;
| + | |
- | });
| + | |
- |
| + | |
- | $('.section_page_link').click(function () {
| + | |
- | var url = $(this).attr('href'); | + | |
- | if (window.location.href.indexOf(url) == -1) {
| + | |
- | window.location.href=$(this).attr('href');
| + | |
- | }
| + | |
- | });
| + | |
- | | + | |
- | | + | |
| }); | | }); |
- |
| |
- |
| |
- | //Scrollbar moving stuff
| |
- | $(function() {
| |
- |
| |
- | var $sidebar = $("#col_nav"),
| |
- | offset = $sidebar.offset(),
| |
- | topPadding = 0,
| |
- | $window = $(window);
| |
- |
| |
- |
| |
- | $window.scroll(function() {
| |
- | if ($window.scrollTop() > offset.top - topPadding) {
| |
- | $sidebar.css({'margin-top': $window.scrollTop() - offset.top + topPadding})
| |
- | } else {
| |
- | $sidebar.css({'margin-top': 0})
| |
- | }
| |
- | });
| |
- | //Moving the menu down the screen, if we jump to the middle of the page.
| |
- | $(window).scroll();
| |
- |
| |
- | /*
| |
- | $window.scroll(function() {
| |
- | if ($window.scrollTop() > offset.top - topPadding) {
| |
- | $sidebar.stop().animate({
| |
- | marginTop: $window.scrollTop() - offset.top + topPadding,
| |
- | }, 200);
| |
- | } else {
| |
- | $sidebar.stop().animate({
| |
- | marginTop: 0
| |
- | }, 200);
| |
- | }
| |
- | });
| |
- | */
| |
- | });
| |
- |
| |
| </script> | | </script> |
| </head> | | </head> |
Line 74: |
Line 14: |
| <div id="col_center"> | | <div id="col_center"> |
| <div id="block-content"> | | <div id="block-content"> |
- |
| |
- |
| |
- |
| |
| | | |
| </div><!--end block-content--> | | </div><!--end block-content--> |