Note:
- To view this page in English, please set your browser's preferred language to a language other than Japanese.
- If we detect that you are login from a different location than you normally do, we will send you an email from "[email protected]".
';
}
// ワンタイムパスワード(メール)画面専用
if (location.pathname == "/pub/motplogin.cgi") {
// メール送信元を差し込み
const p = document.createElement('p');
switch (document.documentElement.lang) {
case "en":
p.innerHTML = "* Please enter the password without closing this screen.
* Sender email address :
[email protected]";
break;
case "zh":
p.innerHTML = "* 请勿关闭此屏幕并输入密码
* 发件人电子邮件地址 :
[email protected]";
break;
default:
p.innerHTML = "* この画面を閉じずに、メール本文に記載のパスワードを入力してください
* 送信元アドレス :
[email protected]";
}
document.getElementsByClassName("login__main")[0].appendChild(p);
// メール送信後に時間差で来る
// MutationObserver(インスタンス)の作成
let mo = new MutationObserver(function (mutationsList, observer) {
// 変更検出時に実行する内容
let dusername_area = document.getElementById("dusername_area");
// console.log(dusername_area.innerHTML);
if (dusername_area != undefined) {
renameText(dusername_area, "@auth.tohoku.ac.jp", "");
}
});
// 監視の開始
mo.observe(document.getElementById("dusername_area"), { childList: true });
}
});
})();