PageSourceSearch

https://www.tohotheater.jp/responsive/js/common.js?20230207

js tohotheater.jp collected 2026-10-02 02:19:58 UTC 14,734 bytes, 1 lines download raw bytes

1function changeDomain(){var t=$(".changeDomain");$.each(t,function(t){var e=$(this),s=e.attr("href"),i=window.location.hostname,o="";if("localhost"==i)e.attr("href",s.replace(/^https?:\/\/[!-.0-~]+/,"http://"+i));else if(i.match(/lab-.*/))e.attr("href",s.replace(/^https?:\/\/[!-.0-~]+/,"http://"+i));else if("stg.tohotheater.jp"==i||"stg-hlo.tohotheater.jp"==i)o="stg-hlo.tohotheater.jp",e.attr("href",s.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+o));else if("stg3.tohotheater.jp"==i||"stg3-hlo.tohotheater.jp"==i)o="stg3-hlo.tohotheater.jp",e.attr("href",s.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+o));else if("stg4.tohotheater.jp"==i||"stg4-hlo.tohotheater.jp"==i)o="stg4-hlo.tohotheater.jp",e.attr("href",s.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+o));else{if("spot-stg2.tohotheater.jp"!=i&&"spot-stg2-hlo.tohotheater.jp"!=i)return;o="spot-stg2-hlo.tohotheater.jp",e.attr("href",s.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+o))}})}function changeImgDomain(){var t=$(".changeImgDomain");$.each(t,function(t){var e=$(this),s="",i="";if(e.attr("src"))s="src",i=e.attr(s);else{if(!e.attr("href"))return;s="href",i=e.attr(s)}var o=window.location.hostname,n="";if("localhost"==o)e.attr(s,i.replace(/^https?:\/\/[!-.0-~]+/,"http://"+o));else if("stg.tohotheater.jp"==o||"stg-hlo.tohotheater.jp"==o)n="stg.tohotheater.jp",e.attr(s,i.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+n));else if("stg3.tohotheater.jp"==o||"stg3-hlo.tohotheater.jp"==o)n="stg3.tohotheater.jp",e.attr(s,i.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+n));else if("stg4.tohotheater.jp"==o||"stg4-hlo.tohotheater.jp"==o)n="stg4.tohotheater.jp",e.attr(s,i.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+n));else{if("spot-stg2.tohotheater.jp"!=o&&"spot-stg2-hlo.tohotheater.jp"!=o)return;n="spot-stg2.tohotheater.jp",e.attr(s,i.replace(/^(https?):\/\/[!-.0-~]+/,"$1://"+n))}})}function isSmartPhone(){var t=navigator.userAgent,e=t.indexOf("Android")>-1,s=t.indexOf("iPhone")>-1;return!!((e||s)&&window.innerWidth<768)}
1function theaterMenuCurrnetTabCenter(){if($(".nav-local-theater-list").length&&$(".schedule-arrow-tab-item").length&&$(".nav-local-theater").length){var t=$(".nav-local-theater-list").find(".is-current").position(),e=t.left+$(".schedule-arrow-tab-item").width()/2-$(window).width()/2;$(".nav-local-theater").animate({scrollLeft:e},0)}}function tohoConfirm(t,e){return CookieManager.isTcAppDialogOff()?(null!=e&&e(),!0):confirm(t)}function tohoAlert(t,e){return CookieManager.isTcAppDialogOff()?void(null!=e&&e()):alert(t)}!function(t,e){"use strict";function s(t,e){function s(){t.apply(i,o),n=i=o=null}var i,o,n;return function(){i=this,o=arguments,clearTimeout(n),n=setTimeout(s,e)}}function i(e,s){this.$el=e,this.options=t.extend({},i.defaults,s),this.$items=this.$el.find(".schedule-tab-item"),this.$viewport=this.$el.find(".schedule-tab-viewport"),this.$inner=this.$el.find(".schedule-tab-inner"),this.$previousSelected=null,this.init(),this.subscribe()}function o(e,s){this.$el=e,this.options=t.extend({},o.defaults,s),this.$toggleAll=this.$el.find(".js-toggle-all"),this.$toggleButtons=this.$el.find(".js-toggle-button"),this.isCollapsedAny=!0,this.subscribe()}var n=window.jp=window.jp||{};n.tohotheater=n.tohotheater||{};var a=t(window),l=!1,r=!1;i.defaults={duration:500},i.prototype.init=function(){this.$previousSelected=this.$el.find(".schedule-tab-item.is-selected"),this.itemWidth=this.$items.outerWidth(),this.innerWidth=this.itemWidth*this.$items.length,this.$inner.width(this.innerWidth)},i.prototype.subscribe=function(){var e=this;a.on("resize",s(function(){e.init(),e.move(0),e.$el.toggleClass("is-swipable",!0)},500)).trigger("resize"),this.$el.on("keydown",function(t){var s=t.keyCode,i=37,o=39;if(t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)return!0;switch(t.preventDefault(),s){case i:e.move(-1);break;case o:e.move(1)}}).on("click",".schedule-tab-item",function(t){e.handleClickTabItem(t)}).on("click",".schedule-tab-prev",function(s){s.preventDefault(),t(this).blur(),e.move(-1)}).on("click",".schedule-tab-next",function(s){s.preventDefault(),t(this).blur(),e.move(1)}).on("touchmove",".schedule-tab-inner",function(t){e.isAnimating&&t.preventDefault()})},i.prototype.handleClickTabItem=function(e){e.preventDefault();var s=t(e.currentTarget);s.hasClass("is-disabled")||s.hasClass("is-selected")||(this.$previousSelected&&this.$previousSelected.removeClass("is-selected"),s.addClass("is-selected"),this.$previousSelected=s)},i.prototype.getNextLeft=function(t){var e=this.$viewport.prop("scrollLeft");return e%this.itemWidth===0?e+t*this.itemWidth:(e=Math.ceil(e),e+t*this.itemWidth)},i.prototype.move=function(t){var e=this;this.isAnimating||(this.isAnimating=!0,this.$viewport.animate({scrollLeft:this.getNextLeft(t)},this.options.duration,"swing").promise().then(function(){e.isAnimating=!1}))},t("#special-discount-01").on("click",function(){t(".schedule .schedule-body-section-item").toggleClass("blue")}),t("#special-discount-02").on("click",function(){t(".schedule .schedule-body-section-item").toggleClass("blue")}),t(function(){t(".check-discount-linkage").click(function(){var e=t(this).val(),s=t(this).prop("checked");t("input[type = 'checkbox'][name = 'special-discount']").each(function(i,o){t(this).val()==e&&(s?t(this).prop("checked",!0):t(this).prop("checked",!1))})})}),t(function(){var e=t(".schedule-touchbox-left"),s=t(".schedule-touchbox-right");s.on("click",function(e){e.preventDefault(),t(".nav-local-theater").animate({scrollLeft:t(".nav-local-theater").scrollLeft()+t(".schedule-arrow-tab-item").width()},300)}),e.hide(),t(".nav-local-theater").scroll(function(){0===t(this).scrollLeft()?e.fadeOut(120):e.show(),t(this).scrollLeft()<t(".nav-local-theater-list").width()-t(window).width()?s.show():s.fadeOut(120)}),e.on("click",function(e){e.preventDefault(),t(".nav-local-theater").animate({scrollLeft:t(".nav-local-theater").scrollLeft()-t(".schedule-arrow-tab-item").width()},300)})}),t.fn.scheduleTab=function(e){return this.each(function(){new i(t(this),e)})},o.defaults={labelCollapseAll:"",labelExpandAll:""},o.prototype.subscribe=function(){this.$el.on("click",".js-toggle-all",this.toggleAll.bind(this)).on("click",this.handleClick.bind(this))},o.prototype.toggleAll=function(t){t.preventDefault(),this.$toggleButtons.filter(this.isCollapsedAny?":not(.is-open)":".is-open").click()},o.prototype.handleClick=function(t){this.isCollapsedAny=!!this.$toggleButtons.filter(":not(.is-open)").length,this.$toggleAll.toggleClass("is-open",!this.isCollapsedAny).find(".js-label").text(this.isCollapsedAny?this.options.labelExpandAll:this.options.labelCollapseAll)},t.fn.theaterAccordion=function(e){return this.each(function(){new o(t(this),e)})}
1,t(function(){function s(e,s){var i=t("#js-slider-02");if(i&&i.length>0){var o=i.find(".sp-slide"),n=o.length>2,a=i.data("sliderPro");e?"undefined"==typeof i.data("sliderPro")&&(i.sliderPro({width:"100%",buttons:!0,autoHeight:!0,responsive:!0,autoplay:!1,loop:n}),t(".reop-slide").css("display","block")):"undefined"!=typeof i.data("sliderPro")&&(a.settings.autoHeight=!1,a.destroy(),t(".reop-slide").css("display","inline"),setTimeout(function(){t(".reop-slide").css("margin-left","0")},500))}}function i(){var e=t(".footer").offset(),s=t(window).height(),i=t(window).scrollTop();if(e){var o=i+s>e.top;v.each(function(){var e=t(this);o?e.hide():e.hasClass("is-hide")?e.hide():e.show()})}}function o(){var e=t(".grid-menu, body"),s=t(".js-menu-open");if(e.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){t(this).hasClass("is-menu-close")?t(".global-main").css("height",0):t(".global-main").removeAttr("style")}),t(".js-menu-open").on("click",function(i){return i.preventDefault(),e.hasClass("is-menu-open")?(e.removeClass("is-menu-open").addClass("is-menu-close"),s.removeClass("is-open").addClass("is-close"),localStorage.setItem("menu","close"),void t(window).trigger("resize")):e.hasClass("is-menu-close")?(e.removeClass("is-menu-close").addClass("is-menu-open"),s.removeClass("is-close").addClass("is-open"),localStorage.setItem("menu","open"),void t(window).trigger("resize")):(r?(e.addClass("is-menu-open"),s.removeClass("is-open").addClass("is-open"),localStorage.setItem("menu","open")):(e.addClass("is-menu-close"),s.removeClass("is-open").addClass("is-close"),localStorage.setItem("menu","close")),void t(window).trigger("resize"))}),t(".global-main").length){var i=t(".global-main").offset(),o=t(window).height();t(window).on("scroll",function(){r||t("body").hasClass("is-menu-close")||(t(window).scrollTop()>i.top?(t(".global-main").addClass("is-fixed"),t(".global-pseudo-main").height(o)):(t(".global-main").removeClass("is-fixed"),t(".global-pseudo-main").height(0)))}).trigger("scroll")}t(window).on("resize",function(){u||p||f||(r?(t(".global-main").removeClass("is-fixed"),t(".global-pseudo-main").height(0)):t("body, html").trigger("scroll"))})}function h(){t(".js-nav-local").on("click",".js-nav-local-current",function(){t(this).toggleClass("is-open");var e=t(this),s=t(".nav-local-list");"table"===s.css("display")&&s.css("display","block"),s.slideToggle().promise().then(function(){s.css("display","none"===s.css("display")?"":"table"),e.toggleClass("is-open-end")})}),t(".nav-local-bg").on("click",function(){t(this).prev(".js-nav-local-current").trigger("click")})}var c=navigator.userAgent,d=c.indexOf("Android")>-1,u=c.indexOf("iPhone")>-1,p=c.indexOf("iPad")>-1,f=c.indexOf("iPod")>-1,g=!1;if((u||p||f)&&t("html").addClass("iOS"),d&&t("html").addClass("android"),window.innerWidth>767&&t("html").addClass("tablet"),a.on("resize",function(){l=window.innerWidth<768,r=window.innerWidth<930,s(l,r)}).trigger("resize"),t(".js-nav-local").length){var m=t(".js-nav-local").offset();t(window).on("scroll",function(){l&&(t(window).scrollTop()>m.top?t(".js-nav-local").addClass("is-fixed"):t(".js-nav-local").removeClass("is-fixed"))}).trigger("scroll")}var v=t(".search.is-fixed, .flo-banner.is-fixed");v.length&&(t(window).on("load resize scroll",i),i()),"block"==t(".seat-order.normal").css("display")&&t(window).on("scroll",function(){t(window).scrollTop()+t(window).height()>t(".footer").offset().top+t(".seat-order.normal").height()?t(".seat-order.normal").addClass("static"):t(".seat-order.normal").removeClass("static")}),t(e).on("click",".js-toggle-button",function(){var e=t("#"+t(this).attr("data-href"));return"none"==e.css("display")&&t(this).hasClass("js-heightline-button")?(t(this).addClass("is-open"),e.slideDown(function(){t(".js-heightline-01").heightLine({minWidth:768})}),!1):"none"==e.css("display")?(t(this).addClass("is-open"),e.slideDown(),!1):(t(this).removeClass("is-open"),e.slideUp(),!1)}),t(e).on("click",".js-oneopen-toggle-button",function(){var e=t(this).attr("data-href"),s=t("#"+e);return"none"==s.css("display")&&t(this).hasClass("js-heightline-button")?(t(this).addClass("is-open"),s.slideDown(function(){t(".js-heightline-01").heightLine({minWidth:768})})):"none"==s.css("display")?(t(this).addClass("is-open"),s.slideDown()):(t(this).removeClass("is-open"),s.slideUp()),t(".js-oneopen-toggle-button").each(function(){var s=t(this).attr("data-href");if(e!=s){var i=t("#"+s);t(this).removeClass("is-open"),i.slideUp()}}),!1}),l&&t(e).on("click",".js-sp-toggle-button",function(){var e=t("#"+t(this).data("href"));return"none"==e.css("display")?(t(this).addClass("is-open"),e.slideDown(),!1):(t(this).removeClass("is-open"),e.slideUp(),!1)}),t(e).on("click",".js-tab-nav a",function(){return t(this).parent().parent().find("li").removeClass("is-current"),t(this).parent().addClass("is-current"),!1}),t(e).on("click",".js-simple-tab-nav a",function(){return t(this).parents(".js-simple-tab-nav").find("li,a").removeClass("is-current"),t(this).parent().addClass("is-current"),t(this).addClass("is-current"),t(this).parents(".js-simple-tab").find(".js-simple-tab-panel").removeClass("is-current").hide(),t(t(this).attr("href")).addClass("is-current").show(),!1}),t(e).on("click","#js-more-button, .js-more-button",function(){return t(t
1(this).attr("href")).css("height","auto"),t("#"+t(this).data("href")).hide(),!1}),t(e).on("click",".js-openidy-button",function(){return t(this).toggleClass("is-current"),!1}),t(e).on("click",".js-openidg-button",function(){return t(this).toggleClass("is-current"),!1}),t(".js-schedule-body").theaterAccordion({labelCollapseAll:"ƒXƒPƒWƒ…[ƒ‹‚ð‚·‚×‚Ä•Â‚¶‚é",labelExpandAll:"ƒXƒPƒWƒ…[ƒ‹‚ð‚·‚×‚ÄŠJ‚­"}),t(e).on("change",".js-radio",function(){var e=t(this).prop("checked"),s=t(this).attr("name"),i=t("#"+t(this).data("target"));t('.js-radio[name="'+s+'"]').each(function(){t("#"+t(this).data("target")).hide()}),e&&i.show()}).trigger("change"),t(e).on("touchmove",function(){g=!0}),t(e).on("touchend",function(){g=!1}),t(e).on("click touchend",".js-modalShow",function(e){if(g)return t(this).blur(),g=!1,!1;e.preventDefault();for(var s=t(this).attr("data-modal"),i=t('.js-modal[data-modal-content="'+s+'"]'),o=i.find("img[data-src]"),n=o.length,a=0;a<n;a++){var l=o[a].getAttribute("data-src");null!=l&&o[a].setAttribute("src",l)}var r=window.innerWidth,h=t(window).width(),c=window.innerHeight;i.find(".js-modal-content").css("max-height",c-120),i.find(".modal-content-wrap").css("right",r-h),i.addClass("is-show"),t("body").css({overflow:"hidden","border-right":r-h+"px solid #f5f5f5"})}),t(e).on("click touchstart",".js-modal",function(e){e.preventDefault();var s=t(this);s.removeClass("is-show"),t("body").css({overflow:"","border-right":""})}),t(e).on("click touchstart",".js-modal-content",function(t){t.stopPropagation()}),t(e).on("click touchstart",".js-modal-close a",function(e){e.preventDefault(),e.stopPropagation();var s=t(this).closest(".js-modal");return s.removeClass("is-show"),t("body").css({overflow:"","border-right":""}),!1}),t(".js-smooth").on("click",function(){return t("html,body").animate({scrollTop:t(t(this).attr("href")).offset().top}),!1}),t(".js-schedule-tab").scheduleTab({duration:400}),t(".static-contact-tel").length>0&&(d||u)&&t(".static-contact-tel").on("click",function(e){e.preventDefault();var s=t(this).clone();s.find("span").remove(),location.href="tel:"+s.text().replace(/\-/g,"")}),t(".access-contact-tel").length&&l&&t(".access-contact-tel").css({cssText:"color:#0d47a1;"}),t(".access-contact-tel").length>0&&(d||u)&&t(".access-contact-tel").on("click",function(e){e.preventDefault();var s=t(this).clone();location.href="tel:"+s.text().replace(/\-/g,"")}),t("#js-menu").length&&o(),h(),changeDomain(),changeImgDomain(),t.extend(n.tohotheater,{applyOffcanvasMenu:o,applyLocalNav:h}),isSmartPhone()&&t("[href*='/campaign/au_monday/']").attr("href","https://entm.auone.jp/toho/aumonday/?medid=thc_ad&srcid=movie&serial=5513&branch=web"),theaterMenuCurrnetTabCenter()})}(jQuery,document);

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.