Difference between revisions of "Template:Team:Tokyo Tech/template2016"

Line 4: Line 4:
 
<!--
 
<!--
 
body{
 
body{
     background-image: url("https://static.igem.org/mediawiki/2016/1/1e/T--Tokyo_Tech--Buckground2.png");
+
     background-image: url("https://static.igem.org/mediawiki/2016/8/83/Tokyo_Tech_Background.png");
 
     background-repeat: no-repeat;
 
     background-repeat: no-repeat;
 
     background-position: center center;
 
     background-position: center center;
Line 11: Line 11:
 
}
 
}
 
#content{
 
#content{
     background-image: url("https://static.igem.org/mediawiki/2016/1/1e/T--Tokyo_Tech--Buckground2.png");
+
     background-image: url("https://static.igem.org/mediawiki/2016/8/83/Tokyo_Tech_Background.png");
 
     background-repeat: no-repeat;
 
     background-repeat: no-repeat;
 
     background-position: center center;
 
     background-position: center center;
Line 35: Line 35:
 
<script>
 
<script>
 
/**** Scroll Link ****/
 
/**** Scroll Link ****/
+
       
$(function(){
+
        $(function(){
$('.scroll_link').on('click', function(event){
+
            $('.scroll_link').on('click', function(event){
event.preventDefault();
+
                event.preventDefault();
+
               
var $this = $(this);
+
                var $this = $(this);
var linkTo = $this.attr('href');
+
                var linkTo = $this.attr('href');
var $target = $(linkTo);
+
                var $target = $(linkTo);
var pos = $target.offset().top;
+
                var pos = $target.offset().top;
$('html,body').animate({scrollTop: pos}, 400);
+
                $('html,body').animate({scrollTop: pos}, 400);
});
+
            });
});
+
        });
 
</script>
 
</script>
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 16:50, 18 October 2016