PageSourceSearch

https://www.suijobus.co.jp/wp/wp-content/themes/tokyocruise/js/cruise-select.js

js suijobus.co.jp collected 2026-10-01 11:32:08 UTC 20,196 bytes, 1 lines download raw bytes

1!function(e){function t(i){if(s[i])return s[i].exports;var o=s[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var s={};return t.m=e,t.c=s,t.p="",t(0)}({0:function(e,t,s){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=s(11),a=i(o),n=s(23),c=i(n),l=s(9),p=i(l),f=s(2),d=i(f),h={$selectRide:$(".js-select-ride"),$selectGetoff:$(".js-select-getoff"),$popupRide:$(".js-select-info-popup-ride"),$popupGetoff:$(".js-select-info-popup-getoff"),$placeRide:$(".js-select-place-ride"),$placeRideAsakusa:$(".js-select-place-ride-asakusa"),$placeRideHinode:$(".js-select-place-ride-hinode"),$placeRideOdaiba:$(".js-select-place-ride-odaiba"),$placeRidePalettetown:$(".js-select-place-ride-palettetown"),$placeRideBigsight:$(".js-select-place-ride-bigsight"),$placeRideHamarikyu:$(".js-select-place-ride-hamarikyu"),$placeRideToyosu:$(".js-select-place-ride-toyosu"),$placeGetoff:$(".js-select-place-getoff"),$placeGetoffAsakusa:$(".js-select-place-getoff-asakusa"),$placeGetoffHinode:$(".js-select-place-getoff-hinode"),$placeGetoffOdaiba:$(".js-select-place-getoff-odaiba"),$placeGetoffPalettetown:$(".js-select-place-getoff-palettetown"),$placeGetoffBigsight:$(".js-select-place-getoff-bigsight"),$placeGetoffHamarikyu:$(".js-select-place-getoff-hamarikyu"),$placeGetoffToyosu:$(".js-select-place-getoff-toyosu"),$courcePopup:$(".js-cource-popup"),$courcePopupContent:$(".js-cource-popup-content"),$txtRide:$(".js-select-txt-ride"),$txtGetoff:$(".js-select-txt-getoff"),$placeBtn:$(".js-select-place-btn"),$selectRideSp:$(".js-select-ride-sp"),$selectGetoffSp:$(".js-select-getoff-sp"),$placeRideSp:$(".js-select-place-ride-sp"),$placeGetoffSp:$(".js-select-place-getoff-sp")},u=new a["default"](h);u.init();var r=new c["default"](h);if(r.init(),r.changePopup(),h.$placeRide.find("input").on("change",function(){u.changeTxtRide(),u.changeTxtGetoff(),u.changeCource(),u.changeBtn(),r.updateRide()}),h.$placeGetoff.find("input").on("change",function(){u.setTxtGetoff(),u.changeBtn(),r.updateGetoff()}),h.$placeBtn.on("click",function(e){e.preventDefault(),r.resetPopup(),setTimeout(function(){r.changePopup()})}),$(document).on("click",function(e){$(e.target).is(".select-info-popup , .select-info-popup *, .js-select-ride, .js-select-ride *, .js-select-getoff, .js-select-getoff *")||u.togglePopup()}),h.$selectRideSp.find("select").on("change",function(){u.changeTxtRideSp(),u.changeTxtGetoffSp(),u.changeBtnSp(),u.changeCource(),r.updateRideSp()}),h.$selectGetoffSp.find("select").on("change",function(){u.changeBtnSp(),r.updateGetoffSp()}),""!==location.search){var g=location.search.substring(1).split("&"),k=g[0].split("from=")[1],v=g[1].split("to=")[1],w=new p["default"](k,v);w.setRidePlace(),w.setGetoffPlace(),h.$placeBtn.trigger("click")}new d["default"];$(".js-btn-to-place").on("click",function(){console.log("dev"),u.changeUrl()})},2:function(e,t,s){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,s,i){return s&&e(t.prototype,s),i&&e(t,i),t}}();s(4);var a=.85,n="animationend webkitAnimationEnd",c=1024,l=function(){function e(){i(this,e),this.$target=$(".js-circle"),this.$targetCircle=this.$target.find(".js-circle-contents"),this.$targetCircleSvg=this.$target.find(".js-circle-svg"),this.$targetCircleSvgContents=this.$target.find(".js-circle-svg-contents"),this.$window=$(window),this.$body=$("body"),this.windowSizeFlg,this.$target.length<=0||this.bindEvent()}return o(e,[{key:"bindEvent",value:function(){var e=this;this.ieFlag=!1,(this.$body.hasClass("browser-ie")||this.$body.hasClass("browser-edge"))&&(this.ieFlag=!0),this.animation=this.ieFlag?this.animationJs:this.animationCss,this.$window.on("scroll.circle",function(){return e.animationManager()}),this.$targetCircleSvg.on(n,function(){e.fadeIn(),e.$targetCircleSvg.off(n)}),this.$window.on("resize.circle",function(){e.windowSizeFlg=c>e.$window.width()?!0:!1,e.windowSizeFlg&&(e.animation(),e.fadeIn())})}},{key:"animationManager",value:function(){this.$window.scrollTop()+this.$window.height()*a>
1this.$target.offset().top&&(this.animation(),this.$window.off("scroll.circle"))}},{key:"animationCss",value:function(){this.$targetCircleSvg.addClass("is-animated")}},{key:"animationJs",value:function(){var e=this,t=[.215,.61,.355,1];this.$targetCircleSvg.animate({"stroke-dashoffset":"0"},900,$.bez(t),function(){e.fadeIn()})}},{key:"fadeIn",value:function(){this.$targetCircle.addClass("is-show"),this.$targetCircleSvgContents.fadeOut(),this.$window.off("resize.circle")}}]),e}();t["default"]=l},4:function(e,t){jQuery.extend({bez:function(e){var t="bez_"+jQuery.makeArray(arguments).join("_").replace(/\./g,"p");if("function"!=typeof jQuery.easing[t]){var s=function(e,t){var s=[null,null],i=[null,null],o=[null,null],a=function(a,n){return o[n]=3*e[n],i[n]=3*(t[n]-e[n])-o[n],s[n]=1-o[n]-i[n],a*(o[n]+a*(i[n]+a*s[n]))},n=function(e){return o[0]+e*(2*i[0]+3*s[0]*e)},c=function(e){for(var t,s=e,i=0;++i<14&&(t=a(s,0)-e,!(Math.abs(t)<.001));)s-=t/n(s);return s};return function(e){return a(c(e),1)}};jQuery.easing[t]=function(t,i,o,a,n){return a*s([e[0],e[1]],[e[2],e[3]])(i/n)+o}}return t}})},9:function(e,t){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,s,i){return s&&e(t.prototype,s),i&&e(t,i),t}}(),o=function(){function e(t,i){s(this,e),this.from=t,this.to=i}return i(e,[{key:"setRidePlace",value:function(){$(".js-select-place-ride-"+this.from).find("input").prop("checked",!0).change(),$(".js-select-place-ride-"+this.from).prop("selected",!0).closest("select").change()}},{key:"setGetoffPlace",value:function(){$(".js-select-place-getoff-"+this.to).find("input").prop("checked",!0).change(),$(".js-select-place-getoff-"+this.to).prop("selected",!0).closest("select").change()}}]),e}();t["default"]=o},11:function(e,t){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,s,i){return s&&e(t.prototype,s),i&&e(t,i),t}}(),o={def:'<option value="" class="js-select-place-getoff-sp is-show">降り場を選択してください</option>',asakusa:'<option value="asakusa" class="js-select-place-getoff-sp js-select-place-getoff-asakusa is-show" data-latitude="35.710567" data-longitude="139.799505" data-txt="浅草">浅草</option>',hinode:'<option value="hinode" class="js-select-place-getoff-sp js-select-place-getoff-hinode is-show" data-latitude="35.650766" data-longitude="139.761113" data-txt="日の出桟橋">日の出桟橋</option>',odaiba:'<option value="odaiba" class="js-select-place-getoff-sp js-select-place-getoff-odaiba is-show" data-latitude="35.629425" data-longitude="139.773360" data-txt="お台場海浜公園">お台場海浜公園</option>',palettetown:'<option value="palettetown" class="js-select-place-getoff-sp js-select-place-getoff-palettetown is-show" data-latitude="35.624352" data-longitude="139.782706" data-txt="パレットタウン">パレットタウン</option>',bigsight:'<option value="bigsight" class="js-select-place-getoff-sp js-select-place-getoff-bigsight is-show" data-latitude="35.629072" data-longitude="139.791965" data-txt="東京ビッグサイト">東京ビッグサイト</option>',hamarikyu:'<option value="hamarikyu" class="js-select-place-getoff-sp js-select-place-getoff-hamarikyu is-show" data-latitude="35.658591" data-longitude="139.765866" data-txt="浜離宮">浜離宮</option>',toyosu:'<option value="toyosu" class="js-select-place-getoff-sp js-select-place-getoff-toyosu is-show" data-latitude="35.654026" data-longitude="139.789787" data-txt="豊洲">豊洲</option>'},a=function(){function e(t){s(this,e),this.option=t||{},this.$selectRide=this.option.$selectRide,this.$selectGetoff=this.option.$selectGetoff,this.$selectRideSp=this.option.$selectRideSp,this.$selectGetoffSp=this.option.$selectGetoffSp,this.$popupRide=this.option.$popupRide,this.$popupGetoff=this.option.$popupGetoff,this.$placeRide=this.option.$placeRide,this.$placeRideAsakusa=this.option.$placeRideAsakusa,this.$placeRideHinode=this.option.$placeRideHinode,this.$placeRideOdaiba=this.option.$placeRideOdaiba,this.$placeRidePalettetown=this.option.$placeRidePalettetown,this.$placeRideBigsight=this.option.$placeRideBigsight,this.$placeRideHamarikyu=this.option.$placeRideHamarikyu,this.$placeRideToyosu=this.option.$placeRideToyosu,this.$placeGetoff=this.option.$placeGetoff,this.$placeGetoffAsakusa=this.option.$placeGetoffAsakusa,this.$placeGetoffHinode=this.option.$placeGetoffHinode,this.$placeGetoffOdaiba=this.option.$placeGetoffOdaiba,this.$placeGetoffPalettetown=this.option.$placeGetoffPalettetown,this.$placeGetoffBigsight=this.option.$placeGetoffBigsight,this.$placeGetoffHamarikyu=this.option.$placeGetoffHamarikyu,this.$placeGetoffToyosu=this.option.$placeGetoffToyosu,this.$txtRide=this.option.$txtRide,this.$txtGetoff=this.option.$txtGetoff,this.$placeBtn=this.option.$placeBtn,this.$selectRideSp=this.option.$selectRideSp,this.$selectGetoffSp=this.option.$selectGetoffSp,this.$placeRideSp=this.option.$placeRideSp,this.$placeGetoffSp=this.option.$placeGetoffSp,this.$changePlaceFrom="",this.$changePlaceTo=""}return i(e,[{key:"init",value:function(){this.bindEvent();var e=void 0;$(window).width()>1024&&(this.$placeRide.find("input:checked").length>0&&this.changeTxtRide(),this.$placeGetoff.find("input:checked").length>0&&(e=this.$placeGetoff.find("input:checked").val(),this.setTxtGetoff(),this.changeBtn(),this.changeCource(),this.$placeGetoff.find("input").each(function(){$(this).val()===e&&$(this).prop("checked",!0)}))),$(window).width()<=1024&&(this.$selectRideSp.find("option").eq(0).is(":selected")||this.changeTxtRide
1Sp(),this.$selectGetoffSp.find("option").eq(0).is(":selected")||(e=this.$selectGetoffSp.find("option:checked").val(),this.changeBtnSp(),this.changeCource(),this.$selectGetoffSp.find("option").each(function(){$(this).val()===e&&$(this).prop("selected",!0)})))}},{key:"bindEvent",value:function(){var e=this;$(".js-select-ride, .js-select-getoff").on("click",function(){e.togglePopup($(this))})}},{key:"togglePopup",value:function(e){var t=this;if(!e)return this.$popupRide.removeClass("is-show"),setTimeout(function(){t.$popupRide.css("display","none")},300),this.$popupGetoff.removeClass("is-show"),void setTimeout(function(){t.$popupGetoff.css("display","none")},300);if(e.hasClass("js-select-ride")&&(this.$popupRide.is(":visible")?(this.$popupRide.removeClass("is-show"),setTimeout(function(){t.$popupRide.css("display","none")},300)):(this.$popupGetoff.css("display","none").removeClass("is-show"),this.$popupRide.css("display","block"),setTimeout(function(){t.$popupRide.addClass("is-show")},100))),e.hasClass("js-select-getoff")){if(e.hasClass("is-disable"))return;this.$popupGetoff.is(":visible")?(this.$popupGetoff.removeClass("is-show"),setTimeout(function(){t.$popupGetoff.css("display","none")},300)):(this.$popupRide.css("display","none").removeClass("is-show"),this.$popupGetoff.css("display","block"),setTimeout(function(){t.$popupGetoff.addClass("is-show")},100))}}},{key:"changeTxtRide",value:function(){this.$selectGetoff.removeClass("is-disable"),this.$txtRide.text(this.$placeRide.find("input:checked").data("txt")),this.changePlaceFrom(this.$placeRide.find("input:checked").attr("value"))}},{key:"changeTxtGetoff",value:function(){this.$txtGetoff.text("降り場を選択してください"),this.$placeGetoff.find("input").prop("checked",!1)}},{key:"setTxtGetoff",value:function(){this.$txtGetoff.text(this.$placeGetoff.find("input:checked").data("txt")),this.changePlaceTo(this.$placeGetoff.find("input:checked").attr("value"))}},{key:"changeBtn",value:function(){0===this.$placeRide.find("input:checked").length||0===this.$placeGetoff.find("input:checked").length?this.$placeBtn.addClass("btn-disable"):this.$placeRide.find("input:checked").length>0&&this.$placeGetoff.find("input:checked").length>0&&this.$placeBtn.removeClass("btn-disable")}},{key:"changeTxtRideSp",value:function(){this.$selectRideSp.find("option").eq(0).is(":selected")?this.$selectGetoffSp.addClass("is-disable"):this.$selectGetoffSp.removeClass("is-disable")}},{key:"changeTxtGetoffSp",value:function(){this.$selectGetoffSp.find("option").prop("selected",!1),this.$selectGetoffSp.find("option").eq(0).prop("selected",!0)}},{key:"changeBtnSp",value:function(){this.$selectRideSp.find("option").eq(0).is(":selected")||this.$selectGetoffSp.find("option").eq(0).is(":selected")?this.$placeBtn.addClass("btn-disable"):this.$selectRideSp.find("option").eq(0).is(":selected")||this.$selectGetoffSp.find("option").eq(0).is(":selected")||this.$placeBtn.removeClass("btn-disable"),this.changePlaceFrom(this.$selectRideSp.find("option:selected").attr("value")),this.changePlaceTo(this.$selectGetoffSp.find("option:selected").attr("value"))}},{key:"changePlaceFrom",value:function(e){this.$changePlaceFrom=e}},{key:"changePlaceTo",value:function(e){this.$changePlaceTo=e}},{key:"changeUrl",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"from":arguments[0],t=arguments.length<=1||void 0===arguments[1]?"to":arguments[1];""!=this.$changePlaceFrom&&""!=this.$changePlaceTo&&history.replaceState("","","?"+e+"="+this.$changePlaceFrom+"&"+t+"="+this.$changePlaceTo)}},{key:"changeCource",value:function(){this.$placeGetoff.removeClass("is-show"),$(".js-select-place-getoff-sp").remove();var e=void 0;switch($(window).width()>1024&&(e=this.$placeRide.find("input:checked").data("txt")),$(window).width()<=1024&&(e=this.$selectRideSp.find("option:selected").data("txt")),e){case"浅草":this.$placeGetoffHamarikyu.addClass("is-show"),this.$placeGetoffHinode.addClass("is-show"),this.$placeGetoffOdaiba.addClass("is-show"),this.$placeGetoffToyosu.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.hamarikyu,o.hinode,o.odaiba,o.toyosu);break;
1case"日の出桟橋":this.$placeGetoffAsakusa.addClass("is-show"),this.$placeGetoffOdaiba.addClass("is-show"),this.$placeGetoffPalettetown.addClass("is-show"),this.$placeGetoffBigsight.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.asakusa,o.odaiba,o.palettetown,o.bigsight);break;case"お台場海浜公園":this.$placeGetoffAsakusa.addClass("is-show"),this.$placeGetoffHinode.addClass("is-show"),this.$placeGetoffToyosu.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.asakusa,o.hinode,o.toyosu);break;case"パレットタウン":this.$placeGetoffBigsight.addClass("is-show"),this.$placeGetoffHinode.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.bigsight,o.hinode);break;case"東京ビッグサイト":this.$placeGetoffHinode.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.hinode);break;case"浜離宮":this.$placeGetoffAsakusa.addClass("is-show"),this.$placeGetoffHinode.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.asakusa,o.hinode);break;case"豊洲":this.$placeGetoffAsakusa.addClass("is-show"),this.$selectGetoffSp.find("select").append(o.def,o.asakusa)}}}]),e}();t["default"]=a},23:function(e,t){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,s,i){return s&&e(t.prototype,s),i&&e(t,i),t}}(),o="onwheel"in document?"wheel":"onmousewheel"in document?"mousewheel":"DOMMouseScroll",a="touchstart touchmove touchend",n=function(){function e(t){s(this,e),this.option=t||{},this.$placeRide=t.$placeRide,this.$placeGetoff=t.$placeGetoff,this.$courcePopup=t.$courcePopup,this.$courcePopupContent=t.$courcePopupContent,this.$selectRideSp=$(".js-select-ride-sp"),this.$selectGetoffSp=$(".js-select-getoff-sp"),this.$placeRideSp=$(".js-select-place-ride-sp"),this.$placeGetoffSp=$(".js-select-place-getoff-sp"),this.ride="",this.getoff=""}return i(e,[{key:"init",value:function(){$(window).width()>1024&&(this.$placeRide.find("input:checked").length>0&&this.updateRide(),this.$placeGetoff.find("input:checked").length>0&&(this.updateGetoff(),this.changePopup())),$(window).width()<=1024&&(this.$selectRideSp.find("option").eq(0).is(":selected")||this.updateRideSp(),this.$selectGetoffSp.find("option").eq(0).is(":selected")||(this.updateGetoffSp(),this.changePopup()))}},{key:"bindEvent",value:function(){var e=this;$(document).on(o,function(t){return e.scrollCancel(t)}),$(document).on(a,function(t){return e.scrollCancel(t)})}},{key:"updateRide",value:function(){this.ride=this.$placeRide.find("input:checked").data("txt")}},{key:"updateGetoff",value:function(){this.getoff=this.$placeGetoff.find("input:checked").data("txt")}},{key:"updateRideSp",value:function(){this.ride=this.$selectRideSp.find("option:selected").data("txt")}},{key:"updateGetoffSp",value:function(){this.getoff=this.$selectGetoffSp.find("option:selected").data("txt")}},{key:"scroll",value:function(e){this.bindEvent(),this.showPopup(e)}},{key:"showPopup",value:function(e){this.$courcePopup.css("padding-top",e.outerHeight()),e.css("visibility","visible").addClass("is-show")}},{key:"scrollCancel",value:function(){$("html, body").stop(),$(document).off(o),$(document).off(a)}},{key:"changePopup",value:function(){switch(this.ride+"から"+this.getoff){case"浅草から浜離宮":this.scroll($(".js-cource-popup-contents-asakusa-hamarikyu"));break;case"浅草から日の出桟橋":this.scroll($(".js-cource-popup-contents-asakusa-hinode"));break;case"浅草からお台場海浜公園":this.scroll($(".js-cource-popup-contents-asakusa-odaiba"));break;case"浅草から豊洲":this.scroll($(".js-cource-popup-contents-asakusa-toyosu"));break;case"浜離宮から日の出桟橋":this.scroll($(".js-cource-popup-contents-hamarikyu-hinode"));break;case"浜離宮から浅草":this.scroll($(".js-cource-popup-contents-hamarikyu-asakusa"));break;
1case"日の出桟橋からお台場海浜公園":this.scroll($(".js-cource-popup-contents-hinode-odaiba"));break;case"日の出桟橋からパレットタウン":this.scroll($(".js-cource-popup-contents-hinode-palettetown"));break;case"日の出桟橋から東京ビッグサイト":this.scroll($(".js-cource-popup-contents-hinode-bigsight"));break;case"日の出桟橋から浅草":this.scroll($(".js-cource-popup-contents-hinode-asakusa"));break;case"お台場海浜公園から浅草":this.scroll($(".js-cource-popup-contents-odaiba-asakusa"));break;case"お台場海浜公園から日の出桟橋":this.scroll($(".js-cource-popup-contents-odaiba-hinode"));break;case"お台場海浜公園から豊洲":this.scroll($(".js-cource-popup-contents-odaiba-toyosu"));break;case"パレットタウンから東京ビッグサイト":this.scroll($(".js-cource-popup-contents-palettetown-bigsight"));break;case"パレットタウンから日の出桟橋":this.scroll($(".js-cource-popup-contents-palettetown-hinode"));break;case"東京ビッグサイトから日の出桟橋":this.scroll($(".js-cource-popup-contents-bigsight-hinode"));break;case"豊洲から浅草":this.scroll($(".js-cource-popup-contents-toyosu-asakusa"));break;default:this.scroll($(".js-cource-popup-contents-default"))}}},{key:"resetPopup",value:function(){$("[class*=js-cource-popup-contents-]").css("visibility","hidden").removeClass("is-show")}}]),e}();t["default"]=n}});

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.