$(function(){ var pagetop = $('#page_top'); // ボタン非表示 pagetop.hide(); // 100px スクロールしたらボタン表示 $(window).scroll(function () { if ($(this).scrollTop() > 100) { pagetop.fadeIn(); } else { pagetop.fadeOut(); } }); pagetop.click(function () { $('body, html').animate({ scrollTop: 0 }, 500); return false; }); }); var scrollend = $('.l_footer').offset().top; var distance = 0; $(document).scroll(function() { var h = $(window).height(); distance = $(this).scrollTop() + h; if (scrollend <= distance) { $('.c_section_contact').fadeOut(); } else { $('.c_section_contact').fadeIn(); } }); $('.js_slider_under ').slick({ slidesToShow: 4.1, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, autoplaySpeed: 1000, responsive: [{ breakpoint: 1025, settings: { arrows: false, centerMode: true, slidesToShow: 1 } }] }); $('.js_list_feedback').slick({ autoplay: true, autoplaySpeed: 3000, centerMode: true, centerPadding: '350px', slidesToShow: 1, dots: true, arrows: true, prevArrow: $('.prev'), nextArrow: $('.next'), responsive: [{ breakpoint: 1025, settings: { arrows: true, prevArrow: $('.prev'), nextArrow: $('.next'), centerMode: false, slidesToShow: 1 } }] }); $(".js_arena").click(function() { var tg = $(this); if ($(this).hasClass('active')) { $(".js_arena").removeClass('active'); $(".js_arena").next().slideUp(); } else { $.when( $(".js_arena").removeClass('active'), $(".js_arena").next().slideUp() ).done(function() { tg.addClass('active'); tg.next().slideDown(); }); } }); $(".toc_title").click(function() { $('.toc_list').slideToggle('active'); }); $(".js_ttl_under_header").click(function() { $('.ttl_contents_js').slideToggle('active'); }); /* =========================================================*/ // jquery.modal_fix.js / ver.1.0 // Copyright (c) 2018 CoolWebWindow // This code is released under the MIT License // https://osdn.jp/projects/opensource/wiki/licenses%2FMIT_license // Date: 2018-01-07 // Author: CoolWebWindow // Mail: info@coolwebwindow.com // Web: http://www.coolwebwindow.com // Used jquery.js // http://jquery.com/ /* =========================================================*/