Mi.nishimo (Talk | contribs) |
|||
Line 4: | Line 4: | ||
<!-- | <!-- | ||
body{ | body{ | ||
− | background-image: url("https://static.igem.org/mediawiki/2016/ | + | 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/ | + | 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(){ | |
− | + | $('.scroll_link').on('click', function(event){ | |
− | + | event.preventDefault(); | |
− | + | ||
− | + | var $this = $(this); | |
− | + | var linkTo = $this.attr('href'); | |
− | + | var $target = $(linkTo); | |
− | + | var pos = $target.offset().top; | |
− | + | $('html,body').animate({scrollTop: pos}, 400); | |
− | + | }); | |
− | + | }); | |
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 16:50, 18 October 2016