Team:TU-Eindhoven/Template:BaseFooter

From 2013.igem.org

(Difference between revisions)
 
(22 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 18: Line 21:
         $this.remove();
         $this.remove();
});
});
-
var refnr = 1;
+
//$('.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>');
-
$('.tue-reference').each(function() {
+
$(function() {
-
    var $this = $(this);
+
$(window).scroll(function() {
-
    $('.tue-reflist').append("" + refnr + ". " + $this.html() + "<br />");
+
if($(this).scrollTop() != 0) {
-
    $this.html("<sup class="tue-inlineref">[" + refnr + "]</sup>");
+
$('.tue-gototop-sticky').fadeIn();
-
    refnr = refnr + 1;
+
} 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