Template:Team:UW/CSS

From 2014.igem.org

(Difference between revisions)
Line 2: Line 2:
<head>
<head>
<style type="text/css">
<style type="text/css">
-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 
-
<script>
 
-
$(function() {
 
-
  $('a[href*=#]:not([href=#])').click(function() {
 
-
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
 
-
      var target = $(this.hash);
 
-
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
 
-
      if (target.length) {
 
-
        $('html,body').animate({
 
-
          scrollTop: target.offset().top
 
-
        }, 1000);
 
-
        return false;
 
-
      }
 
-
    }
 
-
  });
 
-
});
 
-
</script>
 
#contentSub, #footer-box, #catlinks, #search-controls,#p-logo, .printfooter, .visualClear {display: none;} /*-- hides default wiki settings --*/
#contentSub, #footer-box, #catlinks, #search-controls,#p-logo, .printfooter, .visualClear {display: none;} /*-- hides default wiki settings --*/
Line 591: Line 574:
<!--welcome box -->
<!--welcome box -->
 +
 +
 +
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 +
<script>
 +
$(function() {
 +
  $('a[href*=#]:not([href=#])').click(function() {
 +
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
 +
      var target = $(this.hash);
 +
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
 +
      if (target.length) {
 +
        $('html,body').animate({
 +
          scrollTop: target.offset().top
 +
        }, 1000);
 +
        return false;
 +
      }
 +
    }
 +
  });
 +
});
 +
</script>
<tr>
<tr>

Revision as of 22:26, 13 October 2014

University of Washington iGEM 2014