おそらくバージョンの問題でエラーメッセージが出ていると思います。
まことに恐れながら、ご協力のほどお願い申し上げます。
jQueryは3.2.1系です。
Uncaught TypeError: jQuery(...).onePageNav is not a function
at HTMLDocument.<anonymous> (theme.js?ver=1.0.0:9)
at j (jquery.min.js?ver=3.2.1:2)
at k (jquery.min.js?ver=3.2.1:2)
jQuery
1/*-------------------------------------------------------------- 2# One Page Navigation & wow js 3--------------------------------------------------------------*/ 4jQuery(function($) { 5 //Initiat WOW JS 6 new WOW().init(); 7 8 // one page navigation 9 jQuery('.navbar-nav').onePageNav({ 10 currentClass: 'active' 11 }); 12}); 13 14jQuery(document).ready(function() { 15 16 jQuery('body').scrollspy({ 17 target: '.navbar-collapse', 18 offset: 48 19 }); 20 21 jQuery(window).on('scroll', function() { 22 if (jQuery(window).scrollTop() > 50) { 23 jQuery('.fixed-top').addClass('menu-bg'); 24 } else { 25 jQuery('.fixed-top').removeClass('menu-bg'); 26 } 27 }); 28 29}); 30 31/*-------------------------------------------------------------- 32# Back Top Link 33--------------------------------------------------------------*/ 34jQuery(function($) { 35 var offset = 200; 36 var duration = 500; 37 $(window).scroll(function() { 38 if ($(this).scrollTop() > offset) { 39 $('.back-to-top').fadeIn(400); 40 } else { 41 $('.back-to-top').fadeOut(400); 42 } 43 }); 44 $('.back-to-top').click(function(event) { 45 event.preventDefault(); 46 $('html, body').animate({ 47 scrollTop: 0 48 }, 600); 49 return false; 50 }) 51}); 52
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/11/18 13:48
退会済みユーザー
2017/11/20 23:08 編集
退会済みユーザー
2017/11/20 23:08