Difference between revisions of "Template:CSS UCL6"

Line 13: Line 13:
  
 
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
 
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
+
 
  $(function() {
+
 
  $('a[href*=#]:not([href=#])').click(function() {
+
  <script type="text/javascript" src="https://2015.igem.org/Team:UCL/Smoothscroll?action=raw&amp;ctype=text/javascript"></script>
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
+
 
  var target = $(this.hash);
+
   <script>
   target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
+
smoothScroll.init();
  if (target.length) {
+
</script>
    $('html,body').animate({
+
    
      scrollTop: target.offset().top
+
 
    }, 1000);
+
    
    return false;
+
   }
+
}
+
});
+
});
+
   </script>
+
 
    
 
    
 
<style type="text/css">
 
<style type="text/css">

Revision as of 23:10, 18 September 2015

'