PageSourceSearch

https://cmj.umds.ac.jp/campusweb/js/main.js

js umds.ac.jp collected 2026-10-02 10:24:30 UTC 4,407 bytes, 11 lines download raw bytes

1var g_thisFileLoaded;"boolean"!=typeof g_thisFileLoaded&&(g_thisFileLoaded=!0,Event.observe(window,"beforeunload",disableEvent,!1));var g_downloadFlg=!1,g_downloadFlg2=!1;function doDownload(a){setDownload();window.location.href=a}function setDownload(){g_downloadFlg2=g_downloadFlg=!0}
2function disableEvent(a){if(g_downloadFlg)g_downloadFlg=!1;else if(g_downloadFlg2)g_downloadFlg2=!1;else{for(a=0;a<document.links.length;a++)document.links[a].onclick=showBlockMessage,document.links[a].style.cursor="progress";for(a=0;a<document.forms.length;a++)for(var b=document.forms[a],c=0;c<b.elements.length;c++){var d=b.elements[c];"button"==d.type||"submit"==d.type||"reset"==d.type||"radio"==d.type?(d.onclick=showBlockMessage,d.style.cursor="progress","radio"==d.type&&(d.onchange=cancelEvent,
3d.onkeydown=cancelEvent,d.onmousedown=cancelEvent)):"select"==d.tagName.toLowerCase()&&(d.onchange=cancelEvent,d.onkeydown=cancelEvent,d.onmousedown=cancelEvent,d.style.cursor="progress")}b=document.getElementsByTagName("td");for(a=0;a<b.length;a++)null!=b[a].onclick&&(b[a].onclick=showBlockMessage,b[a].style.cursor="progress");document.activeElement.style.cursor="progress";document.activeElement.disabled=!0}}function cancelEvent(){return!1}
4function showBlockMessage(){null!=showBlockAlartMessage&&alert(showBlockAlartMessage);return!1}function addListener(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent?a.attachEvent("on"+b,c):alert(addListenerError)}function addListenerById(a,b,c,d){(a=document.getElementById(a))&&addListener(a,b,c,d)}
5function exec(a,b,c){b=b.parentNode;for(var d=null;;)if(b)if("FORM"==b.nodeName){d=b;break}else curObj=b,b=b.parentNode;else break;if(c&&!c(d))return!1;d.buttonName.value=a;try{d.submit()}catch(e){-2146823281!=e.number&&-2147024891!=e.number||alert(noFoundResourceError)}return!1}function logoutCheck(a){confirm(a)&&document.logoutForm.submit()}function daikofinishCheck(a){confirm(a)&&document.daikoForm.submit()}
6function getRadioButtonCheckedValue(a){if(null==a)return null;if(a.length)for(var b=0;b<a.length;b++){if(a[b].checked)return a[b].value}else if(a.checked)return a.value;return null}function getElement(a){a=document.getElementsByName(a);return null!=a&&0!=a.length?a[0]:null}function getElementValue(a){a=getElement(a);return null!=a?$F(a):null}function getElementValueById(a){a=$(a);return null!=a?$F(a):null}
7function setSelectedOption(a,b){for(var c=0;c<a.length;c++)if(a.options[c].value==b){a.options[c].selected=!0;break}}function hasOption(a,b){for(var c=0;c<a.length;c++)if(a.options[c].value==b)return!0;return!1}function addOption(a,b,c){var d=document.createElement("option");d.value=b;d.appendChild(document.createTextNode(c));a.appendChild(d)}function selectAllCheckbox(a){setAllCheckbox(a,!0);return!1}function clearAllCheckbox(a){setAllCheckbox(a,!1);return!1}
8function setAllCheckbox(a,b){var c=document.getElementsByName(a);if(null!=c)if(c.length)for(var d=0;d<c.length;d++)c[d].checked=b;else c.checked=b}function isSelectAllCheckbox(a){a=document.getElementsByName(a);if(null!=a&&a.length){for(var b=0;b<a.length;b++)if(!a[b].checked)return!1;return!0}return!1}function isSelectAnyCheckbox(a){a=document.getElementsByName(a);if(null!=a&&a.length)for(var b=0;b<a.length;b++)if(a[b].checked)return!0;return!1}
9function escapeHTMLForHash(a){for(var b in a){var c=a[b];null!=c&&"string"==typeof c&&(a[b]=a[b].escapeHTML())}}function strLength(a){len=0;
9a=escape(a);for(i=0;i<a.length;i++,len++)"%"==a.charAt(i)&&("u"==a.charAt(++i)&&(i+=3,len++),i++);return len}
10function bindInputAndSetMaxValue(a,b){var c=null;jq$(b).focus(function(){c=jq$(b)[0].value});var d=0;jq$(b).bind("select",function(){d=jq$(this).get(0).selectionEnd-jq$(this).get(0).selectionStart;console.log("selectLen:"+d)});jq$(b).bind("input propertychange",function(){var e=jq$(b)[0];if(getCurrentLength(b)<=a)c=e.value,d=0;else{for(var h=e.selectionStart-(e.value.length-c.length)+(e.selectionEnd-e.selectionStart),g=c.substring(0,h-d),k=getValueLen(g),h=c.substring(h),l=getValueLen(h),f=e.value.substring(g.length,
11e.value.length-l),k=a-k-l,f=f.substring(0,k);null!=f&&0<f.length&&getValueLen(f)>k;)f=f.substring(0,f.length-1);e.value=g+f+h;g=a-l-d;e.setSelectionRange(g,g);d=0;c=e.value}})}function getCurrentLength(a){return getValueLen(jq$(a).val())}function getValueLen(a){var b=0,c=a.match(/[\r\n]/gi);null!=c&&(b+=c.length);return b+=a.length};

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.