Template:Team:Valencia Biocampus/Templates/Header
From 2014.igem.org
(Difference between revisions)
(19 intermediate revisions not shown) | |||
Line 26: | Line 26: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
+ | |||
// cache the id | // cache the id | ||
var navbox = $('#myTab'); | var navbox = $('#myTab'); | ||
Line 57: | Line 58: | ||
} | } | ||
}); | }); | ||
- | $(".container.withBackground").after("<div id='footer2'></div>"); | + | $(".container.withBackground").after("<div id='footer2'>Valencia Biocampus. iGEM 2014<div class='footer-link'><a href='http://www.facebook.com/pages/València-Biocampus-IGEM/284330661673814'><img src='https://static.igem.org/mediawiki/2013/9/91/1380788391_facebook_square.png' alt='Facebook' title='Facebook' /></a><a href='http://twitter.com/vlc_biocampus'><img src='https://static.igem.org/mediawiki/2013/b/b6/1380788385_twitter_square.png' alt='Twitter' title='Twitter' /></a><a href='http://www.youtube.com/channel/UCvnn8shHH64omOF17Ei4H7w'><img src='https://static.igem.org/mediawiki/2013/e/ea/1380788439_youtube_square_color.png' alt='Youtube' title='Youtube' /></a><a href='http://instagram.com/vlc_biocampus'><img src='https://static.igem.org/mediawiki/2013/5/5f/1380788401_instagram_square_color.png' alt='Instagram' title='Instagram' /></a></div></div>"); |
+ | |||
+ | |||
}); | }); | ||
+ | |||
</script> | </script> | ||
<div class="container" id="headerWrapper"> | <div class="container" id="headerWrapper"> | ||
Line 164: | Line 168: | ||
*/ | */ | ||
} | } | ||
+ | if ($('.tocWrapperiGEM').length ) { | ||
+ | var tocWrapperOffsetLeft = $('.tocWrapper').offset().left; | ||
+ | $('.tocWrapperiGEM').affix({ | ||
+ | offset: { | ||
+ | top: $('.tab-pane.active').offset().top | ||
+ | , bottom: function () { | ||
+ | return (this.bottom = $('.footer').outerHeight(true)) | ||
+ | } | ||
+ | } | ||
+ | }) | ||
+ | /* | ||
+ | $('.tocWrapperiGEM').on('affixed.bs.affix', function () { | ||
+ | //alert(tocWrapperOffsetLeft ); | ||
+ | $('.affix').css('left', tocWrapperOffsetLeft); | ||
+ | }) | ||
+ | $('.tocWrapperiGEM').on('affixed-top.bs.affix', function () { | ||
+ | $('.affix-top').css('left', 'auto'); | ||
+ | }) | ||
+ | */ | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 01:33, 18 October 2014