PageSourceSearch

https://www.akitadnlighting.co.jp/dcms_media/js/site-common.js

js akitadnlighting.co.jp collected 2026-10-07 20:49:26 UTC 5,874 bytes, 5 lines download raw bytes

1/*
2 * このファイルは - 直 接 修 正 禁 止 - です。
3 * ファイルを別途作成し、そのファイルに追加・修正してください。
4*/
5"use strict";var lh="";lh=location.href,lh.match(/dcmsadm/)?$("html").addClass("is-editor"):($(window).on("load",function(){var e=location.href,t=$("#header").height();if(e.indexOf("#")!=-1){var i=e.split("#"),n=$("#"+i[i.length-1]),s=Math.floor(n.offset().top)-t;$("body,html").animate({scrollTop:s},400,"swing")}}),document.addEventListener("DOMContentLoaded",function(){function e(){var e=window.getComputedStyle(o).getPropertyValue("display");if("block"===e)o.style.display="none";else{o.style.display="block";var t=o.querySelector("li:first-child a");t&&t.focus()}}function t(){var e=window.getComputedStyle(o).getPropertyValue("display");"block"===e?(o.style.animation="SlideUp .6s",window.setTimeout(function(){o.style.display="none",o.style.animation=""},600)):(o.style.display="block",o.style.animationName="")}var i=document.querySelectorAll(".js-mega"),n=document.querySelectorAll('nav ul li a[aria-haspopup="true"]'),s=document.querySelector(".toggle-button"),a=document.querySelector(".toggle-close"),o=document.querySelector("#globalMenu");n.forEach(function(t){t.addEventListener("keydown",function(t){if("Tab"===t.key&&!t.shiftKey){var i=this.nextElementSibling;i&&(i.style.display="block",this.setAttribute("aria-expanded","true"))}"Enter"===t.key&&e()})}
5),i.forEach(function(e){e.addEventListener("mouseover",function(e){this.querySelector("a").setAttribute("aria-expanded","true")}),e.addEventListener("mouseout",function(e){this.querySelector("a").setAttribute("aria-expanded","false")})}),s.addEventListener("click",function(){e()}),a.addEventListener("click",function(){t()}),s.addEventListener("keydown",function(t){if("Tab"!==t.key||t.shiftKey){if("Tab"===t.key&&!t.shiftKey){var i=o.querySelector("li:first-child a");i&&(i.focus(),t.preventDefault())}}else e(),t.preventDefault()}),a.addEventListener("keydown",function(e){"Tab"!==e.key||e.shiftKey?"Tab"===e.key&&!e.shiftKey:(t(),e.preventDefault())})}),$(function(){function e(e){if($("#header").length>0)var t=$("#header");var i=""!=t?t.height():0,n=400,s=$(e).attr("href"),a=$("#"==s||""==s?"html":s),o=a.offset().top-i;return $("body,html").animate({scrollTop:o},n,"swing"),!1}function t(e){var t=0;$(e).each(function(){t<$(this).outerHeight()&&(t=$(this).outerHeight())}),$(e).css("height",t+"px")}function i(e){new Swiper(".js-media-column",{slidesPerView:1,spaceBetween:20,loop:e,allowTouchMove:e,speed:1500,pagination:{el:".js-swiper-pagination",clickable:!0,type:"bullets"},breakpoints:{1200:{slidesPerView:4,slidesPerGroup:1},690:{slidesPerView:2,slidesPerGroup:1}}})}function n(e){new Swiper(".js-media-column2",{slidesPerView:1,spaceBetween:20,loop:e,allowTouchMove:e,speed:1500,pagination:{el:".js-swiper-pagination2",clickable:!0,type:"bullets"},breakpoints:{1200:{slidesPerView:4,slidesPerGroup:1},690:{slidesPerView:2,slidesPerGroup:1}}})}function s(e){new Swiper(".js-media-column3",{slidesPerView:1,spaceBetween:20,loop:e,allowTouchMove:e,speed:1500,pagination:{el:".js-swiper-pagination3",clickable:!0,type:"bullets"},breakpoints:{1200:{slidesPerView:2,slidesPerGroup:1},690:{slidesPerView:1,slidesPerGroup:1}}})}if($('a[href^="#"]').on("click",function(){e($(this))}),$(window).width()>690&&(t(".js-item"),t(".c-bloglist__ttl")),navigator.userAgent.match(/(iPhone|iPod|Android)/)&&$(function(){$(".js-tel").each(function(){var e=$
5(this).html();$(this).children().is("img")?$(this).html($("<a>").attr("href","tel:"+$(this).children().attr("alt").replace(/-/g,"")).append(e+"</a>")):$(this).html($("<a>").attr("href","tel:"+$(this).text().replace(/-/g,"")).append(e+"</a>"))})}),"/"==location.pathname||"/index.html"==location.pathname);else{var a=location.href.split("/"),o=a.slice(a.length-1,a.length-0),l=a.slice(3,4);$('#header nav a[href$="'+o+'"]').parent().addClass("is-current"),$('#header nav a[href$="'+l+'.html"]').parent().addClass("is-current"),$('#header .l-header__top-list a[href$="'+o+'"]').parent().addClass("is-current"),$('#header .l-header__top-list a[href$="'+l+'.html"]').parent().addClass("is-current")}var r=$(".js-page-hero");r.length&&r.insertBefore("#header"),$("#dcms_layoutPageBlock").children(":last").hasClass("has-no-margin")&&$(".l-cta").addClass("u-margin-top-0"),$(window).on("scroll",function(){$(window).scrollTop()>60?$(".js-page-top").addClass("is-active"):$(".js-page-top").removeClass("is-active")}),$("#breadcrumb").insertAfter(".js-page-main"),$("#pagetop").click(function(){return $("body,html").animate({scrollTop:0},400,"swing"),!1}),$(window).width()>980&&($(".js-fade-up").css({opacity:0,visibility:"hidden",transform:"translateY(50px)"}),$(".js-scroll-fade").css({opacity:0,transform:"translateY(50px)"})),$(window).on("load resize scroll",function(){$(".js-fade-up").each(function(){var e=$
5(this).offset().top,t=$(window).scrollTop(),i=window.innerHeight;t>e-i&&$(this).css({opacity:1,visibility:"visible",transform:"translateY(0)",transition:"0.5s"})}),$(".js-scroll-fade").each(function(){var e=$(this).offset().top,t=$(window).scrollTop(),i=window.innerHeight;$(window).width()>980&&t>e-i+i/10&&$(this).addClass("isActive")})}),$(".js-rss-cat").each(function(){$(this).find("span").appendTo($(this).children(".c-rss__date"))});var d=1;$(window).width()>=1200&&(d=4),$(window).width()>=690&&$(window).width()<=1200&&(d=2),i($(".js-media-column .swiper-slide").length<=d?!1:!0),n($(".js-media-column2 .swiper-slide").length<=d?!1:!0);var c=2;$(window).width()>=1200&&(c=2),$(window).width()>=690&&$(window).width()<=1200&&(c=1),s($(".js-media-column3 .swiper-slide").length<=c?!1:!0)}),$(document).on("keydown",function(e){$(".js-page-top").addClass("is-active"),$(".js-fade-up").css({opacity:1,visibility:"visible",transform:"translateY(0)",transition:"0.5s"})}));

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.