Difference between revisions of "Team:TUDelft/Header"

Line 4: Line 4:
 
         <meta http-equiv="x-ua-compatible" content="IE=edge" />
 
         <meta http-equiv="x-ua-compatible" content="IE=edge" />
 
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
+
<script>
 +
$('.js-anchor-link').click(function(e){
 +
  e.preventDefault();
 +
  var target = $($(this).attr('href'));
 +
  if(target.length){
 +
    var scrollTo = target.offset().top;
 +
    $('body, html').animate({scrollTop: scrollTo+'px'}, 800);
 +
  }
 +
});
 +
</script>
 
         <style>
 
         <style>
 
             /*  om MediaWiki style weg te halen*/
 
             /*  om MediaWiki style weg te halen*/
Line 22: Line 31:
 
                 color: #00A6D6
 
                 color: #00A6D6
 
             }
 
             }
div.pinda {
+
a.pinda {
  
 
     display: block;
 
     display: block;

Revision as of 20:45, 21 October 2019