teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー部分の追加

2017/10/27 09:26

投稿

Anfanger
Anfanger

スコア24

title CHANGED
File without changes
body CHANGED
@@ -36,14 +36,14 @@
36
36
  <script>
37
37
  $(function() {
38
38
  var Topicon = 100;
39
-
39
+ <エラー>
40
40
  $('.menu__btn').on('click', function() {
41
41
  var type = $(this).data('place');
42
42
  var pol = $('title').eq(type).offset().top;
43
43
  $('html,body').animate({ scrollTop:'pol'});
44
44
  });
45
+ </エラー>
45
46
 
46
-
47
47
  $(window).on('scroll', function() {
48
48
  if($(window).scrollTop() >= Topicon) {
49
49
  $('.scrollTopBtn').fadeIn();