function bluring() { try { if (event.srcElement.tagName == 'A' || event.srcElement.tagName == 'IMG') { document.body.focus(); } } catch (e) {} } try { document.onfocusin = bluring; } catch (e) {} var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0] + '//' + real_url[2] + '/' + real_url[3] + '/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } /***********************************/ /*header*/ $(document).ready(function() { var toggleButton = document.querySelector('.toggle-menu'); var navBar = document.querySelector('.nav-bar'); toggleButton.addEventListener('click', function() { navBar.classList.toggle('toggle'); }); }); /*footer*/ $(document).ready(function() { $(".toggle>a").click(function() { var submenu = $(this).next("ul"); if (submenu.is(":visible")) { submenu.slideUp(); $(this).removeClass('active'); } else { submenu.slideDown(); $(this).addClass('active'); } }); }); /*company*/ $(document).ready(function() { var swiper = new Swiper(".office", { slidesPerView: 1, loop: true, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); var swiper1 = new Swiper(".client01", { slidesPerView: "auto", spaceBetween: 30, freeMode: true, freeModeMomentum: false, freeModeMomentumBounce: false, speed: 5000, autoplay: { delay: 0, }, loop: true, grabCursor: true, }); swiper1.on('touchEnd', function() { swiper1.autoplay.start(); }); var swiper2 = new Swiper(".client02", { slidesPerView: "auto", direction: 'horizontal', spaceBetween: 30, freeMode: true, freeModeMomentum: false, freeModeMomentumBounce: false, speed: 5000, autoplay: { delay: 0, disableOnInteraction: true, reverseDirection: true, }, loop: true, grabCursor: true, }); swiper2.on('touchEnd', function() { swiper2.autoplay.start(); }); var swiper3 = new Swiper(".client03", { slidesPerView: "auto", spaceBetween: 30, freeMode: true, freeModeMomentum: false, freeModeMomentumBounce: false, speed: 5000, autoplay: { delay: 0, }, loop: true, grabCursor: true, }); swiper3.on('touchEnd', function() { swiper3.autoplay.start(); }); }); /*calendar*/ /*$(function() { $(".schedule_list a").removeAttr("href"); $('.schedule_list a').on("click", function(e) { e.preventDefault(); }); });*/ /*company*/ $(document).ready(function() { var swiper = new Swiper(".info", { slidesPerView: 1, loop: true, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", } }); }); /*work*/ $(document).ready(function() { jQuery('#works input[name="delete_check_notice[]"]').parent().css('display', 'none'); });