Team:TU-Eindhoven/Template:BaseFooter

From 2013.igem.org

(Difference between revisions)
 
(29 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
</div>
</div>
 +
<div class="tue-gototop-sticky"><a href="#top" title="Go to the top of the page">Go to Top &nbsp;&nbsp;<i class="icon-arrow-up"></i></a></div>
 +
<script src="https://2013.igem.org/Team:TU-Eindhoven/JS:jquery?action=raw&ctype=text/js"></script>
<script src="https://2013.igem.org/Team:TU-Eindhoven/JS:jquery?action=raw&ctype=text/js"></script>
<script src="https://2013.igem.org/Team:TU-Eindhoven/JS:Bootstrap?action=raw&ctype=text/js"></script>
<script src="https://2013.igem.org/Team:TU-Eindhoven/JS:Bootstrap?action=raw&ctype=text/js"></script>
Line 9: Line 11:
$('#toctitle').addClass('nav-header');
$('#toctitle').addClass('nav-header');
$('#groupparts').addClass('well');
$('#groupparts').addClass('well');
-
$('#bodyContent').addClass('container');
+
//$('#bodyContent').addClass('container');
$('.image img').addClass('img-rounded');
$('.image img').addClass('img-rounded');
$('.tue-imagespan img').addClass('img-rounded');
$('.tue-imagespan img').addClass('img-rounded');
 +
$('.tue-float img').addClass('img-rounded');
$("a.tue-tooltip").tooltip({'selector': '','placement': 'top'});
$("a.tue-tooltip").tooltip({'selector': '','placement': 'top'});
$('p').each(function() {
$('p').each(function() {
Line 17: Line 20:
     if($this.html().replace(/\s|&nbsp;/g, '').length == 0)
     if($this.html().replace(/\s|&nbsp;/g, '').length == 0)
         $this.remove();
         $this.remove();
 +
});
 +
//$('.tue-content h2:not(.well h2, .thumbnail h2, .tue-content h2:first), .tue-content h3:not(.well h3, .thumbnail h3, .tue-memberright)').append('<a href="#top" class="tue-upbutton" title="Go to the top of the page"><i class="icon-arrow-up"></i></a>');
 +
$(function() {
 +
$(window).scroll(function() {
 +
if($(this).scrollTop() != 0) {
 +
$('.tue-gototop-sticky').fadeIn();
 +
} else {
 +
$('.tue-gototop-sticky').fadeOut();
 +
}
 +
});
 +
 +
$('.tue-gototop-sticky').click(function() {
 +
$('body,html').animate({scrollTop:0},800);
 +
});
});
});
</script>
</script>
</html>
</html>

Latest revision as of 13:56, 4 September 2013