1$(function () { 2 3 function topScroll() { 4 var scrollTimeout = null; 5 var pageTopElm = $('#to_page_top a'); 6 if ($(window).scrollTop() < 300) { 7 $('#to_page_top a').hide(); 8 } 9 $(window).scroll(function () { 10 if (scrollTimeout == null) { 11 clearTimeout(scrollTimeout); 12 scrollTimeout = setTimeout(function () { 13 var now = $(window).scrollTop(); 14 // var under = $('body').height() - (now + $(window).height()) ; 15 if (now > 300) { 16 if (!pageTopElm.is(':visible')) { 17 pageTopElm.fadeIn('normal'); 18 } 19 } else { 20 pageTopElm.fadeOut('normal'); 21 } 22 scrollTimeout = null; 23 }, 500); 24 } 25 }); 26 pageTopElm.on('click keypress', function () { 27 $('html,body').animate({ 28 scrollTop: 0 29 }, 'normal'); 30 }); 31 } 32 33 function kanko_banner() { 34 if ($('#banner_footer3 li').length > 5) { 35 $('#banner_footer3 ul').slick({ 36 autoplay: true, 37 autoplaySpeed: 5000, 38 speed: 750, 39 initialSlide: 0, 40 slidesToShow: 5, 41 slidesToScroll: 5, 42 centerMode: true, 43 centerPadding: 0, 44 infinite: true, 45 easing: 'swing', 46 touchMove: 'true', 47 touchThreshold: 15, 48 dots: false, 49 responsive: [{ 50 breakpoint: 670, 51 settings: { 52 slidesToShow: 2, 53 dots: true 54 } 55 }] 56 }); 57 } else { 58 $('#banner_footer3 li').matchHeight(); 59 } 60 } 61 62 function slidergourmet() { 63 if ($('#kanko_gourmet_detail_wrap li').length > 5) { 64 $('#kanko_gourmet_detail_wrap ul').slick({ 65 autoplay: true, 66 autoplaySpeed: 5000, 67 speed: 750, 68 initialSlide: 0, 69 slidesToShow: 5, 70 slidesToScroll: 5, 71 centerMode: true, 72 centerPadding: 0, 73 infinite: true, 74 easing: 'swing', 75 touchMove: 'true', 76 touchThreshold: 15, 77 dots: true, 78 responsive: [{ 79 breakpoint: 960, 80 settings: { 81 slidesToShow: 2, 82 slidesToScroll: 2, 83 dots: true 84 } 85 }, { 86 breakpoint: 480, 87 settings: { 88 slidesToShow: 1, 89 slidesToScroll: 1, 90 dots: false 91 } 92 }] 93 }); 94 } 95 } 96 97 function spKankoMenu() { 98 $('#spm_menu').off().on('click', function () { 99 $(this).toggleClass('menu_open'); 100 $('#kanko_nav ul').slideToggle('fast'); 101 }); 102 } 103 104 if ($('#container').hasClass('tpl_site_index')) { 105 // topScroll(); 106 kanko_banner(); 107 slidergourmet(); 108 } 109 if ($('#spm_menu').is(':visible')) { 110 spKankoMenu(); 111 } 112 113});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.