エラー
ページが見つかりません。
申し訳ございません。ご指定のページは一時的にアクセスできない状況にあるか、削除・移動された可能性があります。
NowLoading...'; is ? document.getElementsByClassName("wrapper")[0].append(newNowLoading) : document.getElementsByClassName("create-nowloading")[0].remove();
}
var isFnGameStartModalShow = false;
let fnGameStart = (registUrl, loginUrl) => {
if (isFnGameStartModalShow) {
return;
}
isFnGameStartModalShow = true;
const newGameStart = document.createElement("div");
newGameStart.className = "create-gamestart";
newGameStart.innerHTML = ' ゲームをプレイするためにはNEXON IDログインが必要です。' +
' ※ログインが完了次第、ゲームがダウンロード / 起動されます。' +
'';
document.getElementsByClassName("wrapper")[0].append(newGameStart);
document.querySelectorAll(".create-gamestart .btn-registry a")[0].addEventListener("click", (e) => {
e.preventDefault();
createBtnFlag = false;
isFnGameStartModalShow = false;
document.getElementsByClassName("create-gamestart")[0].remove();
window.location.href = registUrl;
});
let login = document.querySelectorAll(".create-gamestart .yes a, .create-gamestart .btn-login a");
for (let i = 0; i < login.length; i++) {
login[i].addEventListener("click", (e) => {
e.preventDefault();
createBtnFlag = false;
isFnGameStartModalShow = false;
document.getElementsByClassName("create-gamestart")[0].remove();
window.location.href = loginUrl;
});
}
let close = document.querySelectorAll(".create-gamestart .no a, .create-gamestart .close");
for (let i = 0; i < close.length; i++) {
close[i].addEventListener("click", (e) => {
e.preventDefault();
isFnGameStartModalShow = false;
createBtnFlag = false;
document.getElementsByClassName("create-gamestart")[0].remove();
});
}
}
let fnFirstTime = (mapldeid) => {
const newFirstTime = document.createElement("div");
newFirstTime.className = "create-firsttime";
newFirstTime.innerHTML = ' 代表メイプルID「' + mapldeid + '」が設定されました。 ' + message + '';
document.getElementsByClassName("wrapper")[0].append(newGameStart);
newGameStart.addEventListener("click", () => {
document.getElementsByClassName("create-gamestart")[0].remove();
if (redirectUrl != "" && redirectUrl != undefined) {
location.href = redirectUrl;
}
});
}
var NgbCookie = new function __NgbCookie()
{
this.GetCookie = function (nameVal)
{
var numCookie = document.cookie.length;
var oven = document.cookie.split('; ');
for (var i = 0; i < oven.length; i++)
{
if (oven[i].indexOf('=') != -1) {
cookieName = oven[i].substring(0, oven[i].indexOf('='));
} else {
cookieName = oven[i];
}
if (cookieName == nameVal) {
if (oven[i].indexOf('=') != -1) {
cookieVal = oven[i].substr(oven[i].indexOf('=') + 1);
} else {
cookieVal = '';
}
return cookieVal;
}
}
return '';
}
}
function doUpdateSession()
{
if (NgbCookie.GetCookie('NPP') != '') {
AuthSystem.UpdateSession(onUpdateResponse);
}
}
var objUpdateInterval = null;
function onUpdateResponse(resultObject, responseXML)
{
if (resultObject.ErrorCode == undefined) {
alert('一定の時間が経過したため、\n公式サイトからログアウトします。');
window.location.href = "/logout/";
} else if (resultObject.ErrorCode == CommonError.NoError) {
window.clearInterval(objUpdateInterval);
objUpdateInterval = setInterval("doUpdateSession()", resultObject.UpdateInterval * 1000);
} else if (resultObject.ErrorCode == AuthSystemError.Disconnected) {
alert("別のパソコンでログインされたため、\n公式サイトからログアウトしました。");
window.location.href = "/logout/";
} else {
}
}
setTimeout("doUpdateSession()", 1); // ExpireLimit(Second), UpdateSession
function NGM_GxLaunchGame() {
var npp = unescape(NgbCookie.GetCookie('NPP'));
NGM.GxLaunchGame("16785939@bb01", null, npp, null, null, null, null, "NexonJapan");
}
function GameStartByWeb() {
fnNowLoading(true);
var entryform = $("#frmNgm");
$.ajax({
url: entryform.attr('action'),
type: entryform.attr('method'),
cache: false,
data: entryform.serialize()
}).always(function (data) {
isGameStartSubmitted = false;
isDownloadSubmitted = false;
fnNowLoading(false);
}).done(function (data) {
if (data != "") {
var Jobj = $.parseJSON(data);
if (Jobj.Result == "OK") {
NGM_GxLaunchGame();
}
else if (Jobj.Result == "FirstTime") {
fnFirstTime(TryGetValueByReturnJsonResult("mapleid", Jobj));
}
else {
var url0 = TryGetValueByReturnJsonResult("URL0", Jobj);
var url1 = TryGetValueByReturnJsonResult("URL1", Jobj);
if (url0 != "" && url1 != "") {
fnGameStart(url0, url1);
}
else {
NgmReturnJsonResult(Jobj)
}
}
}
}).fail(function (data) {
fnMessageModal("タイムアウトしました。もう一度やり直して下さい。", window.location);
});
}
function GameDownloadByWeb() {
var npp = unescape(NgbCookie.GetCookie('NPP'));
NGM.GxLaunchGame("16785939@bb01", null, npp, null, null, null, null, "NexonJapan");
isDownloadSubmitted = false;
}
function NgmReturnJsonResult(Jobj) {
var msg = "";
var url = "";
for (var i in Jobj.Parameters) {
switch (Jobj.Parameters[i].Title) {
case "Massage":
msg = Jobj.Parameters[i].Value;
break;
case "URL":
url = Jobj.Parameters[i].Value;
break;
}
}
if (msg) {
fnMessageModal(msg, url);
return;
}
if (url) {
location.href = url;
}
}
function TryGetValueByReturnJsonResult(key, Jobj) {
for (var i in Jobj.Parameters) {
switch (Jobj.Parameters[i].Title) {
case key:
return Jobj.Parameters[i].Value;
break;
}
}
return "";
}
このIDでゲームを起動します。' +
'