したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | メール | |
レス数が900を超えています。1000を超えると投稿できなくなるよ。

戦国IXA ツールスレPart48

805名無しさん:2023/10/18(水) 07:32:09 ID:iOR7Vu4I
>>727
これの原因がようやくわかりました
2点あって、鯖選択の所でclickだと発火しなかったのでmousedownにしたのと
何期目かを取得するmatchの検索文字列が正しくありませんでした
また>>802の告知が上に来てしまう部分は>>787と同様の対応をしました
ソースは全文です

function MokoLogin($) {
console.debug('Load... MokoLogin');
"use strict";

// ログイン時間
var time = ~~(new Date() / 1000);
document.cookie = 'im_st=' + time + '; max-age=10800; domain=.sengokuixa.jp; path=/;';
$('div.infoTable').css({
'margin-left': '0',
'padding': '0'
}).insertBefore('div.back');
$('div[class*="subserver_s"], div[class*="mainserver_s"]').mousedown(function() {
if (MokoLogin.flag) {
location.href = $('div.back a').attr('href');
return false;
}

var title = $(this).parent().attr('title') || $(this).find('a').attr('title');
var season_num = $(this).find('span[class^="flag_"] img').attr('src').match(/flag_.(\d+)\.gif/)[1];
var world = title.replace('ワールド', '');
var chapter = $(this).find('span.otono_sm:first img').attr('src')?.match(/_otono_s(\d+)_\d+\.png/)[1] || '26';

var season = parseFloat(season_num).toString(10);

if (!chapter) {
alert('【sengokuixa-moko】\n\nこのワールドの舞台には対応していません');
return false;
}

// ワールド・章・期 クッキー登録
document.cookie = 'chapter=' + world + '-' + chapter + '-' + season + '; max-age=10800; domain=.sengokuixa.jp; path=/;';
MokoLogin.flag = true;
});
}

function loadMokoLogin() {
var scriptMoko = document.createElement('script');
scriptMoko.setAttribute('type','text/javascript');
scriptMoko.textContent = '(' + MokoLogin.toString() + ')(j$);';
document.head.appendChild(scriptMoko);
}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', loadMokoLogin);
} else {
loadMokoLogin();
}


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板