This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| $('nav li a, .menu li a').click(function() { | |
| var speed = 400; | |
| var href= $(this).attr("href"); | |
| var target = $(href == "#" || href == "" ? 'html' : href); | |
| var headerHeight = 100; //固定ヘッダーの高さを指定 | |
| var position = target.offset().top - headerHeight; //ターゲットの座標からヘッダの高さ分引く | |
| $('body,html').animate({scrollTop:position}, speed, 'swing'); | |
| return false; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AuthUserFile /home/path../.htpasswd | |
| AuthGroupFile /dev/null | |
| AuthName "Input ID and Password." | |
| AuthType Basic | |
| require valid-user | |
| <Files ~ "^.(htpasswd|htaccess)$"> | |
| deny from all | |
| </Files> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ErrorDocument 404 /404.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- スクロール位置によって、ハイライトする項目が変化 --> | |
| <header> | |
| <h1>Highlight Menu</h1> | |
| <nav> | |
| <ul> | |
| <li class="current"><a href="#">Section1</a></li> | |
| <li><a href="#">Section2</a></li> | |
| <li><a href="#">Section3</a></li> | |
| <li><a href="#">Section4</a></li> |
NewerOlder