Template:Team:HokkaidoU Japan/JS

From 2014.igem.org

(Difference between revisions)
(Replaced content with "<html> <script style="text/javascript"> //ページ内スクロール $(".menber_click").click(function () { var i = $(".member_click").index(this) var p...")
 
(96 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<script style="text/javascript">
+
<script src="//ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.7.2.js"></script>
 +
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
 +
<script type="text/javascript">
-
//ページ内スクロール
+
(function() {
-
     $(".menber_click").click(function () {
+
  $(function() {
-
        var i = $(".member_click").index(this)
+
     return $('#menubar.left-menu ul li:last-child').css('display', 'none');
-
         var p = $(".member_introduction").eq(i).offset().top;
+
  });
-
         $('html,body').animate({ scrollTop: p }, 'fast');
+
}).call(this);
-
        return false;
+
 
 +
$(function () {
 +
    $(".right-menu").hover(function(){
 +
         $(this).css({"opacity": "1.0"});
 +
    },function(){
 +
         $(this).css({"opacity": "0.0"});
     });
     });
 +
});
 +
$(function() {
 +
$(".left-menu").css("left","0");
 +
});
</script>
</script>
</html>
</html>
 +
{{Team:HokkaidoU_Japan/Book/JS}}
 +
{{Team:HokkaidoU Japan/LargeDropDown/JS}}
 +
{{Team:HokkaidoU Japan/About_Us/JS}}

Latest revision as of 12:55, 17 October 2014