PageSourceSearch

https://www.tmu.ac.jp/assets/templates/ver2022/js/main.min.js

js tmu.ac.jp collected 2026-10-02 09:48:54 UTC 12,506 bytes, 1 lines download raw bytes

1function uniq(e){return e.filter((e,t,n)=>n.indexOf(e)===t)}function setScrollTable(){$("#content2022 table:not(.nozoom,.nopopup,.gsc-search-box,.gsc-input)").each(function(){$(this).parent("div").hasClass("tableWrap")||$(this).wrap('<div class="tableWrap"></div>')}),$(window).trigger("tablewrap"),$("#content2022 table").each(function(){function e(e){var t=0;return $(e).children("td, th").each(function(){$(this).attr("colspan")?t+=parseInt($(this).attr("colspan")):t+=1}),t}var t=!0,n=0,o=0;$(this).find("tbody tr:first th").each(function(){$(this).attr("colspan")?n+=parseInt($(this).attr("colspan")):n+=1}),o=e($(this).find("tr:first-child")),$(this).find("tbody tr:first-child").addClass("odd"),$(this).find("tbody tr:nth-child(n + 2)").each(function(){o!=e($(this))&&n!=$(this).find("th").length||(t=!t),1!=t?$(this).addClass("even"):$(this).addClass("odd")})})}function smoothScroll(e){function t(e){location.hash="",$("body,html").stop().animate({scrollTop:e},{duration:1200,easing:"easeOutCubic",always:function(){scrollCue.enable(!0)}})}let n,o;scrollCue.enable(!1),n="string"==typeof e?e:$(e).attr("href").replace(/(.+?)(#.*)/i,"$2"),n=n.replace(/\?.*/i,""),o=$("#strut").outerHeight()<64?72:32;let s=$("#"==n||""==n||0==$(n).length?"html":n),i=s.offset().top-5-o,a=0,r=0;$("img.lazyload").each(function(){$(this).offset().top<i&&"undefined"!==$(this).data("parent-fit")&&!$(this).is(":hidden")&&(lazySizes.loader.unveil(this),++a,$(this).on("load",function(){++r}))}),lazySizes.loader.checkElems();const l=setInterval(function(){clearInterval(c),i=s.offset().top-5-o,t(i)},1e3),c=setInterval(function(){r>=a&&(clearInterval(c),clearTimeout(l),i=s.offset().top-5-o,t(i))},10);return!1}function setHover(e){$(e).removeClass("hover"),$(e).on("mouseenter touchstart",function(){$(this).prop("disabled")||$(this).addClass("hover")}).on("mouseleave touchend",function(){$(this).removeClass("hover")})}function setVh(){let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",e+"px")}function setSubmenu(e,t=0,n=0,o="#subMenu"){$(o+' button[data-bs-toggle="popover"]').attr("data-bs-placement",e).attr("data-bs-offset",t+","+n)}function setWidthClass(){let e,t;if(origWidth=window.innerWidth,origHeight=window.innerHeight,setVh(),$("#gcse-searchbox").collapse("hide"),t=e,e=$("#sizeCheck > span:visible").attr("class").match(/\bv\-\S+/)[0],t!==e)switch($("html").removeClass(function(e,t){return(t.match(/\bv-\S+/g)||[]).join(" ")}),$("html").addClass(e),"v-lg"==e||"v-xl"==e||"v-xxl"==e?($("#globalMenu").addClass("offcanvas-end").removeClass("offcanvas-fade mobile"),$("#globalMenu").find(".collapse").addClass("collapse-horizontal")):($("#globalMenu").addClass("offcanvas-fade mobile").removeClass("offcanvas-end"),$("#globalMenu").find(".collapse").removeClass("collapse-horizontal")),e){case"v-xs":case"v-sm":case"v-md":setSubmenu("bottom",0,-10),setSubmenu("top",0,-10,"#kvMenu");break;case"v-lg":case"v-xl":case"v-xxl":setSubmenu("left")}}function setPopover(){submenuPopupsList=submenuPopups.map(function(e,t){return $(t).on("inserted.bs.popover",function(e){$(".popover.subMenu .gcse-searchbox-only").attr("id","gcse-searchbox").empty(),google.search.cse.element.render({div:"gcse-searchbox",tag:"searchbox-only",attributes:{queryParameterName:"Q",enableHistory:!0,enableAutoComplete:!0,resultsUrl:cseURL}}),setHover(".popover a"),$(".popover.subMenu").siblings(".gssb_c").remove()}).on("click",function(e){if(!submenuMoving){let e=bootstrap.Popover.getInstance(this);return $(popoverList).each(function(t,n){e!==n&&n.hide()}),e.toggle(),!1}}).on("show.bs.popover hide.bs.popover",function(e){submenuMoving=!0}).on("shown.bs.popover hidden.bs.popover",function(e){submenuMoving=!1}),new bootstrap.Popover(t,{placement:function(){return $(t).attr("data-bs-placement")},fallbackPlacements:["bottom"],trigger:"manual",content:$(t).siblings(".popoverItem").html(),html:!0,sanitize:!1,animation:!0,template:'<div class="popover subMenu" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'})}
1),Array.prototype.push.apply(popoverList,submenuPopupsList)}function closePopover(e){e.stopPropagation();const t=e.type;if($("body").hasClass("mfp-zoom-out-cur"))return;let n=$(".setPopover").filter(".active"),o=$(".popover input");return gscOpened=o.length,$(e.target).is(n)||$(e.target).is(o)||0!=$(e.target).closest(".popover.subMenu").length||"resize"==t&&gscOpened>0||($(n).filter(".active").removeClass("active"),$(popoverList).each(function(e,t){t.hide()}),gscOpened=0),!1}function setButtonMoreWrapHeight(){$("button.more").each(function(){let e=$(this).parent(".buttonMoreWrap").prev(".moreBlock");if(e.length>0){let t=$(e).css("margin-top").replace("px","");t=t<0?t:0;const n=$(e)[0].scrollHeight-t;$(e).css("--moreBlock-height",n+"px")}})}const userAgent=window.navigator.userAgent.toLowerCase();let origWidth=window.innerWidth,origHeight=window.innerHeight,popoverList=[];!function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}void 0!==e.easing&&(e.easing.jswing=e.easing.swing);var n=Math.pow,o=Math.sqrt,s=Math.sin,i=Math.cos,a=Math.PI,r=1.70158,l=1.525*r,c=2*a/3,u=2*a/4.5;return e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-n(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-n(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-n(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-n(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-n(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-n(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-n(-2*e+2,5)/2},easeInSine:function(e){return 1-i(e*a/2)},easeOutSine:function(e){return s(e*a/2)},easeInOutSine:function(e){return-(i(a*e)-1)/2},easeInExpo:function(e){return 0===e?0:n(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-n(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?n(2,20*e-10)/2:(2-n(2,-20*e+10))/2},easeInCirc:function(e){return 1-o(1-n(e,2))},easeOutCirc:function(e){return o(1-n(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-o(1-n(2*e,2)))/2:(o(1-n(-2*e+2,2))+1)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-n(2,10*e-10)*s((10*e-10.75)*c)},easeOutElastic:function(e){return 0===e?0:1===e?1:n(2,-10*e)*s((10*e-.75)*c)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-n(2,20*e-10)*s((20*e-11.125)*u)/2:n(2,-20*e+10)*s((20*e-11.125)*u)/2+1},easeInBack:function(e){return 2.70158*e*e*e-r*e*e},easeOutBack:function(e){return 1+2.70158*n(e-1,3)+r*n(e-1,2)},easeInOutBack:function(e){return e<.5?n(2*e,2)*(7.189819*e-l)/2:(n(2*e-2,2)*((l+1)*(2*e-2)+l)+2)/2},easeInBounce:function(e){return 1-t(1-e)},easeOutBounce:t,easeInOutBounce:function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}),e});const wait=e=>new Promise((t,n)=>{setTimeout(t,1e3*e)});$.event.special.touchstart={setup:function(e,t,n){t.includes("passive")?this.addEventListener("touchstart",n,{passive:!1}):this.addEventListener("touchstart",n,{passive:!0})}},document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||$("html").addClass("no-svg"),/iphone|ipad|ipod/i.test(userAgent)&&$("html").addClass("ios"),/android/i.test(userAgent)&&$("html").addClass("android"),/safari/i.test(userAgent)&&$("html").addClass("safari"),/chrome/i.test(userAgent)&&$("html").addClass("chrome"),/firefox/i.test(userAgent)&&$("html").addClass("firefox");var getUrlParameter=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),o=n.exec(t);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null};const submenuPopups=$('#subMenu button[data-bs-toggle="popover"], #kvMenu button[data-bs-toggle="popover"]');let submenuMoving=!1;const InitCSE=function(){google.search.cse.element.render({div:"searchresults",tag:"searchresults-only",attributes:{queryParameterName:"Q"}})};window.__gcse={callback:function(){"complete"==document.readyState?$("#searchresults").length&&InitCSE():$("#searchresults").length&&google.setOnLoadCallback(function(){InitCSE()},!0)}};let gscOpened=0;var resizeTimer;jQuery.fn.hasClasses=function(e,t){var n,o,s=0;for("string"==typeof e&&(e=e.match(/^\./)?e.replace(/^\./,"").split("."):jQuery.trim(e).split(" ")),n=0,o=e.length;n<o;n++)this.hasClass(e[n])&&s++;if(t){if(s>0)return!0}else if(s===o)return!0;return!1},$(function(){const e=location.hash;if($("*").removeClass("hover"),setWidthClass(),setScrollTable(),setButtonMoreWrapHeight(),setHover("a, button"),$("a.disable").click(function(){return!1}),$(".pageback button").click(function(){history.back()}),$('a:not(.noSmoothScroll)[href*="#"]').on("click",function(e){return this.pathname!=location.pathname&&!$(this).attr("href").match(/^#/)||(e.preventDefault(),smoothScroll(this),!1)}),e&&smoothScroll(e),$(document).on("click",function(e){closePopover(e)}),$(window).on("resize",function(e){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){setWidthClass(),closePopover(e),setButtonMoreWrapHeight()},100)}
1),setPopover(),$("div.accordion").on("shown.bs.collapse",function(e){smoothScroll("#"+e.target.id.replace("collapse","heading"))}),$(".modal:has(iframe)").on("shown.bs.modal",function(){$(this).find("iframe").height($(this).find("iframe")[0].contentWindow.document.documentElement.scrollHeight)}).on("hidden.bs.modal",function(){$(this).find("iframe").removeAttr("style")}),$("button.more").on("click",function(){let e=$(this).parent(".buttonMoreWrap").prevAll(".moreBlock.close:first");e.removeClass("close"),setTimeout(function(){$(elm).parent(".buttonMoreWrap").addClass("hide")},200,elm=this)}),$("body").hasClass("withScrollSpy"))new bootstrap.ScrollSpy(document.body,{target:"#scrollSpy",offset:100});$(this).on("lazybeforesizes",function(){$("img.hmode, .lazyload.bg, .lazyloaded.bg").each(function(){let e;e=$(this).hasClass("bg")?$(this).find("source"):$(this);const t=$(this).data("origsize").split(","),n=$(this).innerHeight(),o=Math.round(t[0]*n/t[1]);e.attr("sizes",o+"px")}),lazySizes.loader.checkElems()}),$("#ctgMenu li.level3.active, #ctgMenu li.level3.current, #ctgMenu li.level4.active, #ctgMenu li.level4.current").parent("ul").each(function(){$(this).collapse("show")});let t=!1,n=!1,o=0;var s=document.getElementById("globalMenu"),i=new bootstrap.Offcanvas(s);$("#globalMenuWrap a").on("click",function(){i.hide()}),$("#globalMenu").on("show.bs.offcanvas",function(){t=!0,$("#menuBtn > button").removeClass("collapsed"),$("#spSearchBox input").prop("disabled",!1)}).on("hide.bs.offcanvas",function(){t=!0,$("#spSearchBox input").prop("disabled",!0),$("#globalMenu.mobile div.children").each(function(){$(this).collapse("hide")}),$("#menuBtn > button").addClass("collapsed")}).on("hidden.bs.offcanvas",function(){t=!1,$("#menuBtn > button").addClass("collapsed"),$(this).stop(),n=!1}).on("shown.bs.offcanvas",function(){if(t=!1,i._focustrap.deactivate(),$("#globalMenu").hasClass("mobile"))return $.when($("#globalMenu.mobile li.active, #globalMenu.mobile li.current").closest("div").each(function(){$(this).collapse("show")})).done(function(){let e=0;$("#globalMenu.mobile li.current").length>0&&(e=$("#globalMenu.mobile li.current").position().top),$("#globalMenuWrap").animate({scrollTop:e},"slow","swing",function(){n=!0})}),!1}),$("#globalMenu.mobile div.children").on("show.bs.collapse",function(e){n&&0==o&&(o=this.id)}).on("shown.bs.collapse",function(e){if(n)return offset=$("#"+o).position().top,$("#globalMenuWrap").animate({scrollTop:offset-35},"slow","swing"),o=0,!1}),$('[data-outlink="true"]').on("click",function(){const e=$(this).attr("href");gtag("event","click",{event_category:"outlink",event_label:e})}),$('[data-link-pdf="true"]').on("click",function(){const e=$(this).attr("href");gtag("config","G-DZ38TV16MT",{page_path:e})}),$(window).on("beforeprint",function(){$("img.lazyload").each(function(){lazySizes.loader.unveil(this)})}),scrollCue.init({duration:1500,interval:-.7,percentage:.8})});

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.