PageSourceSearch

https://jptower-hall.jp/shared/js/script.js

js jptower-hall.jp collected 2026-10-03 21:06:19 UTC 11,391 bytes, 1 lines download raw bytes

1"use strict";function getUserAgent(){return{Tablet:-1!=(e=window.navigator.userAgent.toLowerCase()).indexOf("ipad")||-1!=e.indexOf("android")&&-1==e.indexOf("mobile")||-1!=e.indexOf("firefox")&&-1!=e.indexOf("tablet")||-1!=e.indexOf("kindle")||-1!=e.indexOf("silk")||-1!=e.indexOf("playbook"),Mobile:-1!=e.indexOf("windows")&&-1!=e.indexOf("phone")||-1!=e.indexOf("iphone")||-1!=e.indexOf("ipod")||-1!=e.indexOf("android")&&-1!=e.indexOf("mobile")||-1!=e.indexOf("firefox")&&-1!=e.indexOf("mobile")||-1!=e.indexOf("blackberry")};var e}var _ua=getUserAgent();function getCookieExpire(){var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);return e.setTime(e.getTime()+(t-e)),e}function setPositionCookie(e){$.cookie("pagePosition",e,{path:"/"})}var utils={escapeHtml:function(e){return"string"!=typeof e?e:e.replace(/[&'`"<>]/g,function(e){return{"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[e]})}},sizeObject={windowWidth:$(window).width(),windowHeight:_ua.Tablet?window.innerHeight:$(window).height(),scrollTop:0,scrollBottom:0,changedWTimer:!1,changedHTimer:!1,getAllSize:function(){sizeObject.windowWidth=$(window).width(),sizeObject.windowHeight=_ua.Tablet?window.innerHeight:$(window).height(),sizeObject.scrollTop=$(window).scrollTop(),sizeObject.scrollBottom=sizeObject.windowHeight+sizeObject.scrollTop},getScrollPosition:function(){sizeObject.scrollTop=$(window).scrollTop(),sizeObject.scrollBottom=sizeObject.windowHeight+sizeObject.scrollTop},whenChangedWidth:function(){sizeObject.windowWidth=$(window).width();clearTimeout(sizeObject.changedWTimer),sizeObject.changedWTimer=setTimeout(function(){sizeObject.getAllSize()},500)},whenChangedHeight:function(){sizeObject.windowHeight=_ua.Tablet?window.innerHeight:$(window).height();clearTimeout(sizeObject.changedHTimer),sizeObject.changedHTimer=setTimeout(function(){sizeObject.getAllSize()},500)}},image={carouselChange:function(){if($(".l-gallery__row").length){var e=$(".l-gallery__row").length,t=$(".l-gallery__row.is-show"),i=t.index();t.addClass("is-hide").removeClass("is-show"),i!==e-1?t.next().addClass("is-show").removeClass("is-hide"):$(".l-gallery__row").eq(0).addClass("is-show").removeClass("is-hide")}},lazyload:function(){$("img[data-img_src]").each(function(){var e=$
1(this).attr("data-img_src");$(this).attr("src",e).on("load",function(){$(this).parent().removeClass("is-loading")})})}},getPageTop=function(e,t){var i=$("body, html"),o=void 0!==e?e:900,n=767<sizeObject.windowWidth||!_ua.Mobile?66:41,s=t?t.position().top:0;s-=n,i.animate({scrollTop:s-n,scrollleft:0},o),i.on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){i.stop()})},tablet={sizeAdjustment:function(){_ua.Tablet&&($(".l-content--lower").css("min-height","calc(100vh + 310px)"),$(".l-article--top:before").css("height","calc(100vh + 310px)"))}};function preventDefault(e){e.preventDefault()}var scroll={scrollEvent:"onwheel"in document?"wheel":"onmousewheel"in document?"mousewheel":"DOMMouseScroll",disableScroll:function(){document.body.addEventListener(scroll.scrollEvent,preventDefault,{passive:!1}),document.body.addEventListener("touchmove",preventDefault,{passive:!1})},enableScroll:function(){document.body.removeEventListener(scroll.scrollEvent,preventDefault,{passive:!1}),document.body.removeEventListener("touchmove",preventDefault,{passive:!1})},setActiveClass:function(){if(!(!$(".c-section__title").length||sizeObject.windowWidth<768||_ua.Mobile)){var t=sizeObject.scrollTop+sizeObject.windowHeight-100;$(".c-section__title").each(function(e){t>$(this).offset().top&&!$(this).hasClass("is-show")&&$(this).addClass("is-show")})}},setScrolled:function(){if(sizeObject.windowWidth<768||_ua.Mobile){if(!$(".l-content").length)return;var e=$(".l-header__nav-switch");sizeObject.scrollTop>$(".l-content").offset().top?e.hasClass("is-moved")||e.addClass("is-moved"):e.hasClass("is-moved")&&e.removeClass("is-moved")}else{if("/"!==window.location.pathname&&"/jp-tower/"!==window.location.pathname)return;sizeObject.scrollTop>$(".l-content").offset().top?$(".c-button--page-top").addClass("is-show"):$(".c-button--page-top").removeClass("is-show")}sizeObject.scrollTop>$(".l-content").offset().top?$(".bg__mov-wrap").addClass("is-moved"):$(".bg__mov-wrap").removeClass("is-moved")},makeImageAnimation:function(){if($(".l-image-wrap").length&&("/"===window.location.pathname||"/jp-tower/"===window.location.pathname)){var e=sizeObject.scrollTop+sizeObject.windowHeight/2;sizeObject.scrollBottom<$(".l-image-wrap").offset().top||sizeObject.scrollTop>$(".l-image-wrap").offset().top+$(".l-image-wrap").height()||(e>$(".l-image-wrap").offset().top?$(".l-image-wrap").hasClass("is-start")||$(".l-image-wrap").addClass("is-start"):$(".l-image-wrap").hasClass("is-start")&&$(".l-image-wrap").removeClass("is-start"))}}},header={node:$(".l-header"),nowPosition:0,getClass:function(){0<sizeObject.scrollTop?(header.node.hasClass("is-fixed")||header.node.addClass("is-fixed"),$(".c-info").hasClass("is-init")&&(sizeObject.windowWidth<768||_ua.Mobile)&&$(".c-info").removeClass("is-init")):header.node.removeClass("is-fixed")},navOpenClose:function(){if($(".l-header__nav-switch").length||!(767<sizeObject.windowWidth)&&_ua.Mobile)return header.nowPosition=$(window).scrollTop(),$(".l-container").hasClass("is-active")?((sizeObject.windowWidth<768||_ua.Mobile)&&scroll.enableScroll(),$(".l-header, .l-container").removeClass("is-active")):((sizeObject.windowWidth<768||_ua.Mobile)&&scroll.disableScroll(),$(".l-header, .l-container").addClass("is-active")),!1}},myEvent={setSlider:function(){$(".js-slick").length&&!$(".slick-initialized").length&&$(".js-slick").each(function(){var e=$
1(this).siblings(".feed-next-btn"),t=$(this).siblings(".feed-prev-btn");$(this).slick({fade:!0,dots:!0,autoplay:!0,infinite:!0,nextArrow:e,prevArrow:t})})}};document.addEventListener("DOMContentLoaded",function(){if(myEvent.setSlider(),$(".c-button--page-top").on("click",getPageTop),$(".l-header__nav-switch").on("click",header.navOpenClose),$('.c-news-list a[href*="#"]').on("click",function(){var e=$(this).attr("href");return $(".c-news").fadeIn(300),$(e).fadeIn(300),$(".overlay").css({"pointer-events":"auto",background:"rgba(0,0,0,.6)"}),!1}),$('a[href*="#"]').on("click",function(){if(!($(".l-container").hasClass("is-active")||$(this).parents(".c-news-list").length||"footer"===$(this).attr("data-link")&&(sizeObject.windowWidth<768||_ua.Mobile))){var e=$(this).attr("href"),t=e.indexOf("#");if(~t&&"#"!==e)return e=e.substr(t),getPageTop(300,$(e)),!1}}),$('a[href="/#top"], a[href="/jp-tower/#top"], .l-header__nav a[href*="#"]').on("click",function(){if((sizeObject.windowWidth<768||_ua.Mobile)&&$(".l-container").hasClass("is-active")){var e=$(this).attr("href"),t=e.indexOf("#"),i=window.location.pathname;if(!~t||"#"===e||!~e.indexOf(i+"#"))return;return header.navOpenClose(),e=e.substr(t),setTimeout(function(){getPageTop(300,$(e))},300),!1}}
1),$(".c-links__parent a").on("click",function(){var e=$(this).parents(".l-footer__links"),t=e.find(".c-links__child");return"none"===t.css("display")?(e.addClass("is-active"),t.slideDown(300)):(e.removeClass("is-active"),t.slideUp(300)),!1}),$(".c-info__title").mouseenter(function(){sizeObject.windowWidth<768||_ua.Mobile||$(this).parent().hasClass("is-active")||$(this).parent().removeClass("is-init").removeClass("is-set").addClass("is-active")}),$(".c-info__title").on("touchstart click",function(e){e.preventDefault(),$(this).parent().hasClass("is-active")||($(this).parent().removeClass("is-set").addClass("is-active"),$(".overlay").css("pointer-events","auto"))}),$(".c-info").mouseleave(function(){sizeObject.windowWidth<768||_ua.Mobile||$(this).hasClass("is-active")&&$(this).removeClass("is-active").addClass("is-set")}),$(".overlay, .c-news .closer").on("click",function(){$(".c-news-list").length&&($(".c-news").fadeOut(300),$(".c-news > div:not(.closer)").fadeOut(300),$(".overlay").css({"pointer-events":"none",background:"none"}))}),$(".overlay").on("touchstart click",function(e){767<sizeObject.windowWidth||!_ua.Mobile||(e.preventDefault(),$(".c-info").hasClass("is-active")&&($(".c-info").removeClass("is-active").addClass("is-set"),$(".overlay").css("pointer-events","none")))}),$(".c-operation-info").length&&(sizeObject.windowWidth<768||_ua.Mobile)&&($(".c-operation-info").delay(600).fadeIn(300),$(".c-operation-info").on("touchstart",function(){$(".c-operation-info").fadeOut(300)})),$("a").on("click",function(){if($(this).attr("data-nextLink")){var e=$(this).parents(".l-section").attr("id");e&&setPositionCookie(e)}else $.removeCookie("pagePosition",{path:"/"})}),"/"!==window.location.pathname||"/jp-tower/"!==window.location.pathname){if(void 0!==$.cookie("pagePosition")){var e=$("a[data-prevLink]").attr("href");e=e+"#"+$.cookie("pagePosition"),$("a[data-prevLink]").attr("href",e)}$.removeCookie("pagePosition",{path:"/"})}if($(".l-article--top").length?$(".animsition").animsition({inClass:"fade-in",outClass:"fade-out-up-sm",inDuration:600,outDuration:600,linkElement:'a:not([target="_blank"]):not([href="/#top"]):not([href="/jp-tower/#top"]):not([href^="#"]):not([href$="#"]):not([href^="http"]):not([href^="mailto"]):not([href^="tel"]):not([data-image])',loading:!0,loadingParentElement:".container",loadingClass:"animsition-loading",timeout:!0,timeoutCountdown:0,transition:function(e){window.location.href=e}}):$(".animsition").animsition({inClass:"fade-in-down-sm",outClass:"fade-out-up-sm",inDuration:600,outDuration:600,linkElement:'a:not([target="_blank"]):not([href="/#top"]):not([href="/jp-tower/#top"]):not([href^="#"]):not([href$="#"]):not([href^="http"]):not([href^="mailto"]):not([href^="tel"]):not([data-image])',loading:!0,loadingParentElement:".container",loadingClass:"animsition-loading",timeout:!0,timeoutCountdown:0,transition:function(e){window.location.href=e}}),$("a[data-image]").length){var t=[],i={caption:function(e){return e.querySelector("img").getAttribute("alt")}};$("a[data-image]").each(function(){t.push($(this).attr("data-image"))}),t=$.unique(t);for(var o=0;o<t.length;o++)new LuminousGallery($("a[data-image = "+t[o]+"]"),{},i)}}),window.addEventListener("orientationchange",function(){sizeObject.whenChangedWidth(),sizeObject.whenChangedHeight(),tablet.sizeAdjustment()}),window.addEventListener("resize",function(){sizeObject.whenChangedWidth(),sizeObject.whenChangedHeight(),tablet.sizeAdjustment()}),window.addEventListener("scroll",function(){sizeObject.getScrollPosition(),header.getClass(),scroll.setScrolled(),scroll.setActiveClass(),_ua.Tablet&&$(".c-info").hasClass("is-active")&&$(".c-info").removeClass("is-active").addClass("is-set")}),window.addEventListener("load",function(){if(image.lazyload(),sizeObject.getAllSize(),scroll.setScrolled(),scroll.setActiveClass(),tablet.sizeAdjustment(),window.location.hash){var e=$(window.location.hash);if(!e.length)return;setTimeout(function(){getPageTop(600,e)},600)}}),$(function(){768<sizeObject.windowWidth||!_ua.Mobile?$(".c-info").removeClass("is-init"):$(".l-container").addClass("is-loaded").addClass("is-visited"),$(".p-hero").addClass("is-active"),setTimeout(function(){768<sizeObject.windowWidth||!_ua.Mobile?($(".l-container").addClass("is-loaded").addClass("is-visited"),$(".c-info").addClass("is-moved").addClass("is-set")):$(".c-info").removeClass("is-init").addClass("is-moved").addClass("is-set")},2e3)});

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.